/*
Theme Name: Making Money - Finance, Investments & Loans
Theme URI: https://making-money.co.il/
Author: Making Money Financial Media
Description: תבנית פורטל פיננסי יוקרתית, סמכותית ומודרנית עבור Making Money – פורטל מוביל בנושאי פיננסים, השקעות ושוק ההון, ביטוח ופנסיה, הלוואות ומשכנתאות. כוללת מדור מאמרים אחרונים מכל הקטגוריות, מחשבונים פיננסיים, דיסקליימר משפטי בולט, חלון עוגיות (Cookies) קופץ ותוסף נגישות מובנה.
Version: 1.0.0
Text Domain: making-money
*/

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-main: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;

  /* Fintech & Financial Authority Color Palette */
  --color-navy: #0f172a;          /* Obsidian Navy */
  --color-navy-dark: #0b1329;     /* Deep Market Navy */
  --color-navy-surface: #1e293b;  /* Slate Surface */
  
  --color-emerald: #10b981;       /* Financial Growth Green */
  --color-emerald-dark: #059669;
  --color-emerald-deep: #047857;
  --color-emerald-light: #ecfdf5;
  
  --color-blue: #2563eb;          /* Institutional Trust Blue */
  --color-blue-dark: #1d4ed8;
  --color-blue-light: #eff6ff;

  --color-amber: #f59e0b;
  --color-amber-light: #fffbeb;
  --color-purple: #8b5cf6;
  --color-purple-light: #f5f3ff;

  --color-white: #ffffff;
  --color-bg-page: #f8fafc;
  --color-bg-slate: #f1f5f9;

  --color-text-main: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;

  --border-light: #e2e8f0;
  --border-dark: #334155;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-emerald: 0 8px 24px rgba(16, 185, 129, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-page);
  color: var(--color-text-body);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: var(--font-main);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   LIVE MARKET TICKER BAR
   ========================================================================== */
.market-ticker-bar {
  background-color: var(--color-navy-dark);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-pulse {
  width: 7px;
  height: 7px;
  background: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticker-marquee-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.ticker-marquee-wrap::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t-lbl {
  color: #94a3b8;
}

.t-val {
  color: #ffffff;
}

.t-val.t-up {
  color: var(--color-emerald);
}

.t-sep {
  color: #334155;
}

/* ==========================================================================
   PORTAL MAIN HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.07);
}

.header-main-nav {
  padding: 16px 0;
}

.header-nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-emerald-dark);
  letter-spacing: 0.4px;
}

/* Nav Menu */
.primary-nav-wrap ul.nav-menu-list,
.primary-nav-wrap ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-emerald-dark);
}

.nav-link.highlight-pill {
  background: var(--color-emerald-light);
  color: var(--color-emerald-deep);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 800;
}

.header-action-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  transition: var(--transition);
}

.btn-header-calc:hover {
  background-color: var(--color-emerald-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-emerald);
}

.mobile-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-slate);
  border: 1px solid var(--border-light);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
}

/* ==========================================================================
   HERO FINANCIAL OVERVIEW
   ========================================================================== */
.hero-finance-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 110px 0 90px;
}

.hero-content-wrap {
  max-width: 900px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-emerald);
  margin-bottom: 24px;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: var(--color-emerald);
  border-radius: 50%;
}

.hero-main-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-lead-desc {
  font-size: 19px;
  color: #cbd5e1;
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 820px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-emerald);
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-hero-primary:hover {
  background-color: #ffffff;
  color: var(--color-navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-3px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-emerald);
}

.stat-label {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* ==========================================================================
   CONTENT SECTIONS & SHARED TITLES
   ========================================================================== */
.content-section {
  padding: 85px 0;
}

.content-section.bg-slate {
  background-color: var(--color-bg-slate);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.content-section.bg-dark {
  background-color: var(--color-navy);
  color: #ffffff;
}

.section-title-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-emerald-deep);
  background: var(--color-emerald-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-label-emerald {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-main-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.3;
}

.section-desc-lead {
  font-size: 17px;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-top: 12px;
}

/* ==========================================================================
   THE 4 FINANCIAL PILLARS GRID (4 עמודי התווך)
   ========================================================================== */
.pillars-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.pillar-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-navy);
}

.pillar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-card-img img {
  transform: scale(1.08);
}

.pillar-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  color: #ffffff;
}

.badge-emerald { background: var(--color-emerald-dark); }
.badge-blue { background: var(--color-blue); }
.badge-purple { background: var(--color-purple); }
.badge-amber { background: var(--color-amber); }

