/*
Theme Name: נתיב
Theme URI: https://nativ.org.il
Author: Nativ
Author URI: https://nativ.org.il
Description: Custom block theme for Nativ - news/finance layout with dynamic related posts, trending sidebar, and Gutenberg-native article template. RTL-first.
Version: 1.14.15
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: financepro
Tags: full-site-editing, block-theme, rtl-language-support, news, two-columns
*/

:root {
 --navy: #061b3a;
 --navy-2: #08254d;
 --blue: #0b5be7;
 --green: #1ebf71;
 --red: #e34848;
 --text: #101827;
 --muted: #667185;
 --line: #dce4ee;
 --soft: #f6f9fc;
 --card: #ffffff;
}

* { box-sizing: border-box; }

body {
 margin: 0;
 color: var(--text);
 background: #fff;
 font-family: "Heebo", Arial, sans-serif;
 -webkit-font-smoothing: antialiased;
 font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ---------- HEADER ---------- */
.topbar {
 position: relative;
 z-index: 50;
 color: #fff;
 background: linear-gradient(90deg, #04152f 0%, #061b3a 50%, #08254d 100%);
}
.nav-sticky-wrap {
 position: relative;
 z-index: 51;
 background: linear-gradient(90deg, #04152f 0%, #061b3a 50%, #08254d 100%);
 box-shadow: 0 4px 16px rgba(6, 27, 58, 0.18);
}
/* Analyst CTA widget -- single canonical style used everywhere on site.
   Matches the homepage exactly (same image height, padding, type scale). */
.analyst-cta-widget {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(6, 25, 54, 0.08);
  transition: box-shadow .2s;
}
.analyst-cta-widget:hover { box-shadow: 0 8px 32px rgba(6, 25, 54, 0.14); }
.analyst-cta-widget img { width: 100%; height: 200px; object-fit: cover; display: block; }
.analyst-cta-body { padding: 20px 18px 22px; text-align: center; }
.analyst-cta-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; font-weight: 700; color: var(--ink, var(--text)); }
.analyst-cta-body strong { color: var(--green); font-size: 22px; font-weight: 900; }
.analyst-cta-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 44px; background: var(--blue); color: #fff; border-radius: 8px; font-size: 15px; font-weight: 800; transition: opacity .15s; }
.analyst-cta-widget:hover .analyst-cta-btn { opacity: .9; }

/* Sticky header strategy:
   The WP outer <header class="wp-block-template-part"> uses display:contents so
   its children (topbar + ticker wrapper) become direct children of .wp-site-blocks.
   Only the navy .topbar is sticky -- the ticker stays in normal flow and scrolls
   away with the content. This keeps the marquee animation off the sticky layer
   (sticky+composited animations cause Chrome to freeze the marquee until hover). */
.wp-site-blocks > header.wp-block-template-part {
  display: contents;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Top thin meta strip */
.topbar-meta {
 height: 28px;
 background: rgba(0, 0, 0, 0.22);
 border-bottom: 1px solid rgba(255, 255, 255, 0.06);
 color: rgba(255, 255, 255, 0.72);
 font-size: 12px;
}
.topbar-meta-shell {
 width: min(100% - 48px, 1240px);
 height: 100%;
 margin: 0 auto;
 display: flex;
 align-items: center;
 gap: 10px;
}
.meta-date, .meta-time { font-weight: 500; letter-spacing: 0.02em; }
.meta-time { color: rgba(255, 255, 255, 0.92); font-variant-numeric: tabular-nums; }
.meta-sep { opacity: 0.4; }
.meta-spacer { flex: 1; }
.meta-link {
 color: rgba(255, 255, 255, 0.78);
 transition: color 0.15s;
 font-weight: 500;
}
.meta-link:hover { color: var(--green); }

/* Main nav */
.nav-shell {
 width: min(100% - 48px, 1240px);
 height: 64px;
 margin: 0 auto;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 30px;
}
.brand {
 margin-inline-start: 0;
 display: inline-flex;
 align-items: center;
 flex-shrink: 0;
}
.brand img {
 display: block;
 height: 36px;
 width: auto;
}
.primary-nav {
 flex: 1;
 display: flex;
 align-items: center;
 gap: 28px;
 font-size: 14.5px;
 font-weight: 700;
 color: rgba(255, 255, 255, 0.88);
}
.primary-nav a {
 position: relative;
 padding: 6px 0;
 transition: color 0.18s;
}
.primary-nav a::after {
 content: "";
 position: absolute;
 inset-inline: 0;
 bottom: 0;
 height: 2px;
 background: var(--green);
 transform: scaleX(0);
 transform-origin: center;
 transition: transform 0.2s ease;
}
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav .more-link { opacity: 0.75; }
.nav-actions {
 display: flex;
 align-items: center;
 gap: 12px;
}
.search-btn {
 width: 36px;
 height: 36px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 255, 255, 0.22);
 border-radius: 50%;
 color: #fff;
 background: transparent;
 cursor: pointer;
 transition: all 0.15s;
}
.search-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.subscribe {
 min-width: 96px;
 height: 36px;
 padding: 0 18px;
 display: inline-grid;
 place-items: center;
 color: #06351b;
 background: var(--green);
 border: 0;
 border-radius: 5px;
 font-weight: 800;
 font-size: 13px;
 transition: background 0.15s, transform 0.1s;
}
.subscribe:hover { background: #23df7b; }
.subscribe:active { transform: translateY(1px); }

/* ---------- LIVE TICKER (marquee) ---------- */
.fp-ticker {
  position: relative;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  direction: ltr;
}
.fp-tick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #e8344c, #b81e35);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 4px;
  flex-shrink: 0;
  direction: ltr;
}
.fp-tick-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: fp-pulse 1.6s infinite;
}
@keyframes fp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.fp-tick-viewport {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.fp-tick-items {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
  width: max-content;
  animation: fp-marquee 60s linear infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  direction: rtl;
}
.fp-tick-item {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
@media (hover: hover) { .fp-ticker:hover .fp-tick-items { animation-play-state: paused; } }
@keyframes fp-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.fp-tick-item {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: 13.5px;
 color: #1a2638;
}
.fp-tick-label {
 font-weight: 800;
 color: #0a1a35;
}
.fp-tick-price {
 font-weight: 600;
 font-variant-numeric: tabular-nums;
 color: #2d3a52;
}
.fp-tick-pct {
 font-weight: 800;
 font-size: 12px;
 font-variant-numeric: tabular-nums;
 padding: 2px 7px;
 border-radius: 3px;
}
.fp-tick-pct.up { color: #0e7d44; background: #e1f7eb; }
.fp-tick-pct.down { color: #b41f2a; background: #fde7e9; }
.fp-tick-loading {
 color: var(--muted);
 font-style: italic;
}
.fp-tick-status {
 flex-shrink: 0;
 font-size: 11px;
 color: var(--muted);
 font-variant-numeric: tabular-nums;
}
.up { color: var(--green); font-weight: 700; }
.down { color: var(--red); font-weight: 700; }

/* Legacy ticker fallback (kept for safety) */
.ticker {
 height: 38px;
 border-bottom: 1px solid var(--line);
 display: flex;
 justify-content: center;
 gap: 42px;
 align-items: center;
 color: #243047;
 font-size: 13px;
 white-space: nowrap;
 overflow: hidden;
}
.ticker b { margin: 0 5px; color: #4f5d70; font-weight: 500; }

/* ---------- PAGE GRID ---------- */
body.page { display: block !important; width: auto !important; margin: 0 !important; direction: rtl !important; }
div.page {
 width: min(100% - 70px, 820px);
 margin: 10px auto 0;
 display: grid;
 grid-template-columns: 198px minmax(0, 1fr);
 gap: 54px;
 align-items: start;
 direction: ltr;
}
.article, .sidebar { direction: rtl; }
.article {
 grid-column: 2;
 grid-row: 1;
 text-align: right;
}
.sidebar {
 grid-column: 1;
 grid-row: 1;
 display: grid;
 gap: 12px;
}

/* ---------- ARTICLE HEADER ---------- */
.breadcrumbs {
 margin: 0 0 10px;
 color: #8a95a5;
 font-size: 12px;
}
.category {
 margin: 0 0 6px;
 color: var(--blue);
 font-weight: 800;
}
.article h1,
.wp-block-post-title {
 margin: 0 0 16px;
 max-width: none;
 font-size: 34px;
 line-height: 1.2;
 font-weight: 900;
 letter-spacing: -0.03em;
 text-align: right;
}
.dek,
.wp-block-post-excerpt__excerpt {
 max-width: none;
 margin: 0 0 20px;
 color: #5d6878;
 font-size: 15px;
 line-height: 1.75;
 text-align: right;
}

.author {
 display: inline-flex;
 flex-direction: row-reverse;
 align-items: center;
 gap: 10px;
 margin-bottom: 18px;
}
.avatar {
 width: 36px;
 height: 36px;
 display: grid;
 place-items: center;
 border-radius: 50%;
 background: linear-gradient(160deg, #dce7f5, #acbfd6);
 color: var(--navy);
 font-weight: 900;
}
.author strong, .author span { display: block; text-align: right; }
.author strong { font-size: 13px; }
.author span { color: #7b8796; font-size: 12px; }

.meta {
 padding: 6px 0;
 border-block: 1px solid var(--line);
 display: flex;
 align-items: center;
 justify-content: space-between;
 color: #556174;
 font-size: 12px;
}

.sharebar {
 height: 50px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 border-bottom: 1px solid var(--line);
}
.share-icons {
 display: flex;
 flex-direction: row-reverse;
 gap: 19px;
 color: #0c63c7;
 font-weight: 800;
}
.article-tools { display: flex; gap: 20px; }
.article-tools button {
 border: 0;
 color: #425064;
 background: transparent;
 font-size: 12px;
}

/* ---------- HERO / FEATURED IMAGE ---------- */
.hero-image,
.wp-block-post-featured-image {
 margin: 22px 0 22px;
 text-align: right;
}
.hero-image img,
.wp-block-post-featured-image img {
 width: 100%;
 border-radius: 3px;
 display: block;
 box-shadow: 0 1px 2px rgba(6, 27, 58, 0.12);
}
.hero-image figcaption {
 margin-top: 8px;
 color: #3f4b5c;
 font-size: 10px;
}

/* ---------- POST CONTENT ---------- */
.article .wp-block-post-content,
.article .wp-block-post-content *,
.article .entry-content,
.article .entry-content * {
 text-align: right;
}
.article .entry-content > p,
.article > p {
 margin: 0 0 18px;
 max-width: none;
 color: #283447;
 font-size: 16px;
 line-height: 1.85;
 text-align: right;
}
.article .entry-content h2,
.article h2 {
 margin: 24px 0 12px;
 font-size: 24px;
 line-height: 1.3;
 font-weight: 900;
 text-align: right;
}

/* ---------- INLINE PATTERNS ---------- */
.rate-card {
 margin: 22px 0;
 padding: 16px 30px 14px;
 border: 1px solid var(--line);
 border-radius: 5px;
 box-shadow: 0 2px 10px rgba(6, 27, 58, 0.05);
 text-align: right;
}
.rate-card h3 { margin: 0; font-size: 13px; font-weight: 800; }
.rate-card small { color: #617083; }
.rate-card .line {
 position: relative;
 height: 36px;
 margin: 12px 25px 0;
}
.rate-card .line::before {
 content: "";
 position: absolute;
 top: 16px;
 inset-inline: 0;
 height: 3px;
 background: #1f76ff;
 border-radius: 99px;
}
.rate-card .line span {
 position: absolute;
 top: 11px;
 width: 12px;
 height: 12px;
 border-radius: 50%;
 background: #1f76ff;
}
.rate-card .line span:nth-child(1) { right: 0; }
.rate-card .line span:nth-child(2) { right: 50%; }
.rate-card .line span:nth-child(3) { left: 0; }
.rate-labels {
 display: flex;
 justify-content: space-between;
 color: #506074;
 font-size: 12px;
}

.quote-box {
 width: min(100%, 375px);
 margin: 16px auto;
 display: flex;
 align-items: center;
 gap: 16px;
 padding: 14px 20px;
 border-radius: 7px;
 background: #eef5ee;
 text-align: right;
}
.quote-box p { color: #384456; font-size: 13px; line-height: 1.5; }
.quote-icon {
 width: 58px;
 height: 52px;
 display: grid;
 place-items: center;
 color: var(--green);
 background: #dbf5e3;
 border-radius: 7px;
 font-size: 30px;
 font-weight: 900;
}

.continue {
 margin: 10px auto 16px;
 min-height: 34px;
 padding: 0 28px;
 border: 1px solid #1a4b91;
 border-radius: 5px;
 color: #0c3472;
 background: #fff;
 font-weight: 800;
}

/* ---------- RELATED ---------- */
.related {
 margin-top: 18px;
 padding-top: 16px;
 border-top: 1px solid var(--line);
}
.related-head {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 14px;
}
.related-head h2 { margin: 0; font-size: 18px; }
.related-head a { color: var(--blue); font-weight: 700; font-size: 12px; }

.related-grid {
  display: block;
  width: 100%;
}
.related .wp-block-post,
.related article {
 position: relative;
 text-align: right;
}
.related .wp-block-post-featured-image img,
.related img {
 width: 100%;
 height: 86px;
 display: block;
 object-fit: cover;
 border-radius: 3px;
}
.related .wp-block-post-terms,
.related article span {
 display: inline-block;
 margin-top: -22px;
 margin-inline-end: 8px;
 padding: 3px 7px;
 border-radius: 3px;
 background: #edf6ff;
 color: var(--blue);
 font-size: 10px;
 font-weight: 800;
 position: relative;
 z-index: 2;
}
.related .wp-block-post-title,
.related article h3 {
 margin: 9px 0 7px !important;
 font-size: 15px !important;
 line-height: 1.35 !important;
 font-weight: 900 !important;
 text-align: right !important;
 max-width: none !important;
}
.related .wp-block-post-date,
.related small {
 color: #586578;
 font-size: 11px;
}

/* ---------- SIDEBAR ---------- */
.side-card {
 border: 1px solid var(--line);
 border-radius: 6px;
 background: #fff;
 box-shadow: 0 2px 10px rgba(6, 27, 58, 0.03);
}
.side-card h2 {
 margin: 0 18px;
 padding: 18px 0 12px;
 border-bottom: 1px solid var(--line);
 font-size: 18px;
 font-weight: 900;
}

.trending ol {
 margin: 0;
 padding: 0 18px 10px;
 list-style: none;
 counter-reset: trending;
}
.trending li {
 min-height: 68px;
 display: grid;
 grid-template-columns: 24px 1fr;
 column-gap: 10px;
 align-items: start;
 padding: 12px 0;
 border-bottom: 1px solid #edf1f6;
 counter-increment: trending;
}
.trending li:last-child { border-bottom: 0; }
.trending li::before {
 content: counter(trending);
 color: #0b3780;
 font-size: 23px;
 line-height: 1;
 font-weight: 900;
 grid-row: span 2;
}
.trending a {
 font-weight: 900;
 font-size: 14px;
 line-height: 1.25;
}
.trending .wp-block-post-date,
.trending span {
 color: #667185;
 font-size: 11px;
}

.newsletter {
 padding: 22px 16px;
 border-radius: 6px;
 color: #fff;
 background:
 radial-gradient(circle at 20% 20%, rgba(14, 91, 231, 0.28), transparent 35%),
 linear-gradient(135deg, #061a37, #082f5f);
 text-align: center;
}
.newsletter h2 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.newsletter p {
 margin: 0 auto 16px;
 max-width: 150px;
 color: rgba(255, 255, 255, 0.82);
 line-height: 1.55;
 font-size: 13px;
}
.newsletter input, .newsletter button {
 width: 100%;
 height: 38px;
 border-radius: 5px;
 border: 0;
}
.newsletter input { margin-bottom: 10px; padding: 0 14px; text-align: right; }
.newsletter button {
 background: #23df7b;
 color: #06351b;
 font-weight: 900;
}
.newsletter small {
 display: block;
 margin-top: 12px;
 color: rgba(255, 255, 255, 0.65);
 font-size: 11px;
}

.indexes { padding-bottom: 12px; }
.indexes div {
 display: grid;
 grid-template-columns: 54px 1fr 58px;
 padding: 10px 14px;
 font-size: 12px;
}
.indexes b { color: #334155; font-weight: 500; }
.indexes strong { color: #0f172a; }
.indexes button {
 width: calc(100% - 28px);
 height: 32px;
 margin: 8px 14px 0;
 border: 1px solid #123e82;
 border-radius: 4px;
 color: #123e82;
 background: #fff;
 font-weight: 800;
}

.podcast img {
 width: 100%;
 display: block;
 border-radius: 6px;
}

/* ---------- FOOTER ---------- */
.site-footer {
 margin-top: 34px;
 padding: 38px 0 18px;
 color: rgba(255, 255, 255, 0.78);
 background:
 radial-gradient(circle at 15% 0%, rgba(8, 87, 181, 0.34), transparent 32%),
 linear-gradient(120deg, #06152e, #082b58);
}
.footer-shell {
 width: min(100% - 90px, 820px);
 margin: 0 auto 24px;
 display: grid;
 grid-template-columns: 1.4fr repeat(4, 1fr);
 gap: 56px;
 direction: ltr;
}
.site-footer section {
 direction: rtl;
 text-align: right;
}
.footer-brand { text-align: right; }
.footer-brand .brand { display: block; margin: 0 0 14px; }
.footer-brand p {
 max-width: 250px;
 color: rgba(255, 255, 255, 0.66);
 line-height: 1.6;
 font-size: 13px;
}
.social-links { margin-top: 18px; display: flex; gap: 16px; color: #fff; }
.social-links a { color: rgba(255,255,255,0.7); transition: color 0.15s; }
.social-links a:hover { color: var(--green); }
.site-footer h3 { margin: 0 0 10px; color: #fff; font-size: 16px; }
.site-footer section a {
 display: block;
 margin: 6px 0;
 font-size: 13px;
}
.copyright {
 margin: 0;
 text-align: center;
 color: rgba(255, 255, 255, 0.58);
 font-size: 12px;
}

/* ---------- BLOCK EDITOR NORMALIZERS ---------- */
.wp-block-post-content { text-align: right; }
.wp-site-blocks { background: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
 .nav-shell { width: calc(100% - 28px); gap: 14px; height: 56px; }
 .primary-nav { display: none; }
 .topbar .primary-nav { display: none; }
 .brand { font-size: 24px; }
 .brand span { font-size: 18px; }
 .topbar-meta-shell { width: calc(100% - 28px); }
 .meta-link { display: none; }
 .meta-spacer { display: none; }
 .fp-ticker { gap: 10px; padding: 0 10px; }
 .fp-tick-items { animation-duration: 45s; }
 .ticker { justify-content: flex-start; padding-inline: 14px; overflow-x: auto; }
 div.page {
 width: min(100% - 28px, 560px);
 grid-template-columns: 1fr;
 gap: 28px;
 margin-top: 2px;
 }
 .article { order: 1; grid-column: auto; grid-row: auto; }
 .sidebar { order: 2; grid-column: auto; grid-row: auto; display: flex; flex-direction: column; }
 .sidebar .fp-indexes-live { order: 1; }
 .sidebar .side-promo { order: 2; }
 .sidebar .trending { order: 3; }
 .trending .wp-block-post-template { padding: 0 10px 4px !important; }
 .trending .wp-block-post { padding: 7px 0; }
 .trending .trending-card {
   grid-template-columns: minmax(0, 1fr) 90px !important;
   gap: 10px !important;
 }
 .trending .trending-thumb img {
   width: 90px !important;
   height: 65px !important;
   border-radius: 6px !important;
 }
 .trending .wp-block-post-title {
   font-size: 14px !important;
   line-height: 1.35 !important;
 }
 .trending .wp-block-post-date { font-size: 11px; }
 .trending > h2 { font-size: 16px; padding: 10px 0 8px !important; }
 .sidebar .newsletter { order: 4; }
 .article h1, .wp-block-post-title { font-size: 29px; }
 .meta, .sharebar { flex-wrap: wrap; gap: 12px; height: auto; }
 .sharebar { padding: 13px 0; }
 .related-grid { grid-template-columns: repeat(3, 1fr); }
 .footer-shell {
 width: calc(100% - 36px);
 grid-template-columns: 1fr 1fr;
 gap: 28px;
 }
}

@media (max-width: 520px) {
 .nav-actions .bell, .search span { display: none; }
 .subscribe { min-width: auto; padding: 0 12px; font-size: 12px; }
 .search-btn { width: 32px; height: 32px; }
 .fp-tick-status { display: none; }
 .fp-tick-items { gap: 28px; animation-duration: 35s; }
 .fp-tick-item { font-size: 12.5px; }
 .article h1, .wp-block-post-title { font-size: 25px; }
 .article > p, .article .entry-content > p, .dek { font-size: 15px; }
 .related-grid { grid-template-columns: 1fr; }
 .footer-shell { grid-template-columns: 1fr; }
}

/* =================================================================
 * v1.1 ADDITIONS - breadcrumbs, share, live indexes, home, archive
 * ================================================================= */

/* ---------- Breadcrumbs (right-aligned) ---------- */
.breadcrumbs {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  text-align: right;
  color: #8a95a5;
  font-size: 12.5px;
  font-weight: 500;
}
.breadcrumbs a {
  color: #5d6878;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .bc-sep {
  margin: 0 4px;
  opacity: 0.5;
}
.breadcrumbs .bc-current {
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Sharebar (cleaner) ---------- */
.sharebar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
  text-align: right;
}
.sharebar-label {
  font-size: 12px;
  font-weight: 700;
  color: #556174;
}
.share-icons.fp-share {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.share-icons .share-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #cbd5e1;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.share-icons .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 27, 58, 0.18);
}
.share-icons .share-fb    { background: #1877f2; }
.share-icons .share-wa    { background: #25d366; }
.share-icons .share-x     { background: #0f0f0f; }
.share-icons .share-li    { background: #0a66c2; }
.share-icons .share-email { background: #6b7280; }

/* ---------- Live indexes widget ---------- */
.fp-indexes-live {
  padding-bottom: 14px;
}
.fp-indexes-live h2 { /* uses .side-card h2 base */ }
.indexes-body {
  padding: 6px 16px 6px;
}
.indexes-loading {
  padding: 16px 4px;
  color: var(--muted);
  font-style: italic;
  font-size: 12px;
}
.indexes-row {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #edf1f6;
  font-size: 12.5px;
}
.indexes-row:last-of-type { border-bottom: 0; }
.idx-pct {
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 3px;
}
.idx-pct.up   { color: #0e7d44; background: #e1f7eb; }
.idx-pct.down { color: #b41f2a; background: #fde7e9; }
.idx-price {
  color: #334155;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.idx-name {
  color: #0f172a;
  font-weight: 800;
}
.indexes-cta {
  display: block;
  width: calc(100% - 28px);
  margin: 10px 14px 0;
  padding: 8px 0;
  border: 1px solid #123e82;
  border-radius: 4px;
  color: #123e82;
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  transition: background 0.15s;
}
.indexes-cta:hover { background: #f0f6ff; }

/* Promo card */
.side-promo {
  overflow: hidden;
  padding: 0 !important;
}
.promo-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.promo-body {
  padding: 16px 18px 20px;
  text-align: right;
}
.promo-headline {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
}
.promo-headline strong {
  color: var(--green, #0b8a3e);
  font-size: 22px;
}
.promo-cta {
  display: block;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  border-radius: 6px;
  transition: background 0.15s;
}
.promo-cta:hover {
  background: #1a56a8;
  color: #fff;
}

/* ---------- Header search form ---------- */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input[type="search"] {
  width: 0;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  font-size: 13px;
  transition: width 0.25s, padding 0.25s, background 0.25s, border-color 0.25s;
  outline: none;
}
.header-search input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.55); }
.header-search:focus-within input[type="search"],
.header-search:hover input[type="search"] {
  width: 180px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.header-search .search-btn {
  border: 0;
  background: transparent;
}

/* ---------- Footer socials (icons) ---------- */
.social-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s, transform 0.12s;
}
.social-links a:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* =================================================================
 * HOMEPAGE - full-width multi-section
 * ================================================================= */
.home-page {
  width: min(100% - 48px, 1240px);
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* HERO: lead + secondary stack */
.home-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
.home-lead .wp-block-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: right;
}
.home-lead .wp-block-post-featured-image {
  margin: 0 0 18px;
}
.home-lead .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.home-lead .wp-block-post-terms,
.home-lead .category {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  background: #edf6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  border-radius: 3px;
}
.home-lead .wp-block-post-title {
  margin: 0 0 12px !important;
  font-size: 32px !important;
  line-height: 1.18 !important;
  text-align: right !important;
  max-width: none !important;
  font-weight: 900 !important;
}
.home-lead .wp-block-post-title a { color: var(--text); }
.home-lead .wp-block-post-title a:hover { color: var(--blue); }
.home-lead .wp-block-post-excerpt {
  margin: 0 0 12px;
  color: #4b5868;
  font-size: 15px;
  line-height: 1.65;
  text-align: right;
}
.home-lead .wp-block-post-date {
  color: var(--muted);
  font-size: 12px;
}

.home-secondary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-secondary .wp-block-post {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.home-secondary .wp-block-post:last-child { border-bottom: 0; padding-bottom: 0; }
.home-secondary .wp-block-post-featured-image {
  margin: 0;
}
.home-secondary .wp-block-post-featured-image img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.home-secondary .home-card-body { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.home-secondary .wp-block-post-terms {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-end;
}
.home-secondary .wp-block-post-title {
  margin: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-secondary .wp-block-post-title a { color: var(--text); }
.home-secondary .wp-block-post-title a:hover { color: var(--blue); }
.home-secondary .wp-block-post-date { color: var(--muted); font-size: 11px; }

/* SECTION head (h2 + see-all link) */
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.home-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}
.home-section-head h2 a { color: inherit; }
.home-section-head h2 a:hover { color: var(--blue); }
.home-section-head .head-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.home-section-head .head-more:hover { text-decoration: underline; }

/* WAR / Feature strip (4-column grid) */
.home-section-feature .home-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.home-section-feature .wp-block-post {
  text-align: right;
}
.home-section-feature .wp-block-post-featured-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
}
.home-section-feature .wp-block-post-terms {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
}
.home-section-feature .wp-block-post-title {
  margin: 6px 0 6px !important;
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-section-feature .wp-block-post-title a { color: var(--text); }
.home-section-feature .wp-block-post-title a:hover { color: var(--blue); }
.home-section-feature .wp-block-post-date { color: var(--muted); font-size: 11.5px; }

/* TWO-COLUMN rows */
.home-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.home-col { min-width: 0; }
.home-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.home-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.home-list-item .wp-block-post-featured-image { margin: 0; }
.home-list-item .wp-block-post-featured-image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.home-list-body { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.home-list-body .wp-block-post-terms {
  display: inline-block;
  align-self: flex-end;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
}
.home-list-body .wp-block-post-title {
  margin: 2px 0 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-list-body .wp-block-post-title a { color: var(--text); }
.home-list-body .wp-block-post-title a:hover { color: var(--blue); }
.home-list-body .wp-block-post-date { color: var(--muted); font-size: 11.5px; }

.home-empty {
  padding: 24px;
  background: var(--soft);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  grid-column: 1 / -1;
}

/* Newsletter band */
.home-newsletter-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 36px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 20%, rgba(35, 223, 123, 0.22), transparent 40%),
    linear-gradient(135deg, #061a37, #082f5f);
  text-align: right;
}
.hnb-content h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.hnb-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.hnb-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.hnb-form input {
  width: 240px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  text-align: right;
}
.hnb-form button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: #23df7b;
  color: #06351b;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.hnb-form button:hover { background: #1ec76e; }

/* =================================================================
 * ARCHIVE / CATEGORY pages
 * ================================================================= */
.archive-page { text-align: right; }
.archive-head {
  margin-bottom: 32px;
  padding: 28px 0 24px;
  border-bottom: 3px solid var(--navy);
  position: relative;
}
.archive-head::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 80px;
  height: 3px;
  background: var(--blue);
}
.archive-title {
  margin: 0 0 6px !important;
  font-size: 38px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  text-align: right !important;
  max-width: none !important;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.archive-desc {
  margin: 8px 0 0;
  color: #4b5868;
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
}
.archive-page .breadcrumbs {
  margin-bottom: 0;
  font-size: 13px;
  color: var(--muted);
}
.archive-page .wp-block-post-terms {
  display: none !important;
}

.archive-grid {
  display: block;
}
/* Force equal-height cards in grid */
.archive-grid > .wp-block-post-template {
  align-items: stretch !important;
}
.archive-item {
  display: flex;
  flex-direction: column;
  text-align: right;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 6px 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  box-sizing: border-box;
}
.archive-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6, 27, 58, 0.12);
}
.archive-item .wp-block-post-featured-image { margin: 0 0 6px; }
.archive-item .wp-block-post-featured-image img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
}
.archive-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
  flex: 1;
}
.archive-item .wp-block-post-terms {
  display: inline-block;
  align-self: flex-end;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
}
.archive-item .wp-block-post-title {
  margin: 2px 0 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.archive-item .wp-block-post-title a { color: var(--text); }
.archive-item .wp-block-post-title a:hover { color: var(--blue); }
.archive-item .wp-block-post-excerpt {
  display: none;
}
.archive-item .wp-block-post-date {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: auto;
  padding-top: 6px;
}
.archive-pagination {
  grid-column: 1 / -1;
  margin-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
}
.archive-pagination a, .archive-pagination .current {
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #fff;
  font-weight: 700;
}
.archive-pagination a:hover { background: var(--soft); }
.archive-pagination .current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.archive-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  background: var(--soft);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* =================================================================
 * RESPONSIVE for v1.1 additions
 * ================================================================= */
@media (max-width: 1100px) {
  .home-section-feature .home-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .home-page { width: calc(100% - 28px); gap: 28px; }
  .home-hero { grid-template-columns: 1fr; gap: 22px; }
  .home-row { grid-template-columns: 1fr; gap: 32px; }
  .home-section-feature .home-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .home-section-head h2 { font-size: 19px; }
  .home-newsletter-band { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .hnb-form { width: 100%; }
  .hnb-form input { flex: 1; width: auto; }
  .archive-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-secondary .wp-block-post { grid-template-columns: 90px 1fr; }
  .home-secondary .wp-block-post-featured-image img { width: 90px; height: 68px; }
}
@media (max-width: 520px) {
  .home-section-feature .home-grid-4 { grid-template-columns: 1fr; }
  .home-list-item { grid-template-columns: 80px 1fr; gap: 10px; }
  .home-list-item .wp-block-post-featured-image img { width: 80px; height: 80px; }
  .home-lead .wp-block-post-title { font-size: 24px !important; }
  .archive-title { font-size: 24px !important; }
}

/* =================================================================
 * v1.3 - Target WP Query Block actual DOM (wp-block-post-template)
 * WP wraps query loop output in <ul class="wp-block-post-template">
 * which has is-layout-flow forcing vertical stack. Override here.
 * ================================================================= */

/* Reset post-template default list styles */
.wp-block-post-template {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Related grid (4-column on single post) */
.related-grid > .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}
.related-grid > .wp-block-post-template > .wp-block-post {
  list-style: none;
  position: relative;
  text-align: right;
  padding: 0;
  border: 0;
}
.related-grid .wp-block-post-featured-image img {
  width: 100% !important;
  height: 86px !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  display: block !important;
}
.related-grid .wp-block-post-title {
  margin: 9px 0 4px !important;
  font-size: 14px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
  color: var(--text);
}
.related-grid .wp-block-post-title a { color: var(--text); }
.related-grid .wp-block-post-title a:hover { color: var(--blue); }
.related-grid .wp-block-post-terms,
.related-grid .wp-block-post-terms a {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 6px;
}
.related-grid .wp-block-post-date {
  color: #586578;
  font-size: 11px;
}

/* Archive grid (4-column card layout like leading articles) */
.archive-grid > .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.archive-grid > .wp-block-post-template > .wp-block-post {
  list-style: none;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  text-align: right;
  direction: rtl;
  height: 100%;
}
.archive-grid .wp-block-post-featured-image { margin: 0 0 12px !important; align-self: stretch; }
.archive-grid .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
  margin: 0 !important;
}
.archive-grid .wp-block-post-terms {
  align-self: flex-start;
  margin: 0 0 4px !important;
  line-height: 1;
}
.archive-grid .wp-block-post-terms a {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 7px;
  border-radius: 3px;
}
.archive-grid .wp-block-post-title {
  margin: 4px 0 8px !important;
  font-size: 14.5px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
  align-self: stretch;
  flex: 1;
}
.archive-grid .wp-block-post-title a { color: var(--text); }
.archive-grid .wp-block-post-title a:hover { color: var(--blue); }
.archive-grid .wp-block-post-excerpt {
  display: none !important;
}
.archive-grid .wp-block-post-date {
  margin-top: auto !important;
  color: var(--muted);
  font-size: 11.5px;
}

/* Home: 4-col feature grid */
.home-section-feature .home-grid-4 > .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
}
.home-section-feature .home-grid-4 > .wp-block-post-template > .wp-block-post {
  list-style: none;
  text-align: right;
}
.home-section-feature .wp-block-post-featured-image img {
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
  margin-bottom: 10px;
}
.home-section-feature .wp-block-post-title {
  margin: 6px 0 6px !important;
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-section-feature .wp-block-post-title a { color: var(--text); }
.home-section-feature .wp-block-post-title a:hover { color: var(--blue); }
.home-section-feature .wp-block-post-terms,
.home-section-feature .wp-block-post-terms a {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 7px;
  border-radius: 3px;
}
.home-section-feature .wp-block-post-date {
  color: var(--muted);
  font-size: 11.5px;
  display: block;
  margin-top: 4px;
}

/* Home hero: lead + secondary */
.home-lead > .wp-block-post-template > .wp-block-post {
  list-style: none;
  background: #fff;
  text-align: right;
}
.home-lead .wp-block-post-featured-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px !important;
  margin-bottom: 16px;
}
.home-lead .wp-block-post-title {
  margin: 6px 0 12px !important;
  font-size: 30px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-lead .wp-block-post-title a { color: var(--text); }
.home-lead .wp-block-post-title a:hover { color: var(--blue); }
.home-lead .wp-block-post-terms,
.home-lead .wp-block-post-terms a {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 3px 9px;
  border-radius: 3px;
}
.home-lead .wp-block-post-excerpt {
  margin: 0 0 12px !important;
  color: #4b5868;
  font-size: 15px;
  line-height: 1.65;
}
.home-lead .wp-block-post-date {
  color: var(--muted);
  font-size: 12px;
}

.home-secondary > .wp-block-post-template {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}
.home-secondary > .wp-block-post-template > .wp-block-post {
  list-style: none;
  display: grid !important;
  grid-template-columns: 110px 1fr !important;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.home-secondary > .wp-block-post-template > .wp-block-post:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.home-secondary .wp-block-post-featured-image {
  margin: 0 !important;
}
.home-secondary .wp-block-post-featured-image img {
  width: 110px !important;
  height: 82px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}
.home-secondary .home-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.home-secondary .wp-block-post-terms,
.home-secondary .wp-block-post-terms a {
  display: inline-block;
  align-self: flex-end;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
}
.home-secondary .wp-block-post-title {
  margin: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-secondary .wp-block-post-title a { color: var(--text); }
.home-secondary .wp-block-post-title a:hover { color: var(--blue); }
.home-secondary .wp-block-post-date { color: var(--muted); font-size: 11px; }

/* Home list (per column) */
.home-list > .wp-block-post-template {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.home-list > .wp-block-post-template > .wp-block-post {
  list-style: none;
  display: grid !important;
  grid-template-columns: 96px 1fr !important;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.home-list > .wp-block-post-template > .wp-block-post:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.home-list .wp-block-post-featured-image {
  margin: 0 !important;
}
.home-list .wp-block-post-featured-image img {
  width: 96px !important;
  height: 96px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}
.home-list .home-list-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}
.home-list .wp-block-post-terms,
.home-list .wp-block-post-terms a {
  display: inline-block;
  align-self: flex-end;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
}
.home-list .wp-block-post-title {
  margin: 2px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.home-list .wp-block-post-title a { color: var(--text); }
.home-list .wp-block-post-title a:hover { color: var(--blue); }
.home-list .wp-block-post-date { color: var(--muted); font-size: 11.5px; }

/* Trending sidebar - compact list, no numbers */
.trending .wp-block-post-template {
  padding: 0 14px 6px !important;
}
.trending .wp-block-post {
  list-style: none;
  display: block !important;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
  text-align: right;
}
.trending .wp-block-post:last-child {
  border-bottom: 0;
}
.trending .wp-block-post::before {
  display: none;
}
.trending .wp-block-post > .wp-block-group {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

/* Trending card: thumb left, text right */
.trending .trending-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 8px;
  align-items: start;
}
.trending .trending-text {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  min-width: 0;
}
.trending .trending-thumb {
  margin: 0 !important;
}
.trending .trending-thumb img {
  width: 70px !important;
  height: 55px !important;
  object-fit: cover;
  border-radius: 5px;
}
.trending > h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding: 14px 0 10px !important;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}
.trending > h2::before {
  content: "\1F525";
  font-size: 16px;
}
.trending .wp-block-post-title {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: right !important;
  max-width: none !important;
}
.trending .wp-block-post-title a { color: var(--text); }
.trending .wp-block-post-title a:hover { color: var(--blue); }
.trending .wp-block-post-date {
  color: var(--muted);
  font-size: 10.5px;
}

/* Override .article text-align: center inheriting into sidebar widgets */
.sidebar { text-align: right !important; }
.sidebar h2 { text-align: right !important; }

/* Override the auto-spacing wp-block-* margin-block-start in our custom grids */
.related-grid .wp-block-post * { margin-block-start: 0 !important; }
.archive-grid .wp-block-post * { margin-block-start: 0 !important; }
.home-list .wp-block-post * { margin-block-start: 0 !important; }
.home-secondary .wp-block-post * { margin-block-start: 0 !important; }
.home-grid-4 .wp-block-post * { margin-block-start: 0 !important; }
.trending .wp-block-post * { margin-block-start: 0 !important; }

/* Responsive overrides */
@media (max-width: 1100px) {
  .home-section-feature .home-grid-4 > .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
  .archive-grid > .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 860px) {
  .related-grid > .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .archive-grid > .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
  .home-section-feature .home-grid-4 > .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .related-grid > .wp-block-post-template { grid-template-columns: 1fr !important; }
  .archive-grid > .wp-block-post-template { grid-template-columns: 1fr !important; }
  .home-section-feature .home-grid-4 > .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* =================================================================
 * v1.4 - Wider page on single post, bigger hero, premium share buttons
 * ================================================================= */

/* REVERT to original financepro-replica dimensions for single post */
.page {
  width: min(100% - 70px, 820px) !important;
  grid-template-columns: 198px minmax(0, 1fr) !important;
  gap: 54px !important;
}

/* Featured image on single article - match original (full article width, modest height) */
.article > .wp-block-post-featured-image,
.article .wp-block-post-featured-image {
  margin: 22px 0 24px !important;
  width: 100% !important;
}
.article > figure.wp-block-post-featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 380px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 3px !important;
  display: block !important;
  box-shadow: 0 1px 2px rgba(6, 27, 58, 0.12) !important;
}

/* Article body - centered title like the original */
.article {
  text-align: right !important;
}
.article h1,
.article > .wp-block-post-title,
.article > h1.wp-block-post-title {
  margin: 0 0 16px !important;
  max-width: none !important;
  font-size: 34px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-align: right !important;
}
.article .dek,
.article > .wp-block-post-excerpt,
.article > .wp-block-post-excerpt p,
.article .wp-block-post-excerpt__excerpt {
  max-width: none !important;
  margin: 0 0 20px !important;
  color: #5d6878 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  text-align: right !important;
}

/* Article body content - constrained, right-aligned reading */
.article > .wp-block-post-content,
.article > .entry-content {
  text-align: right !important;
}
.article > .wp-block-post-content > p,
.article > .entry-content > p {
  margin: 0 auto 18px !important;
  color: #283447 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  text-align: right !important;
}
.article > .wp-block-post-content > h2,
.article > .entry-content > h2 {
  margin: 24px 0 12px !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  text-align: right !important;
}

/* RELATED grid - bulletproof image sizing */
.related-grid .wp-block-post-featured-image,
.related-grid .wp-block-post-featured-image a {
  display: block !important;
  width: 100% !important;
  height: 86px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 3px;
}
.related-grid .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 86px !important;
  max-height: 86px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 3px !important;
}
.related-grid .wp-block-post {
  display: block !important;
  flex-direction: unset !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Sharebar - polished modern look */
.sharebar {
  margin: 22px 0 !important;
  padding: 16px 0 !important;
  border-block: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  text-align: right !important;
}
.sharebar-label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #283447 !important;
  margin-inline-end: 4px;
}
.share-icons.fp-share {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}
.share-icons .share-btn {
  width: 44px !important;
  height: 44px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: #94a3b8;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s, filter 0.15s;
  box-shadow: 0 1px 2px rgba(6, 27, 58, 0.10), 0 1px 3px rgba(6, 27, 58, 0.06);
}
.share-icons .share-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}
.share-icons .share-btn svg {
  position: relative;
  z-index: 2;
  width: 18px !important;
  height: 18px !important;
}
.share-icons .share-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px rgba(6, 27, 58, 0.22), 0 2px 4px rgba(6, 27, 58, 0.10);
  filter: brightness(1.06);
}
.share-icons .share-btn:active { transform: translateY(-1px) scale(1.02); }

.share-icons .share-fb    { background: linear-gradient(135deg, #1877f2, #0e5dc4); }
.share-icons .share-wa    { background: linear-gradient(135deg, #25d366, #1aaa50); }
.share-icons .share-x     { background: linear-gradient(135deg, #1a1a1a, #000); }
.share-icons .share-li    { background: linear-gradient(135deg, #0a66c2, #0654a3); }
.share-icons .share-email { background: linear-gradient(135deg, #6b7280, #4b5563); }

/* Responsive widen */
@media (max-width: 1100px) {
  div.page {
    width: min(100% - 28px, 820px) !important;
    grid-template-columns: 198px minmax(0, 1fr) !important;
    gap: 40px !important;
  }
  .article .wp-block-post-featured-image img {
    height: 360px !important;
    max-height: 360px !important;
  }
  .article h1, .article .wp-block-post-title { font-size: 30px !important; }
}
@media (max-width: 860px) {
  div.page {
    width: calc(100% - 28px) !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .article {
    grid-column: 1 !important;
    grid-row: auto !important;
    order: -1;
  }
  .breadcrumbs { margin-bottom: 4px !important; }
  .sidebar {
    grid-column: 1 !important;
    grid-row: auto !important;
    order: 2;
  }
  .article .wp-block-post-featured-image img {
    height: 240px !important;
    max-height: 240px !important;
  }
  .article h1, .article .wp-block-post-title { font-size: 26px !important; }
  .share-icons .share-btn { width: 40px !important; height: 40px !important; }
}

/* =================================================================
 * v1.5 - Page template, indexes row stacking, home-list tuning
 * ================================================================= */

/* Force indexes rows to stack vertically full-width */
.fp-indexes-live .indexes-body {
  display: block !important;
  padding: 6px 14px !important;
}
.fp-indexes-live .indexes-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  width: 100% !important;
  box-sizing: border-box;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #edf1f6 !important;
  font-size: 12.5px;
}
.fp-indexes-live .indexes-row:last-of-type { border-bottom: 0 !important; }
.fp-indexes-live .idx-name {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
}
.fp-indexes-live .idx-price {
  color: #334155;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  min-width: 60px;
}
.fp-indexes-live .idx-pct {
  font-weight: 800;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 3px;
  text-align: center;
  min-width: 48px;
}
.fp-indexes-live .idx-pct.up   { color: #0e7d44; background: #e1f7eb; }
.fp-indexes-live .idx-pct.down { color: #b41f2a; background: #fde7e9; }

/* Static page (about, contact, privacy, etc) */
.page-static .static-page {
  text-align: right !important;
}
.page-static .page-title,
.page-static .wp-block-post-title {
  margin: 8px 0 24px !important;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
  font-size: 32px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-align: right !important;
  max-width: none !important;
}
.page-static .wp-block-post-content {
  text-align: right !important;
  max-width: 720px;
}
.page-static .wp-block-post-content p {
  margin: 0 0 16px !important;
  font-size: 16px;
  line-height: 1.8;
  color: #283447;
  text-align: right;
  white-space: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
}
.page-static .wp-block-post-content h2 {
  margin: 28px 0 12px !important;
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}
.page-static .wp-block-post-content ul,
.page-static .wp-block-post-content ol {
  margin: 12px 24px 16px 0 !important;
  padding: 0;
}
.page-static .wp-block-post-content li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
}

/* Tighter home-list — give title more breathing room */
.home-list > .wp-block-post-template > .wp-block-post {
  grid-template-columns: 84px 1fr !important;
  gap: 12px !important;
}
.home-list .wp-block-post-featured-image img {
  width: 84px !important;
  height: 84px !important;
}
.home-list .wp-block-post-title {
  font-size: 15px !important;
  line-height: 1.32 !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

/* Hide empty/broken podcast placeholder image in sidebar */
.sidebar .podcast img:not([src]),
.sidebar .podcast img[src=""] {
  display: none !important;
}
.sidebar .podcast:has(img:not([src])),
.sidebar .podcast:has(img[src=""]) {
  display: none;
}

/* =================================================================
 * v1.6 - NEW homepage matching reference design
 * Sidebar (left) + main content with hero, leading, recommended,
 * news list, topics grid
 * ================================================================= */

.home-page-v2 {
  width: min(100% - 40px, 1240px);
  margin: 10px auto 40px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  direction: ltr;
}
.home-aside, .home-main { direction: rtl; }

/* --- LEFT SIDEBAR --- */
.home-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.aside-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.aside-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
}
.aside-bell {
  font-size: 16px;
  opacity: 0.6;
}

/* Breaking news widget */
.breaking-list .wp-block-post-template {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.breaking-list .breaking-item {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) 10px !important;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  list-style: none;
}
.breaking-list .breaking-item:last-child { border-bottom: 0; }
.breaking-list .breaking-time {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.breaking-list .breaking-time .wp-block-post-date,
.breaking-list .breaking-time time {
  color: var(--muted);
  font-weight: 600;
}
.breaking-list .wp-block-post-title {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  text-align: right !important;
  max-width: none !important;
}
.breaking-list .wp-block-post-title a { color: var(--text); }
.breaking-list .wp-block-post-title a:hover { color: var(--blue); }
.breaking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8344c;
  margin-top: 6px;
  flex-shrink: 0;
}

.aside-cta {
  display: block;
  margin: 10px 16px 14px;
  padding: 8px 0;
  border: 1px solid #123e82;
  border-radius: 5px;
  color: #123e82;
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  transition: background 0.15s;
}
.aside-cta:hover { background: #f0f6ff; }

/* Newsletter card */
.aside-newsletter {
  padding: 20px 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(35, 223, 123, 0.18), transparent 40%),
    linear-gradient(135deg, #061a37, #082f5f);
  color: #fff;
  text-align: right;
}
.aside-newsletter h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}
.aside-newsletter p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.aside-newsletter input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  text-align: right;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.aside-newsletter button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: #23df7b;
  color: #06351b;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}
.aside-newsletter button:hover { background: #1ec76e; }

/* Podcast card */
.aside-podcast {
  padding: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 30%, rgba(78, 158, 255, 0.18), transparent 40%),
    linear-gradient(135deg, #061a37, #08254d);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}
.aside-podcast .podcast-content { flex: 1; min-width: 0; }
.podcast-brand {
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 4px;
}
.aside-podcast p {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}
.podcast-btn {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.podcast-btn:hover { background: rgba(255, 255, 255, 0.18); }
.podcast-mic {
  font-size: 38px;
  flex-shrink: 0;
}

/* More articles widget */
.more-list .wp-block-post-template {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.more-list .wp-block-post-template > li {
  list-style: none !important;
}
.more-list .more-item {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #eef2f7 !important;
  align-items: center !important;
}
.more-list .more-item:last-child { border-bottom: 0 !important; }
.more-list .wp-block-post-featured-image {
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
}
.more-list .wp-block-post-featured-image a {
  display: block !important;
  width: 72px !important;
  height: 72px !important;
}
.more-list .wp-block-post-featured-image img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}
.more-list .more-item-body {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-align: right !important;
}
.more-list .wp-block-post-terms,
.more-list .wp-block-post-terms a {
  display: inline-block;
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 6px;
  border-radius: 3px;
}
.more-list .wp-block-post-title {
  margin: 2px 0 !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.more-list .wp-block-post-title a { color: var(--text); }
.more-list .wp-block-post-title a:hover { color: var(--blue); }
.more-list .wp-block-post-date {
  color: var(--muted);
  font-size: 10.5px;
}

/* --- MAIN COLUMN --- */
.home-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

/* HERO */
.hero-query .wp-block-post-template,
.hero-query > ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.hero-article {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(6, 27, 58, 0.20);
  list-style: none;
}
.hero-article .wp-block-post-featured-image {
  margin: 0 !important;
}
.hero-article .wp-block-post-featured-image img {
  width: 100% !important;
  height: 440px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.hero-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 36px 28px;
  text-align: right;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.85) 100%);
  color: #fff;
}
.hero-overlay .hero-cat,
.hero-overlay .wp-block-post-terms {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero-overlay .hero-cat a,
.hero-overlay .wp-block-post-terms a { color: #fff; }
.hero-overlay .hero-title,
.hero-overlay .wp-block-post-title {
  margin: 0 0 12px !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  text-align: right !important;
  color: #fff !important;
  max-width: none !important;
}
.hero-overlay .hero-title a,
.hero-overlay .wp-block-post-title a { color: #fff; }
.hero-overlay .hero-excerpt,
.hero-overlay .wp-block-post-excerpt {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #fff !important;
  font-weight: 700 !important;
  max-width: 720px;
  text-align: right !important;
}
.hero-overlay .wp-block-post-excerpt__excerpt { color: #fff !important; font-weight: 700 !important; text-align: right !important; margin: 0 !important; max-width: none !important; }
.hero-overlay .wp-block-post-excerpt__more-link { display: none !important; }
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  direction: rtl;
}
.hero-meta .wp-block-post-date,
.hero-meta time { color: rgba(255, 255, 255, 0.78); }
.hero-meta p { margin: 0 !important; display: inline; }

/* Generic section head with green checkmark style */
.home-section-v2 .sec-head {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.home-section-v2 .sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  position: relative;
}
.home-section-v2 .sec-head h2::after {
  content: none !important;
}

/* Leading 4-grid */
.leading-grid > .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.lead-card {
  list-style: none;
  text-align: right;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  height: 100%;
}
.lead-card .wp-block-post-date {
  margin-top: auto !important;
}
.lead-card .wp-block-post-featured-image { margin: 0 0 10px !important; align-self: stretch; }
.lead-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
}
.lead-card .wp-block-post-terms {
  align-self: flex-start;
  margin: 0 0 4px !important;
  line-height: 1;
}
.lead-card .wp-block-post-terms a {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 7px;
  border-radius: 3px;
}
.lead-card .wp-block-post-title {
  margin: 4px 0 8px !important;
  font-size: 14.5px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
  align-self: stretch;
  flex: 1;
}
.lead-card .wp-block-post-title a { color: var(--text); }
.lead-card .wp-block-post-title a:hover { color: var(--blue); }
.lead-card .wp-block-post-date {
  color: var(--muted);
  font-size: 11px;
}

/* Recommended 3-grid */
.recommended-grid > .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.rec-card {
  list-style: none;
  text-align: right;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  transition: transform 0.18s, box-shadow 0.18s;
}
.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(6, 27, 58, 0.08);
}
.rec-card .wp-block-post-featured-image { margin: 0 !important; align-self: stretch; }
.rec-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}
.rec-card .wp-block-post-terms {
  align-self: flex-start;
  margin: 10px 14px 0 !important;
  line-height: 1;
}
.rec-card .wp-block-post-terms a {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 7px;
  border-radius: 3px;
}
.rec-card .wp-block-post-title {
  margin: 8px 14px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
  align-self: stretch;
}
.rec-card .wp-block-post-title a { color: var(--text); }
.rec-card .wp-block-post-title a:hover { color: var(--blue); }
.rec-card .wp-block-post-excerpt {
  margin: 0 14px 12px !important;
  color: #586578;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: right !important;
  align-self: stretch;
}
.rec-card .wp-block-post-excerpt__excerpt {
  text-align: right !important;
  max-width: none !important;
  margin: 0 !important;
}
.rec-card .rec-meta {
  margin: 0 14px 14px !important;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.rec-card .rec-meta p { margin: 0 !important; }

/* News list */
.news-list .wp-block-post-template {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.news-row {
  list-style: none;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 100px !important;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: right;
}
.news-row:last-child { border-bottom: 0; }
.news-time {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.news-time time { color: var(--muted); }
.news-body { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.news-body .wp-block-post-terms,
.news-body .wp-block-post-terms a {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  background: #edf6ff;
  padding: 2px 7px;
  border-radius: 3px;
}
.news-body .wp-block-post-title {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-align: right !important;
  max-width: none !important;
}
.news-body .wp-block-post-title a { color: var(--text); }
.news-body .wp-block-post-title a:hover { color: var(--blue); }
.news-row .news-thumb,
.news-row .wp-block-post-featured-image {
  margin: 0 !important;
}
.news-row .wp-block-post-featured-image img,
.news-row .news-thumb img {
  width: 100px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}
.sec-more {
  display: block;
  margin: 14px auto 0;
  width: max-content;
  padding: 8px 22px;
  border: 1px solid #123e82;
  border-radius: 5px;
  color: #123e82;
  background: #fff;
  font-weight: 800;
  font-size: 12.5px;
  text-align: center;
}
.sec-more:hover { background: #f0f6ff; }

/* Topics grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.15s;
}
.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 27, 58, 0.08);
  border-color: var(--blue);
}
.topic-icon {
  font-size: 32px;
  line-height: 1;
}
.topic-card span {
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
}

/* =================================================================
 * v1.9 - Share buttons: FLAT, brand-colored, no circle backgrounds
 * ================================================================= */
.sharebar {
  margin: 22px 0 !important;
  padding: 14px 0 !important;
  border-block: 1px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  line-height: 1 !important;
}
.sharebar-label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #283447 !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.share-icons.fp-share {
  display: inline-flex !important;
  gap: 14px !important;
  align-items: center !important;
  line-height: 0 !important;
}
.share-icons .share-btn {
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  transition: opacity 0.15s, transform 0.12s;
}
.share-icons .share-btn::before { content: none !important; }
.share-icons .share-btn svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
}
.share-icons .share-btn:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}
.share-icons .share-fb    { color: #1877f2 !important; background: transparent !important; }
.share-icons .share-wa    { color: #25d366 !important; background: transparent !important; }
.share-icons .share-x     { color: #0f0f0f !important; background: transparent !important; }
.share-icons .share-li    { color: #0a66c2 !important; background: transparent !important; }
.share-icons .share-email { color: #6b7280 !important; background: transparent !important; }

/* Responsive for v1.6 */
@media (max-width: 1100px) {
  .leading-grid > .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .home-page-v2 {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }
  .home-aside {
    position: static;
    max-height: none;
    order: 2;
  }
  .home-main { order: 1; }
  .hero-article .wp-block-post-featured-image img { height: 280px !important; }
  .hero-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.hero-overlay { padding: 22px 20px; }
  .hero-overlay .hero-title { font-size: 22px !important; }
  .leading-grid > .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
  .recommended-grid > .wp-block-post-template { grid-template-columns: 1fr !important; }
  .news-row { grid-template-columns: 1fr 80px !important; gap: 10px; }
  .news-row .wp-block-post-featured-image img { width: 80px !important; height: 52px !important; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .leading-grid > .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* =================================================================
 * v1.8 - Related-grid finalize: real photo style, 150px image,
 * overlaid category badge, wider cards
 * ================================================================= */

/* Page slightly wider so 4 cards have room */
.page {
  width: min(100% - 50px, 980px) !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 50px !important;
}

/* Related grid - 4 cards, each ~165px wide x 150px image */
.related-grid > .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: min-content !important;
  align-items: start !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.related-grid > .wp-block-post-template > .wp-block-post {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto !important;
  text-align: right !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Image area - landscape ratio. Image and badge overlap in row 1 */
.related-grid .wp-block-post-featured-image,
.related-grid .wp-block-post-featured-image a {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  margin: 0 0 8px 0 !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  position: relative !important;
  grid-row: 1 / 2 !important;
  grid-column: 1 / 2 !important;
}
.related-grid .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 4px !important;
}

/* Category badge - OVERLAID on image bottom-right via grid stacking */
.related-grid .wp-block-post-terms {
  grid-row: 1 / 2 !important;
  grid-column: 1 / 2 !important;
  align-self: end !important;
  justify-self: start !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 3 !important;
  display: inline-block !important;
  width: fit-content !important;
  padding: 3px 9px !important;
  margin: 0 8px 16px 8px !important;
  background: #edf6ff !important;
  color: var(--blue) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 6px rgba(6, 27, 58, 0.15);
}
.related-grid .wp-block-post-terms a {
  position: static !important;
  display: inline !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--blue) !important;
  font: inherit !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Card title */
.related-grid .wp-block-post-title {
  margin: 4px 0 6px !important;
  font-size: 14px !important;
  line-height: 1.32 !important;
  font-weight: 900 !important;
  text-align: right !important;
  max-width: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-grid .wp-block-post-title a { color: var(--text); }
.related-grid .wp-block-post-title a:hover { color: var(--blue); }

/* Card date - "11 במאי 2026" format */
.related-grid .wp-block-post-date {
  color: #586578 !important;
  font-size: 11px !important;
  margin: 0 !important;
}

/* Related-grid card meta (date · reading time) */
.related-grid .card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #586578 !important;
  font-size: 11px !important;
  font-weight: 600;
  flex-wrap: wrap;
}
.related-grid .card-meta .wp-block-post-date,
.related-grid .card-meta time,
.related-grid .card-meta p {
  color: #586578 !important;
  font-size: 11px !important;
  margin: 0 !important;
  display: inline !important;
}
.related-grid .card-meta .meta-dot {
  color: #aaa;
  font-weight: 700;
}

/* =================================================================
 * CONTACT PAGE
 * ================================================================= */
.contact-page {
  width: min(100% - 50px, 980px);
  margin: 0 auto;
  padding: 0;
  direction: rtl;
}
.contact-page.is-layout-flow > * { margin-block-start: 0; }
.contact-bc { margin: 32px 0 0; }

.contact-hero {
  text-align: center;
  padding: 24px 0 36px;
}
.contact-title {
  font-size: 36px !important;
  font-weight: 900 !important;
  color: var(--navy);
  margin: 0 0 12px !important;
  text-align: center !important;
  max-width: none !important;
}
.contact-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #4f5d70;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-bottom: 44px;
}

/* Form card */
.contact-form-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 32px;
}
.contact-form-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 24px;
  text-align: right;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #283447;
  margin-bottom: 5px;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #283447;
  background: #fff;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,91,231,0.07);
}
.cf-field textarea {
  resize: vertical;
  min-height: 110px;
}
.cf-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667185' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}
.cf-consent {
  margin: 6px 0 20px;
}
.cf-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #667185;
  cursor: pointer;
}
.cf-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.cf-consent a { color: var(--blue); text-decoration: underline; }
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cf-submit:hover { background: #0a2a5a; }

/* Info card */
.contact-info-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 32px;
}
.contact-info-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 20px;
  text-align: right;
}
.ci-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #eef2f7;
}
.ci-item:last-of-type { border-bottom: none; }
.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ci-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ci-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.ci-text a,
.ci-text span {
  font-size: 13px;
  color: #4f5d70;
  text-decoration: none;
}
.ci-text a:hover { color: var(--blue); }

.ci-social-wrap {
  margin-top: 20px;
  padding-top: 16px;
}
.ci-social-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4f5d70;
  margin-bottom: 10px;
}
.ci-social {
  display: flex;
  gap: 9px;
}
.ci-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ci-social a:hover { background: var(--blue); }
.ci-social svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Features bar */
.contact-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  margin: 0;
  padding: 0;
}
.cf-feat {
  text-align: center;
  padding: 28px 14px;
  border-left: 1px solid #e8edf3;
}
.cf-feat:last-child { border-left: none; }
.cf-feat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf-feat-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cf-feat h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 5px;
}
.cf-feat p {
  font-size: 12px;
  line-height: 1.55;
  color: #667185;
  margin: 0;
}

/* Contact responsive */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cf-row { grid-template-columns: 1fr; }
  .contact-features { grid-template-columns: 1fr; }
  .contact-page { width: calc(100% - 28px); }
}

/* =================================================================
 * v1.11 - Archive / category page improvements
 * ================================================================= */
div.page:has(.archive-page) {
  width: min(100% - 70px, 1140px) !important;
}
.archive-grid > .wp-block-post-template {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}
.archive-grid .wp-block-post-featured-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8edf3 0%, #d1d9e6 100%);
  border-radius: 8px;
  overflow: hidden;
}
.archive-grid .wp-block-post-featured-image a {
  display: block;
  height: 100%;
}
.archive-grid .wp-block-post-title {
  font-size: 16px !important;
  line-height: 1.4 !important;
}
.archive-grid > .wp-block-post-template > .wp-block-post {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.archive-grid > .wp-block-post-template > .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 27, 58, 0.10);
}
@media (max-width: 1100px) {
  div.page:has(.archive-page) { width: min(100% - 40px, 900px) !important; }
}
@media (max-width: 860px) {
  div.page:has(.archive-page) { width: calc(100% - 28px) !important; }
  .archive-grid > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .archive-grid > .wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* ========== MOBILE RESPONSIVE OVERHAUL ========== */

/* --- Hamburger button (hidden on desktop) --- */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* --- Mobile menu backdrop --- */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Mobile menu drawer (slide from right for RTL) --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: linear-gradient(180deg, #04152f 0%, #061b3a 40%, #082b58 100%);
  z-index: 999;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  visibility: hidden;
  display: flex;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Mobile menu head */
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu-head .brand { font-size: 26px; }
.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.15); }

/* Mobile menu links */
.mobile-menu-links {
  padding: 12px 0;
  flex: 1;
}
.mobile-menu-links a {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:active {
  background: rgba(255,255,255,0.06);
  color: var(--green);
}

/* Mobile menu footer */
.mobile-menu-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.mobile-menu-footer a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  transition: color 0.15s;
}
.mobile-menu-footer a:hover { color: var(--green); }

/* Mobile search in drawer */
.mobile-search {
  margin: 12px 20px 24px;
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  overflow: hidden;
}
.mobile-search input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 0;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.mobile-search input::placeholder { color: rgba(255,255,255,0.4); }
.mobile-search button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--green);
  color: #06351b;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* --- Show hamburger + mobile menu at 860px --- */
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .subscribe { display: none; }
  .topbar-meta { display: none; }
  .nav-shell { height: 52px; }
}

/* --- Extra mobile polish at 520px --- */
@media (max-width: 520px) {
  .hamburger { width: 36px; height: 36px; }
  .hamburger span { width: 18px; }
  .nav-shell { height: 48px; gap: 10px; }
  .brand { font-size: 22px; }
  .brand span { font-size: 16px; }
  .fp-ticker { height: 36px; min-height: 36px; max-height: 36px; }
  .home-page-v2 { gap: 20px; }
  .hero-overlay .hero-title { font-size: 20px !important; }
  .hero-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.hero-overlay { padding: 16px 14px; }
  .sec-head h2 { font-size: 18px; }
  .aside-card { padding: 14px; }
  .aside-card-head h3 { font-size: 15px; }
  .site-footer { padding: 28px 0 14px; }
  .footer-shell { gap: 20px; }
  .site-footer h3 { font-size: 14px; }
  .site-footer section a { font-size: 12px; }
  .copyright { font-size: 11px; }
  .topics-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .topic-card { padding: 12px 6px; }
  .topic-icon { font-size: 22px; }
  .topic-card span { font-size: 11px; }
}

/* =================================================================
 * ARCHIVE V2 - Category archive template
 * ================================================================= */

/* ========== Archive V2 ========== */
.archive-v2 {
  width: min(100% - 32px, 1260px);
  margin: 10px auto 40px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  direction: ltr;
}
.archive-aside, .archive-v2-main { direction: rtl; }

/* --- Sidebar --- */
.archive-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 110px;
}
.subcat-card .subcat-list { list-style: none; margin: 0; padding: 0; }
.subcat-card .subcat-list li { border-bottom: 1px solid #eef2f7; }
.subcat-card .subcat-list li:last-child { border-bottom: 0; }
.subcat-card .subcat-list a {
  display: block; padding: 11px 16px; font-size: 13.5px;
  font-weight: 600; color: var(--text);
  transition: background .12s, color .12s;
}
.subcat-card .subcat-list a:hover { background: #f0f6ff; color: var(--blue); }
.subcat-card .subcat-list li.active a { color: var(--blue); background: #edf6ff; font-weight: 800; }
.hot-topics-body { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.hot-tag {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--line);
  border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--text);
  background: #fff; transition: background .12s, border-color .12s, color .12s;
}
.hot-tag:hover { background: #edf6ff; border-color: var(--blue); color: var(--blue); }

/* --- Header --- */
.archive-v2-main .breadcrumbs { margin-bottom: 0; font-size: 13px; }
.breadcrumbs .bc-current p { display: inline; margin: 0; }
.archive-v2-head {
  margin-bottom: 20px; padding: 18px 0 14px;
  border-bottom: 3px solid var(--navy); position: relative;
}
.archive-v2-head::after {
  content: ''; position: absolute; bottom: -3px; right: 0;
  width: 80px; height: 3px; background: var(--blue);
}
.archive-v2-title,
.archive-v2-head .wp-block-query-title {
  margin: 0 0 4px !important; font-size: 32px !important;
  line-height: 1.15 !important; font-weight: 900 !important;
  text-align: right !important; max-width: none !important; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.archive-v2-head .wp-block-query-title::after {
  content: ''; display: inline-block; width: 34px; height: 34px; flex-shrink: 0;
  background: var(--blue); border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px;
}
.archive-v2-desc,
.archive-v2-head .wp-block-term-description {
  margin: 6px 0 0; color: #4b5868; font-size: 14.5px; line-height: 1.6;
  max-width: 520px; text-align: right;
}
.archive-v2-desc p { margin: 0; }

/* --- Feed grid (single query, nth-child layout) --- */
.archive-feed .wp-block-post-template.archive-grid,
.archive-v2-main .archive-feed .wp-block-post-template,
ul.archive-grid.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important; padding: 0 !important; list-style: none !important;
}
.archive-grid > li {
  list-style: none !important;
  display: block !important;
}

/* Every post: shared base */
.archive-post {
  list-style: none; text-align: right; direction: rtl;
  overflow: hidden;
}
.archive-post .wp-block-post-featured-image { margin: 0 !important; }
.archive-post .wp-block-post-featured-image img {
  width: 100% !important; object-fit: cover !important;
  display: block !important; border-radius: 0 !important;
}
.archive-post .wp-block-post-terms { display: inline-block; margin: 0 0 6px !important; line-height: 1; }
.archive-post .wp-block-post-terms a {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  color: #fff; background: var(--blue); padding: 2px 8px; border-radius: 3px;
}
.archive-post .wp-block-post-title {
  margin: 0 0 6px !important; font-weight: 800 !important;
  text-align: right !important; max-width: none !important;
}
.archive-post .wp-block-post-title a { color: var(--text); transition: color .12s; }
.archive-post:hover .wp-block-post-title a { color: var(--blue); }
.archive-post .wp-block-post-excerpt {
  margin: 0 !important; color: #586578; font-size: 13px; line-height: 1.55;
  text-align: right !important;
}
.archive-post .wp-block-post-excerpt__excerpt {
  text-align: right !important; max-width: none !important; margin: 0 !important;
}
.archive-post .wp-block-post-excerpt__more-link { display: none !important; }
.archive-post-meta {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 8px;
}
.archive-post-meta .wp-block-post-date,
.archive-post-meta time { color: var(--muted); }
.archive-post-meta p { margin: 0 !important; display: inline; }
.archive-post-meta .meta-dot { opacity: .5; }
.archive-post .archive-author.wp-block-post-author-name,
.archive-post .author-dot { display: none !important; }
.archive-grid > :nth-child(1) .archive-author.wp-block-post-author-name,
.archive-grid > :nth-child(1) .author-dot { display: inline !important; }
.archive-grid > :nth-child(1) .archive-author.wp-block-post-author-name {
  font-weight: 700; color: var(--navy);
}

/* === HERO: 1st child === */
.archive-grid > :nth-child(1) {
  grid-column: 1 / -1;
}
.archive-grid > :nth-child(1) .archive-post {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
  align-items: stretch;
}
.archive-grid > :nth-child(1) .archive-post-img,
.archive-grid > :nth-child(1) .wp-block-post-featured-image {
  height: 100%; min-height: 300px;
}
.archive-grid > :nth-child(1) .wp-block-post-featured-image a { display: block; height: 100%; }
.archive-grid > :nth-child(1) .wp-block-post-featured-image img {
  height: 100% !important; min-height: 300px;
}
.archive-grid > :nth-child(1) .archive-post-body {
  padding: 24px 24px 24px 16px;
  display: flex; flex-direction: column; justify-content: center;
  order: -1;
}
.archive-grid > :nth-child(1) .wp-block-post-terms { margin: 0 0 10px !important; }
.archive-grid > :nth-child(1) .wp-block-post-terms a {
  font-size: 11px; padding: 3px 10px; border-radius: 4px;
}
.archive-grid > :nth-child(1) .wp-block-post-title {
  font-size: 24px !important; line-height: 1.25 !important;
  font-weight: 900 !important; margin: 0 0 10px !important;
}
.archive-grid > :nth-child(1) .wp-block-post-title a { color: var(--navy); }
.archive-grid > :nth-child(1):hover .wp-block-post-title a { color: var(--blue); }
.archive-grid > :nth-child(1) .wp-block-post-excerpt {
  font-size: 14px; line-height: 1.6; color: #4b5868; margin: 0 0 14px !important;
}

/* === CARDS: children 2,3,4 + every cycle (8,9,10 / 15,16,17 etc.) === */
.archive-grid > :nth-child(7n+2),
.archive-grid > :nth-child(7n+3),
.archive-grid > :nth-child(7n+4) {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.archive-grid > :nth-child(7n+2) .archive-post,
.archive-grid > :nth-child(7n+3) .archive-post,
.archive-grid > :nth-child(7n+4) .archive-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.archive-grid > :nth-child(7n+2):hover,
.archive-grid > :nth-child(7n+3):hover,
.archive-grid > :nth-child(7n+4):hover {
  border-color: #c5d0de;
}
.archive-grid > :nth-child(7n+2) .wp-block-post-featured-image,
.archive-grid > :nth-child(7n+3) .wp-block-post-featured-image,
.archive-grid > :nth-child(7n+4) .wp-block-post-featured-image {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.archive-grid > :nth-child(7n+2) .wp-block-post-featured-image img,
.archive-grid > :nth-child(7n+3) .wp-block-post-featured-image img,
.archive-grid > :nth-child(7n+4) .wp-block-post-featured-image img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px 8px 0 0 !important;
}
.archive-grid > :nth-child(7n+2) .archive-post-body,
.archive-grid > :nth-child(7n+3) .archive-post-body,
.archive-grid > :nth-child(7n+4) .archive-post-body {
  padding: 10px 14px 14px; flex: 1; display: flex; flex-direction: column;
}
.archive-grid > :nth-child(7n+2) .wp-block-post-title,
.archive-grid > :nth-child(7n+3) .wp-block-post-title,
.archive-grid > :nth-child(7n+4) .wp-block-post-title {
  font-size: 15px !important; line-height: 1.32 !important;
}
.archive-grid > :nth-child(7n+2) .wp-block-post-excerpt,
.archive-grid > :nth-child(7n+3) .wp-block-post-excerpt,
.archive-grid > :nth-child(7n+4) .wp-block-post-excerpt {
  font-size: 12.5px; flex: 1;
}

/* === LIST ROWS: children 5,6,7,8 + every cycle (12,13,14,15 etc.) === */
.archive-grid > :nth-child(7n+5),
.archive-grid > :nth-child(7n+6),
.archive-grid > :nth-child(7n+7),
.archive-grid > :nth-child(7n+8) {
  grid-column: 1 / -1;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}
.archive-grid > :nth-child(7n+5) .archive-post,
.archive-grid > :nth-child(7n+6) .archive-post,
.archive-grid > :nth-child(7n+7) .archive-post,
.archive-grid > :nth-child(7n+8) .archive-post {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 16px;
  align-items: center;
}
.archive-grid > :nth-child(7n+5) .archive-post-body,
.archive-grid > :nth-child(7n+6) .archive-post-body,
.archive-grid > :nth-child(7n+7) .archive-post-body,
.archive-grid > :nth-child(7n+8) .archive-post-body {
  order: -1;
}
.archive-grid > :nth-child(7n+5) .wp-block-post-featured-image img,
.archive-grid > :nth-child(7n+6) .wp-block-post-featured-image img,
.archive-grid > :nth-child(7n+7) .wp-block-post-featured-image img,
.archive-grid > :nth-child(7n+8) .wp-block-post-featured-image img {
  width: 140px !important; height: 95px !important; border-radius: 6px !important;
}
.archive-grid > :nth-child(7n+5) .wp-block-post-title,
.archive-grid > :nth-child(7n+6) .wp-block-post-title,
.archive-grid > :nth-child(7n+7) .wp-block-post-title,
.archive-grid > :nth-child(7n+8) .wp-block-post-title {
  font-size: 16px !important; line-height: 1.35 !important;
}
.archive-grid > :nth-child(7n+5) .wp-block-post-terms,
.archive-grid > :nth-child(7n+6) .wp-block-post-terms,
.archive-grid > :nth-child(7n+7) .wp-block-post-terms,
.archive-grid > :nth-child(7n+8) .wp-block-post-terms {
  display: none;
}

/* Section spacing */
.archive-grid > :nth-child(5) {
  border-top: 1px solid #eef2f7;
}

/* Pagination */
.archive-v2-pagination { margin-top: 24px; gap: 6px; }
.archive-v2-pagination a,
.archive-v2-pagination span {
  min-width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-weight: 700; color: var(--text);
  background: #fff; transition: background .12s, color .12s;
}
.archive-v2-pagination a:hover { background: #edf6ff; color: var(--blue); }
.archive-v2-pagination .current {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .archive-v2 { grid-template-columns: 1fr; gap: 16px; margin-top: 6px; }
  .archive-v2-main { gap: 0 !important; }
  .archive-v2-head { padding: 4px 0 6px; margin-bottom: 10px; border-bottom-width: 2px; }
  .archive-v2-head::after { height: 2px; bottom: -2px; }
  .archive-v2-main .breadcrumbs { margin-bottom: 0 !important; font-size: 12px; }

  /* Order fix: target outer WP template-part wrapper (the actual grid child) */
  .archive-v2 > aside.wp-block-template-part { order: 2; }
  .archive-v2 > main.archive-v2-main { order: 1; }
  .archive-aside { position: static; gap: 14px; }

  /* Title smaller, tighter on mobile */
  .archive-v2-head .wp-block-query-title,
  .archive-v2-title {
    font-size: 22px !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  .archive-v2-head .wp-block-query-title::after {
    width: 26px; height: 26px; background-size: 14px; border-radius: 6px;
  }
  .archive-v2-desc,
  .archive-v2-head .wp-block-term-description {
    margin: 2px 0 0 !important; font-size: 13px;
  }

  /* All article rows = single column container */
  .archive-feed .wp-block-post-template,
  .archive-v2-main .archive-feed .wp-block-post-template,
  ul.archive-grid.wp-block-post-template,
  .archive-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* ===== HERO (only the 1st item is a true "main" article) ===== */
  .archive-grid > :nth-child(1) {
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--soft);
  }
  .archive-grid > :nth-child(1) .archive-post {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .archive-grid > :nth-child(1) .archive-post-body {
    padding: 14px 14px 16px !important;
    order: -1;
  }
  .archive-grid > :nth-child(1) .archive-post-img,
  .archive-grid > :nth-child(1) .wp-block-post-featured-image {
    height: auto !important; min-height: 0 !important;
    aspect-ratio: 16 / 10;
  }
  .archive-grid > :nth-child(1) .wp-block-post-featured-image img {
    height: 100% !important; min-height: 0 !important;
    width: 100% !important; object-fit: cover;
  }
  .archive-grid > :nth-child(1) .wp-block-post-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }
  .archive-grid > :nth-child(1) .wp-block-post-excerpt {
    font-size: 13.5px;
    margin: 0 0 10px !important;
  }

  /* ===== ALL OTHER ARTICLES: uniform compact horizontal rows ===== */
  /* Override the desktop card / list-row layouts entirely on mobile.
     One clean, dense list pattern: small thumb + title + meta. */
  .archive-grid > :nth-child(n+2) {
    grid-column: 1 / -1 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .archive-grid > :nth-child(n+2):last-child {
    border-bottom: 0 !important;
  }
  .archive-grid > :nth-child(n+2) .archive-post {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    flex-direction: row !important;
  }
  .archive-grid > :nth-child(n+2) .archive-post-body {
    padding: 0 !important;
    order: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-featured-image {
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    width: 96px !important;
    overflow: hidden;
    border-radius: 6px;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-featured-image a {
    display: block; height: 100%;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-featured-image img {
    width: 96px !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-terms {
    display: none !important;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-title {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-weight: 700 !important;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-excerpt {
    display: none !important;
  }
  .archive-grid > :nth-child(n+2) .archive-post-meta {
    margin-top: 2px !important;
    font-size: 10.5px !important;
    gap: 4px !important;
  }
  .archive-grid > :nth-child(n+2) .archive-post-meta p {
    margin: 0 !important;
  }
}

@media (max-width: 520px) {
  .archive-v2 { width: calc(100% - 24px); }
  .archive-v2-head .wp-block-query-title,
  .archive-v2-title { font-size: 20px !important; }
  .archive-grid > :nth-child(1) .wp-block-post-title { font-size: 17px !important; }
  .archive-grid > :nth-child(n+2) .archive-post {
    grid-template-columns: 84px minmax(0, 1fr) !important;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-featured-image,
  .archive-grid > :nth-child(n+2) .wp-block-post-featured-image img {
    width: 84px !important;
  }
  .archive-grid > :nth-child(n+2) .wp-block-post-title {
    font-size: 14px !important;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .archive-v2 { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
}



/* Infinite scroll spinner */
.fp-spinner {
  display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--line, #dce4ee);
  border-top-color: var(--blue, #0b5be7);
  border-radius: 50%;
  animation: fp-spin .7s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }
.infinite-scroll-end {
  text-align: center; padding: 20px 0;
  color: var(--muted, #667185); font-size: 14px;
}

/* Newsletter small disclaimer */
.aside-newsletter small {
  display: block; margin-top: 8px;
  font-size: 10.5px; line-height: 1.4;
  color: rgba(255,255,255,0.45);
}
.aside-newsletter input::placeholder {
  color: #999; font-size: 13px;
}

/* Card image fixed aspect ratio */
.archive-grid > :nth-child(7n+2) .wp-block-post-featured-image,
.archive-grid > :nth-child(7n+3) .wp-block-post-featured-image,
.archive-grid > :nth-child(7n+4) .wp-block-post-featured-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

/* Equalize card heights */
.archive-grid > :nth-child(7n+2),
.archive-grid > :nth-child(7n+3),
.archive-grid > :nth-child(7n+4) {
  display: flex;
  flex-direction: column;
}

/* Hide excerpt on list rows */
.archive-grid > :nth-child(7n+5) .wp-block-post-excerpt,
.archive-grid > :nth-child(7n+6) .wp-block-post-excerpt,
.archive-grid > :nth-child(7n+7) .wp-block-post-excerpt,
.archive-grid > :nth-child(7n+8) .wp-block-post-excerpt {
  display: none;
}

/* Card meta push to bottom */
.archive-grid > :nth-child(7n+2) .archive-post-meta,
.archive-grid > :nth-child(7n+3) .archive-post-meta,
.archive-grid > :nth-child(7n+4) .archive-post-meta {
  margin-top: auto;
}

/* Force all article content blocks to same right edge */
.article .wp-block-post-content > *,
.article .entry-content > * {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.article .wp-block-post-content > p,
.article .entry-content > p {
  margin: 0 0 18px !important;
}
.article .wp-block-post-content > ul,
.article .entry-content > ul,
.article .wp-block-post-content > ol,
.article .entry-content > ol {
  margin: 0 0 18px !important;
  padding-right: 20px !important;
}


/* ============================================================
   Newsletter form states (loading / success / error)
   ============================================================ */
.nl-status { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.is-loading .nl-status { color: #4a5568; }
.is-success .nl-status { color: #047857; background: #d1fae5; border-radius: 8px; padding: 14px 16px; font-weight: 600; text-align: center; }
.is-error .nl-status { color: #b42318; background: #fee4e2; border-radius: 6px; padding: 8px 12px; }
.nl-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: nl-spin .8s linear infinite; vertical-align: -2px; margin-inline-end: 6px; }
@keyframes nl-spin { to { transform: rotate(360deg); } }
.nativ-newsletter-form button[disabled] { opacity: .8; cursor: wait; }
.nativ-newsletter-form input[disabled] { opacity: .7; }

/* =================================================================
 * CONSUMER CATEGORY HERO BANNER
 * ================================================================= */
.consumer-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #04132d 0%, #081d3f 40%, #0b2650 100%);
}
.consumer-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.consumer-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.5;
}
.consumer-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(6,18,40,0.88) 35%, rgba(8,24,52,0.5) 65%, rgba(10,30,60,0.25) 100%);
}
.consumer-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 48px 0 0;
}
.consumer-hero-text {
  text-align: right;
  margin-bottom: 36px;
}
.consumer-badge {
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.consumer-hero-title {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
}
.consumer-hero-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}
.consumer-indicators {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 20px rgba(6,25,54,0.1);
  overflow: hidden;
}
.consumer-ind {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-left: 1px solid #e8edf3;
}
.consumer-ind:first-child { border-left: none; }
.consumer-ind-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.consumer-ind-body {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.consumer-ind-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 3px;
}
.consumer-ind-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 2px;
}
.consumer-ind-unit {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}
.consumer-ind-arrow {
  font-size: 12px;
  margin-inline-end: 2px;
}
.consumer-ind-arrow.up { color: #e53e3e; }
.consumer-ind-arrow.down { color: #38a169; }
.consumer-ind-note {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.consumer-ind-note.up { color: #e53e3e; }
.consumer-ind-note.down { color: #38a169; }
.consumer-ind-note.neutral { color: #94a3b8; }

@media (max-width: 860px) {
  .consumer-hero-inner { padding: 32px 0 0; }
  .consumer-hero-title { font-size: 34px; }
  .consumer-indicators { grid-template-columns: repeat(3, 1fr); }
  .consumer-ind:nth-child(4) { border-left: none; }
}
@media (max-width: 520px) {
  .consumer-hero-inner { padding: 24px 0 0; }
  .consumer-hero-text { margin-bottom: 24px; }
  .consumer-hero-title { font-size: 28px; }
  .consumer-hero-subtitle { font-size: 14px; }
  .consumer-indicators { grid-template-columns: repeat(2, 1fr); }
  .consumer-ind { padding: 14px 12px; gap: 8px; }
  .consumer-ind:nth-child(odd) { border-left: none; }
  .consumer-ind:nth-child(5) { grid-column: 1 / -1; }
  .consumer-ind-val { font-size: 18px; }
  .consumer-ind-icon { width: 28px; height: 28px; font-size: 16px; }
}

/* ─── CTA Template ─── */
.cta-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,91,231,.2);
}
.cta-btn-primary {
  background: var(--wp--preset--color--blue);
  color: #fff;
}
.cta-btn-secondary {
  background: transparent;
  border: 2px solid var(--wp--preset--color--blue);
  color: var(--wp--preset--color--blue);
  margin-top: 10px;
}
.cta-btn-secondary:hover {
  background: var(--wp--preset--color--blue);
  color: #fff;
}

/* Sidebar CTA */
.sidebar-cta .side-cta-main {
  text-align: right;
  padding: 28px 24px;
}
.sidebar-cta .cta-icon {
  color: var(--wp--preset--color--blue);
  margin-bottom: 12px;
}
.sidebar-cta .cta-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.3;
}
.sidebar-cta .cta-subtitle {
  font-size: 14px;
  color: var(--wp--preset--color--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.sidebar-cta .side-cta-benefits {
  padding: 24px;
  text-align: right;
}
.sidebar-cta .side-cta-benefits h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}
.cta-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cta-benefits-list li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wp--preset--color--text);
}
.cta-benefits-list li::before {
  content: "\2713";
  position: absolute;
  right: 0;
  color: var(--wp--preset--color--green);
  font-weight: 700;
}
.sidebar-cta .side-cta-bottom {
  text-align: center;
  padding: 24px;
  background: var(--wp--preset--color--soft);
}
.sidebar-cta .cta-urgency {
  font-size: 13px;
  font-weight: 700;
  color: var(--wp--preset--color--red);
  margin: 0 0 12px;
}

.sidebar-cta .side-cta-benefits .cta-btn {
  margin-top: 16px;
}
.footer-cta-shell {
  display: flex;
  justify-content: flex-end;
}
.site-footer-cta .footer-brand {
  text-align: right;
}

/* Article CTA Box */
.article-cta-box {
  margin: 40px 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid var(--wp--preset--color--line);
  overflow: hidden;
}
.article-cta-inner {
  padding: 36px 28px;
  text-align: center;
}
.article-cta-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--wp--preset--color--text);
}
.article-cta-text {
  font-size: 15px;
  color: var(--wp--preset--color--muted);
  margin: 0 0 22px;
}
.article-cta-buttons {
  max-width: 320px;
  margin: 0 auto;
}

/* CTA Header - sponsored label */
.cta-sponsored-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--wp--preset--color--muted);
  background: var(--wp--preset--color--soft);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.topbar-cta .primary-nav a {
  font-weight: 700;
}

/* Inline CTA buttons in article */
.inline-cta {
  text-align: center;
  margin: 40px 0;
  padding: 0 16px;
}
.wp-block-post-content a.inline-cta-btn,
.entry-content a.inline-cta-btn,
a.inline-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 280px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #0b5be7 0%, #0945b5 100%);
  color: #fff !important;
  font-size: 18px;
  font-weight: 800 !important;
  border-radius: 12px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(11,91,231,.3), 0 1px 3px rgba(0,0,0,.1);
}
.inline-cta-btn::before {
  content: "\2192";
  font-size: 20px;
  transition: transform .2s ease;
}
.wp-block-post-content a.inline-cta-btn:hover,
a.inline-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(11,91,231,.35), 0 2px 6px rgba(0,0,0,.12);
  color: #fff !important;
}
.inline-cta-btn:hover::before {
  transform: translateX(-4px);
}
.inline-cta-btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 3px 10px rgba(11,91,231,.25);
}
