/*
Theme Name: JLM News UltraLight (ז'ורנל ניוז אולטרה-לייט)
Theme URI: https://dlions.co.il
Author: Antigravity Team
Author URI: https://dlions.co.il
Description: תבנית וורדפרס סופר-מהירה, קלילה ומודרנית לאתרי חדשות. עיצוב נקי בעל צבעוניות בהירה (צהוב, כחול בהיר, ירוק ונגיעות זהב), טיפוגרפיה אחידה בעברית (Heebo), ומבנה מותאם אישית לעמוד הבית, קטגוריות וכתבות.
Version: 1.0.2
Text Domain: jlm-news
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   1. CSS VARIABLES & DESIGN SYSTEM (משתני עיצוב וצבעים)
   ========================================================================== */
:root {
  /* Fonts */
  --font-main: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --bg-main: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  /* Brand Accents */
  --brand-yellow: #FACC15;
  --brand-yellow-light: #FEF9C3;
  --brand-blue: #38BDF8;
  --brand-blue-dark: #0284C7;
  --brand-blue-bg: #E0F2FE;
  --brand-green: #10B981;
  --brand-green-dark: #047857;
  --brand-green-bg: #D1FAE5;
  --brand-gold: #D97706;
  --brand-gold-glow: #F59E0B;
  --brand-gold-light: #FEF3C7;

  /* UI Borders & Shadows */
  --border-light: #E2E8F0;
  --border-accent: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-gold: 0 4px 14px rgba(217, 119, 6, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

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

html {
  font-family: var(--font-main);
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   3. TOP TICKER & HEADER (סרגל עליון והדר קבוע)
   ========================================================================== */
.site-top-bar {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid var(--brand-gold);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94A3B8;
  font-weight: 500;
  white-space: nowrap;
}

.top-bar-date svg {
  color: var(--brand-yellow);
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  flex: 1;
}

.ticker-badge {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-yellow));
  color: #0F172A;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.ticker-content {
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeIn 0.5s ease;
}

.ticker-content a:hover {
  color: var(--brand-yellow);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

/* Brand Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 50%, var(--brand-gold) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

.logo-text span {
  color: var(--brand-gold);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item a {
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  position: relative;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--brand-blue-dark);
  background-color: var(--brand-blue-bg);
}

.nav-item.hot-item a {
  color: #B45309;
  background-color: var(--brand-yellow-light);
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.nav-item.hot-item a:hover {
  background-color: var(--brand-yellow);
  color: #0F172A;
}

/* Search & Mobile Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-trigger-btn:hover {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-bg);
  color: var(--brand-blue-dark);
}

.mobile-toggle-btn {
  display: none;
  padding: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   4. SECTION HEADERS & BADGES (כותרות סקציה ותגיות)
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  border-radius: var(--radius-full);
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-latest { background: var(--brand-blue-bg); color: var(--brand-blue-dark); }
.icon-hot { background: var(--brand-yellow-light); color: var(--brand-gold); }
.icon-consumer { background: var(--brand-green-bg); color: var(--brand-green-dark); }
.icon-news { background: var(--brand-blue-bg); color: var(--brand-blue-dark); }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.section-link:hover {
  color: var(--brand-gold);
  transform: translateX(-4px);
}

/* Category Badges */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.cat-badge.blue { background-color: var(--brand-blue); color: #0F172A; }
.cat-badge.yellow { background-color: var(--brand-yellow); color: #0F172A; }
.cat-badge.green { background-color: var(--brand-green); color: #FFFFFF; }
.cat-badge.gold { background-color: var(--brand-gold); color: #FFFFFF; }

/* ==========================================================================
   5. HOMEPAGE LAYOUTS (עמוד הבית - גרידים וכרטיסים)
   ========================================================================== */
.main-content-wrapper {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Top Latest Hero Grid */
.hero-news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--text-primary);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.2);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-main-card:hover .hero-bg-img {
  transform: scale(1.04);
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.95) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #FFFFFF;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title a:hover {
  color: var(--brand-yellow);
}

.hero-excerpt {
  font-size: 1rem;
  color: #E2E8F0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Secondary 4-Grid */
.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sub-news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.sub-news-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sub-card-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.sub-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sub-news-card:hover .sub-card-img-wrap img {
  transform: scale(1.05);
}

.sub-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sub-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-card-title a:hover {
  color: var(--brand-blue-dark);
}

.card-footer-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Hot Section (חם באתר) */
.hot-section {
  background: linear-gradient(135deg, #FEFCE8 0%, #FEF3C7 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hot-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.hot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: var(--brand-gold);
}

.hot-badge-icon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--brand-gold);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.hot-card-img {
  height: 120px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.hot-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hot-card-title a:hover {
  color: var(--brand-gold);
}

/* Consumerism Section (צרכנות) */
.consumer-section {
  margin-bottom: 3.5rem;
}

.consumer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.consumer-cards-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.consumer-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.consumer-card:hover {
  border-color: var(--brand-green);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.consumer-card-img {
  height: 160px;
  overflow: hidden;
}

.consumer-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.consumer-tag {
  color: var(--brand-green-dark);
  background-color: var(--brand-green-bg);
}

.consumer-sidebar-box {
  background-color: #F0FDF4;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.consumer-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(16, 185, 129, 0.25);
}

.deal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.deal-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.deal-item-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.deal-item-info h4 a:hover {
  color: var(--brand-green-dark);
}

.deal-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-gold);
  margin-top: 0.2rem;
}

/* General News Section (חדשות) */
.news-section {
  margin-bottom: 2rem;
}

.news-layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
}

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-feed-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.news-feed-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateX(-3px);
}

.news-feed-img {
  border-radius: var(--radius-sm);
  height: 140px;
  width: 100%;
  object-fit: cover;
}

.news-feed-content {
  display: flex;
  flex-direction: column;
}

.news-feed-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.news-feed-title a:hover {
  color: var(--brand-blue-dark);
}

.news-feed-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: auto;
}

/* Sidebar Widgets */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-yellow);
}

.widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget-post-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.widget-post-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-gold);
  width: 28px;
  text-align: center;
}

.widget-post-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.widget-post-title a:hover {
  color: var(--brand-blue-dark);
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--brand-blue-bg) 0%, #EFF6FF 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.newsletter-btn {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.newsletter-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   6. CATEGORY ARCHIVE PAGE (עמוד קטגוריה)
   ========================================================================== */
.category-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumbs a:hover {
  color: var(--brand-blue-dark);
}

.category-title-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.category-main-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-primary);
}

.category-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.category-subnav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.subnav-pill {
  padding: 0.4rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.subnav-pill.active,
.subnav-pill:hover {
  background-color: var(--brand-blue-dark);
  color: #FFFFFF;
  border-color: var(--brand-blue-dark);
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.page-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
}

.page-num.active,
.page-num:hover {
  background-color: var(--brand-gold);
  color: #FFFFFF;
  border-color: var(--brand-gold);
}

/* ==========================================================================
   7. SINGLE POST PAGE (עמוד פוסט יחיד)
   ========================================================================== */
.post-header-area {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-main-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.post-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.author-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--brand-gold);
}

.author-name {
  font-weight: 800;
  font-size: 1rem;
}

.post-date-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.read-time-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--brand-yellow-light);
  color: #B45309;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.single-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 520px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.single-post-layout {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 2.5rem;
}

.article-body-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1E293B;
}

.article-body-content p {
  margin-bottom: 1.5rem;
}

/* קישורים מעוצבים ומודגשים בגוף הכתבה (Anchor Links) */
.article-body-content a {
  color: #0284C7;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-color: #D97706 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
  padding: 0 2px;
}

.article-body-content a:hover {
  color: #0F172A;
  background-color: #FEF9C3;
  text-decoration-color: #FACC15 !important;
}