.pillar-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.pillar-card-body p {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pillar-bullet-list {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-bullet-list li {
  font-size: 12px;
  color: var(--color-text-muted);
  position: relative;
  padding-right: 14px;
  font-weight: 600;
}

.pillar-bullet-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--color-emerald);
  font-weight: 900;
}

/* ==========================================================================
   FINANCIAL CALCULATORS
   ========================================================================== */
.calculators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calc-box-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 22px;
}

.calc-icon {
  font-size: 28px;
}

.calc-header h3 {
  font-size: 19px;
  font-weight: 900;
  color: var(--color-navy);
}

.calc-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

.calc-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.calc-input-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-navy);
  background: var(--color-bg-page);
  outline: none;
  transition: border-color 0.2s ease;
}

.calc-input-group input:focus {
  border-color: var(--color-emerald);
  background: #ffffff;
}

.calc-result-box {
  background: var(--color-emerald-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.res-lbl {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-emerald-deep);
}

.res-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-emerald-deep);
}

/* ==========================================================================
   CRITICAL REQUIREMENT: RECENT ARTICLES ACROSS ALL CATEGORIES
   ========================================================================== */
.articles-cat-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cat-pill-btn {
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--color-text-body);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-pill-btn:hover,
.cat-pill-btn.active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  transform: translateY(-2px);
}

.recent-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portal-article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portal-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.article-thumb-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: var(--color-navy);
}

.article-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portal-article-card:hover .article-thumb-wrap img {
  transform: scale(1.07);
}

.article-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: var(--color-emerald);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}

.article-body-wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-meta-row .dot {
  color: var(--color-emerald);
}

.article-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.article-title a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--color-emerald-dark);
}

.article-excerpt {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.75;
  margin-bottom: 18px;
  flex-grow: 1;
}

.article-footer-row {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.article-author {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 12px;
}

.article-read-link {
  color: var(--color-navy);
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.article-read-link:hover {
  color: var(--color-emerald-dark);
  transform: translateX(-4px);
}

.articles-center-cta {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   5 GOLDEN RULES GRID
   ========================================================================== */
.golden-rules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.rule-card {
  background: var(--color-navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
}

.rule-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-emerald);
  margin-bottom: 10px;
}

.rule-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.rule-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==========================================================================
   SINGLE POST - MANDATORY BOLD & BLUE ANCHOR LINKS
   ========================================================================== */
.post-single-page {
  padding: 60px 0 100px;
}

.single-article-container {
  max-width: 900px;
  margin: 0 auto;
}

.single-article-header {
  text-align: center;
  margin-bottom: 36px;
}

.single-cat-badge-wrap {
  margin-bottom: 12px;
}

.cat-pill {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-emerald-deep);
  background: var(--color-emerald-light);
  padding: 4px 14px;
  border-radius: 20px;
}

.single-article-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 14px 0 16px;
}

.single-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.single-featured-image-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid var(--border-light);
}

.single-featured-image-box img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.single-article-card-body {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 46px;
  box-shadow: var(--shadow-sm);
}

.post-content-entry {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-body);
}

.post-content-entry p {
  margin-bottom: 22px;
}

.post-content-entry .lead-paragraph {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.85;
}

.post-content-entry h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-navy);
  margin: 36px 0 16px;
}

.in-content-highlight-box {
  background: var(--color-bg-slate);
  border-right: 4px solid var(--color-emerald);
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  margin: 28px 0;
}

.in-content-highlight-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.in-content-highlight-box p {
  margin-bottom: 0;
  font-size: 15px;
}

/* MANDATORY ANCHOR LINK STYLING: BOLD AND BLUE */
.post-content-entry a,
.article-body-content a,
.single-article-content a,
.entry-content a,
.post-content a {
  color: #2563eb !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 2px !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

.post-content-entry a:hover,
.article-body-content a:hover,
.single-article-content a:hover,
.entry-content a:hover,
.post-content a:hover {
  color: #1d4ed8 !important;
  text-decoration-color: #1d4ed8 !important;
}

.in-post-disclaimer-card {
  margin-top: 30px;
  padding: 16px 20px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #854d0e;
  line-height: 1.6;
}

.disc-label {
  font-weight: 900;
  display: block;
  margin-bottom: 4px;
}

.single-article-bottom-bar {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-navy);
}

.tag-item {
  font-size: 12px;
  background: var(--color-bg-slate);
  color: var(--color-text-muted);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.back-to-articles-btn {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-navy);
}

.back-to-articles-btn:hover {
  color: var(--color-emerald-dark);
}

/* ==========================================================================
   SITE FOOTER WITH PROMINENT LEGAL DISCLAIMER & 3 SEO LINKS
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #cbd5e1;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid-main {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-portal-tags span {
  font-size: 11px;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.footer-heading {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-emerald);
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links li a {
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-links li a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* PROMINENT DISCLAIMER BOX */
.footer-disclaimer-wrapper {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.disclaimer-alert-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-right: 5px solid var(--color-amber);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.disclaimer-header {
  margin-bottom: 12px;
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--color-amber);
  text-transform: uppercase;
}

.disclaimer-body-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.85;
}

.disclaimer-body-text p {
  margin-bottom: 10px;
}

.disclaimer-body-text p:last-child {
  margin-bottom: 0;
}

.footer-middle-bar {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.footer-legal-links .sep {
  color: #475569;
}

/* Mandatory Credits Bar with the 3 Links */
.footer-bottom-bar {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

.footer-copyright {
  color: #64748b;
}

.footer-credits-seo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-credits-seo a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credits-seo a:hover {
  color: #ffffff !important;
}

.credits-sep {
  color: #475569;
}

/* ==========================================================================
   COOKIE CONSENT BANNER POPUP (חלון עוגיות קופץ)
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  z-index: 99998;
  padding: 20px;
  transition: opacity 0.3s ease;
  animation: cookieSlideUp 0.35s ease;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner-icon {
  font-size: 26px;
  line-height: 1;
}

.cookie-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 12px;
  color: var(--color-text-body);
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-cookie-accept {
  background-color: var(--color-emerald-dark);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background-color: var(--color-emerald-deep);
}

.cookie-info-link {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ==========================================================================
   BUILT-IN ACCESSIBILITY TOOLBAR WIDGET
   ========================================================================== */
.a11y-widget-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
}

.a11y-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  border: 2px solid var(--color-emerald);
  cursor: pointer;
  transition: var(--transition);
}

.a11y-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--color-emerald-dark);
}

.a11y-popup-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: a11yFadeIn 0.25s ease;
}

@keyframes a11yFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.a11y-panel-header {
  background: var(--color-navy);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a11y-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-emerald);
}

.a11y-close-btn {
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.a11y-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}

.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-slate);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-main);
  transition: var(--transition);
}

.a11y-btn:hover,
.a11y-btn.active {
  background: var(--color-navy);
  color: var(--color-emerald);
  border-color: var(--color-navy);
}

.a11y-btn-icon {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.a11y-panel-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-slate);
  font-size: 12px;
}

.a11y-reset-action {
  color: #dc2626;
  font-weight: 700;
}

.a11y-stmt-link {
  color: var(--color-text-muted);
}

/* Accessibility Body Modifiers */
body.a11y-font-large { font-size: 118% !important; }
body.a11y-font-small { font-size: 88% !important; }
body.a11y-grayscale { filter: grayscale(100%) !important; }
body.a11y-high-contrast { filter: contrast(180%) !important; background: #000000 !important; color: #ffff00 !important; }
body.a11y-high-contrast * { background-color: #000000 !important; color: #ffff00 !important; border-color: #ffff00 !important; }
body.a11y-negative-contrast { filter: invert(100%) hue-rotate(180deg) !important; }
body.a11y-underline-links a { text-decoration: underline !important; font-weight: bold !important; }
body.a11y-readable-font * { font-family: Arial, sans-serif !important; }
body.a11y-highlight-titles h1, body.a11y-highlight-titles h2, body.a11y-highlight-titles h3 { text-decoration: underline; color: #059669 !important; }

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-main-title {
    font-size: 38px;
  }

  .pillars-four-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .golden-rules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .market-ticker-bar {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .btn-header-calc {
    display: none;
  }

  .primary-nav-wrap {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .primary-nav-wrap.is-open {
    display: block;
  }

  .primary-nav-wrap ul.nav-menu-list,
  .primary-nav-wrap ul {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-finance-section {
    padding: 70px 0 60px;
  }

  .hero-main-title {
    font-size: 28px;
  }

  .hero-lead-desc {
    font-size: 16px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-main-title {
    font-size: 26px;
  }

  .pillars-four-grid,
  .calculators-grid,
  .recent-articles-grid,
  .golden-rules-grid,
  .footer-grid-main {
    grid-template-columns: 1fr;
  }

  .single-article-title {
    font-size: 28px;
  }

  .single-article-card-body {
    padding: 24px 18px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .cookie-consent-banner {
    left: 16px;
    right: 16px;
    bottom: 80px;
    max-width: none;
  }
}