.article-body-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-right: 4px solid var(--brand-gold);
  padding-right: 0.75rem;
}

.article-body-content blockquote {
  background-color: var(--brand-blue-bg);
  border-right: 4px solid var(--brand-blue-dark);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0369A1;
}

/* Social Share Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.share-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: #FFFFFF;
}

.share-whatsapp { background-color: #25D366; }
.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #000000; }
.share-copy { background-color: var(--text-secondary); }

/* Related Posts Section */
.related-posts-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ==========================================================================
   8. FOOTER (פוטר קבוע ויוקרתי)
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #F8FAFC;
  margin-top: auto;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-top: 4px solid var(--brand-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.6rem;
  color: #FFFFFF;
}

.footer-about {
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--brand-gold);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: #CBD5E1;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--brand-yellow);
  transform: translateX(-4px);
}

.partner-links-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.partner-link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-yellow) !important;
  margin-bottom: 0.75rem;
}

.partner-link-item:last-child {
  margin-bottom: 0;
}

.partner-link-item svg {
  color: var(--brand-gold);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748B;
  font-size: 0.85rem;
}

.back-to-top-btn {
  background-color: #1E293B;
  color: var(--brand-yellow);
  border: 1px solid #334155;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.back-to-top-btn:hover {
  background-color: var(--brand-gold);
  color: #0F172A;
}

/* ==========================================================================
   9. MODAL & SEARCH POPUP
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-container {
  background-color: var(--bg-card);
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-modal-overlay.active .search-modal-container {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.search-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.close-modal-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-search-form {
  display: flex;
  gap: 0.5rem;
}

.modal-search-input {
  flex: 1;
  border: 2px solid var(--brand-blue);
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
}

.modal-search-submit {
  background-color: var(--brand-blue-dark);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES (התאמה למכשירים ניידים)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-news-grid {
    grid-template-columns: 1fr;
  }
  .consumer-grid,
  .news-layout-grid,
  .single-post-layout {
    grid-template-columns: 1fr;
  }
  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .hero-sub-grid,
  .consumer-cards-col,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .hot-grid {
    grid-template-columns: 1fr;
  }
  .news-feed-card {
    grid-template-columns: 1fr;
  }
  .news-feed-img {
    height: 180px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .post-main-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   11. CUSTOM HASHAV.CO.IL PAYROLL BANNERS (באנרים מיוחדים לקורס חשבי שכר)
   ========================================================================== */

.hashav-banner-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  margin: 2rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hashav-banner-link:hover {
  transform: translateY(-4px);
}

/* Horizontal Banner (מלבן מיוחד בעמוד הבית) */
.hashav-banner-wide {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0284C7 100%);
  border: 2px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25), 0 0 15px rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #FFFFFF;
}

.hashav-banner-wide::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hashav-wide-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.hashav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-yellow));
  color: #0F172A;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-sm);
}

.hashav-wide-title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.hashav-wide-title span {
  color: var(--brand-yellow);
}

.hashav-wide-desc {
  font-size: 1rem;
  color: #E2E8F0;
  font-weight: 400;
}

.hashav-cta-btn {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-gold) 100%);
  color: #0F172A;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

.hashav-banner-link:hover .hashav-cta-btn {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--brand-yellow) 100%);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.6);
  transform: scale(1.05);
}

/* Square Banner (ריבוע קבוע בפוסטים / סיידבר) */
.hashav-banner-square {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 60%, #0369A1 100%);
  border: 2px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3), var(--shadow-gold);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 290px;
  color: #FFFFFF;
}

.hashav-square-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hashav-square-title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.hashav-square-title span {
  color: var(--brand-yellow);
  display: block;
}

.hashav-square-desc {
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 1rem;
}

.hashav-square-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
  .hashav-banner-wide {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
  .hashav-wide-title {
    font-size: 1.3rem;
  }
}

