/*
Theme Name: שלומי אונליין
Theme URI: https://shlomi.online
Author: BDNHOST
Author URI: https://bdnhost.net
Description: תבנית מקצועית לפורטל חדשות מקומי בעברית עם עיצוב מודרני ורספונסיבי - גרסה משופרת עם נגישות, lazy loading ואופטימיזציה
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shlomi-online
Tags: news, rtl-language-support, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, accessibility-ready
*/

/* ========================================
   🎨 Design System - Clean & Professional
   צבעי מותג: כחול, אדום, לבן
   סגנון: נקי, אוורירי, מקצועי
======================================== */

:root {
  /* Primary Colors - מאופקים ומקצועיים */
  --primary-blue: #1e3a5f;           /* כחול עמוק ומתוחכם */
  --primary-blue-light: #2d4a6f;     /* כחול בהיר יותר */
  --primary-blue-pale: #e8eef4;      /* כחול מאוד בהיר לרקעים */
  
  --primary-red: #c53030;            /* אדום מאופק ומקצועי */
  --primary-red-light: #e53e3e;      /* אדום בהיר לhover */
  --primary-red-pale: #fed7d7;       /* אדום בהיר לרקעים */
  
  /* Neutrals - גווני אפור נקיים */
  --color-white: #ffffff;
  --color-background: #f8fafc;       /* רקע ראשי - כמעט לבן */
  --color-surface: #ffffff;          /* משטחים/כרטיסים */
  --color-border: #e2e8f0;           /* גבולות עדינים */
  --color-border-light: #f1f5f9;     /* גבולות מאוד עדינים */
  
  /* Text Colors */
  --color-text: #1e293b;             /* טקסט ראשי - כהה אך לא שחור */
  --color-text-secondary: #475569;   /* טקסט משני */
  --color-text-muted: #64748b;       /* טקסט מעומעם */
  --color-text-light: #94a3b8;       /* טקסט בהיר */
  
  /* Legacy Support */
  --light-gray: var(--color-background);
  --dark-gray: var(--color-text);
  --border-gray: var(--color-border);
  
  /* Accent Colors */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-info: #0284c7;
  
  /* Shadows - עדינים ומקצועיים */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", "Arial", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* top-bar removed */

/* ========================================
   Header - Clean & Minimal
======================================== */

.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 998;
  border-bottom: 1px solid var(--color-border);
}

.header-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: block;
  transition: opacity var(--transition-fast);
}

.custom-logo-link:hover {
  opacity: 0.9;
}

.custom-logo {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--primary-blue);
  text-decoration: none;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 20px;
  min-width: 280px;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-pale);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--color-text);
}

.search-box input::placeholder {
  color: var(--color-text-light);
}

/* ========================================
   תפריט ניווט - מקצועי, details/summary
======================================== */

.main-navigation {
  background: linear-gradient(180deg, var(--color-white) 0%, #f8fafc 100%);
  border-bottom: 2px solid var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- תפריט דסקטופ --- */

.main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.main-nav > li {
  position: relative;
}

/* קישורי ניווט ראשיים */
.main-nav > li > a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  padding: 16px 18px;
  transition: all var(--transition-base);
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  position: relative;
}

/* אפקט hover — פס תחתון אדום */
.main-nav > li > a:hover {
  background: var(--primary-blue-pale);
  color: var(--primary-blue);
  border-bottom-color: var(--primary-red);
}

/* פריט נוכחי — פס תחתון כחול */
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a {
  color: var(--primary-blue);
  font-weight: 700;
  border-bottom-color: var(--primary-blue);
  background: var(--primary-blue-pale);
}

/* אינדיקטור תפריט משנה ▾ */
.main-nav > li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.5;
  transition: transform var(--transition-fast);
}

.main-nav > li.menu-item-has-children:hover > a::after {
  opacity: 1;
  transform: rotate(180deg);
}

/* מפריד עדין בין פריטים */
.main-nav > li + li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--color-border);
}

/* --- תפריט נפתח (dropdown) --- */
.main-nav ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  list-style: none;
  padding: 6px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--primary-blue);
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-nav li:hover > ul.sub-menu {
  display: block;
}

/* פריטי dropdown */
.main-nav ul.sub-menu li {
  border-bottom: 1px solid var(--color-border-light);
}

.main-nav ul.sub-menu li:last-child {
  border-bottom: none;
}

.main-nav ul.sub-menu a {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-right: 3px solid transparent;
}

.main-nav ul.sub-menu a:hover {
  background: var(--primary-red-pale);
  color: var(--primary-red);
  border-right-color: var(--primary-red);
}

/* Hover bridge — prevents dropdown gap from breaking hover */
.main-nav > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.main-nav ul.sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  width: 100%;
  height: 8px;
  background: transparent;
}

/* --- מובייל: הסתרת תפריט ראשי לגמרי --- */
@media (max-width: 768px) {
  .main-navigation {
    display: none !important;
  }
}

/* ========================================
   חדשות אחרונות - משופר!
======================================== */

.breaking-news {
  background: var(--primary-red);
  color: white;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  z-index: 997; /* נמוך מהתפריט */
}

.breaking-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.breaking-badge {
  background: white;
  color: var(--primary-red);
  padding: 6px 16px;
  border-radius: 5px;
  font-weight: bold;
  white-space: nowrap;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.breaking-news-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to left,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to left,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.breaking-text {
  display: inline-flex;
  white-space: nowrap;
  gap: 30px;
  animation: scroll-rtl 60s linear infinite;
  will-change: transform;
}

/* אנימציה RTL - מימין לשמאל */
@keyframes scroll-rtl {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* השהיה בעכבר */
.breaking-news:hover .breaking-text {
  animation-play-state: paused;
}

.breaking-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.breaking-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.breaking-icon {
  font-size: 12px;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.breaking-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

/* רספונסיבי */
@media (max-width: 991px) {
  .breaking-news .container {
    gap: 15px;
  }

  .breaking-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .breaking-text {
    animation-duration: 50s;
  }

  .breaking-item {
    font-size: 14px;
    padding: 3px 10px;
  }
}

@media (max-width: 767px) {
  .breaking-news {
    padding: 10px 0;
  }

  .breaking-news .container {
    padding: 0 15px;
    gap: 12px;
  }

  .breaking-badge {
    font-size: 11px;
    padding: 4px 10px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    min-width: 60px;
  }

  .breaking-news-wrapper {
    mask-image: linear-gradient(
      to left,
      transparent,
      black 5%,
      black 95%,
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to left,
      transparent,
      black 5%,
      black 95%,
      transparent
    );
  }

  .breaking-text {
    animation-duration: 40s;
    gap: 20px;
  }

  .breaking-item {
    font-size: 13px;
    padding: 2px 8px;
    gap: 6px;
  }

  .breaking-icon {
    font-size: 11px;
  }

  .breaking-separator {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .breaking-news {
    padding: 8px 0;
  }

  .breaking-news .container {
    gap: 8px;
    padding: 0 10px;
  }

  .breaking-badge {
    font-size: 10px;
    padding: 3px 8px;
    min-width: 50px;
  }

  .breaking-text {
    animation-duration: 35s;
    gap: 15px;
  }

  .breaking-item {
    font-size: 12px;
    padding: 2px 6px;
  }
}

/* הרחבה נוספת - מצב הזזה חלקה */
.breaking-news.smooth-scroll .breaking-text {
  animation-timing-function: ease-in-out;
}

/* מצב כהה (אופציונלי) */
@media (prefers-color-scheme: dark) {
  .breaking-news {
    background: #8b0000;
  }

  .breaking-badge {
    background: #ffffff;
    color: #8b0000;
  }
}

/* ========================================
   תוכן ראשי
======================================== */

.site-content {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.content-area {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.main-content {
  flex: 2;
  min-width: 0;
}

.sidebar {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
}

/* ========================================
   כתבה ראשית
======================================== */

.featured-post {
  position: relative;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-post:hover img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 40px 30px;
  color: white;
}

.featured-category {
  background: var(--primary-red);
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.featured-overlay h2 {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.featured-overlay h2 a {
  color: white;
  text-decoration: none;
}

.featured-meta {
  font-size: 14px;
  opacity: 0.9;
}

.featured-meta span {
  margin-left: 15px;
}

/* ========================================
   רשת כתבות
======================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

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

.post-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-background);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.post-content {
  padding: 24px;
}

.post-category {
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.post-card h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-card h3 a:hover {
  color: var(--primary-blue);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.post-meta span {
  margin-left: 12px;
}

/* ========================================
   Sidebar
======================================== */

.sidebar {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.widget {
  margin-bottom: 30px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  color: var(--primary-blue);
  border-right: 4px solid var(--primary-red);
  padding-right: 15px;
  margin-bottom: 20px;
  font-size: 20px;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gray);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.widget a:hover {
  color: var(--primary-red);
}

/* ========================================
   עמוד יחיד
======================================== */

.single-post {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entry-header {
  margin-bottom: 30px;
}

.entry-title {
  font-size: 36px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  line-height: 1.3;
}

.entry-meta {
  color: #666;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-gray);
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  margin-top: 30px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--primary-blue);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* ========================================
   תגובות
======================================== */

.comments-area {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border-gray);
}

.comments-title {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.comment-author {
  font-weight: bold;
  color: var(--primary-blue);
}

.comment-metadata {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.comment-content {
  margin-top: 15px;
}

/* ========================================
   Footer
======================================== */

.site-footer,
footer.global-footer {
  background: var(--primary-blue);
  color: white;
  padding: 40px 0 20px;
  clear: both;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.footer-widgets,
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-widget h3,
.footer-col h4 {
  margin-bottom: 15px;
  color: var(--primary-red);
  font-size: 16px;
  font-weight: 600;
}

.footer-widget ul,
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget a,
.footer-col a {
  color: #ddd;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.2s;
  font-size: 14px;
}

.footer-widget a:hover,
.footer-col a:hover {
  color: white;
}

/* Footer Brand */
.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.footer-desc {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  font-size: 20px;
  display: inline-block;
  padding: 0;
  transition: transform 0.2s;
}

.footer-social a:hover {
  transform: scale(1.15);
}

/* Footer Bottom */
.site-info,
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-credit img {
  height: 18px;
  width: auto;
  vertical-align: middle;
}

/* ========================================
   כפתורי פעולה - Refined Buttons
======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
  box-shadow: 0 2px 4px rgba(197, 48, 48, 0.2);
}

.btn-primary:hover {
  background: var(--primary-red-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.btn-secondary {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}

.btn-secondary:hover {
  background: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* ========================================
   Pagination
======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.page-numbers {
  padding: 10px 15px;
  background: white;
  border-radius: 5px;
  text-decoration: none;
  color: var(--primary-blue);
  transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--primary-red);
  color: white;
}

/* ========================================
   רספונסיבי - מתקדם
======================================== */

/* Desktop גדול (1400px+) */
@media (min-width: 1400px) {
  .container,
  .site-content {
    max-width: 1400px;
  }
}

/* Laptop / Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  .container,
  .site-content,
  .nav-container,
  .footer-widgets,
  .footer-grid {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  .featured-overlay h2 {
    font-size: 28px;
  }
}

/* Tablet גדול (768px - 991px) */
@media (max-width: 991px) {
  /* Layout */
  .content-area {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-widgets,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Header */
  .header-main {
    padding: 15px 20px;
  }

  .search-box {
    min-width: 250px;
  }

  /* Featured Post */
  .featured-post {
    height: 400px;
  }

  .featured-overlay {
    padding: 30px 20px;
  }

  .featured-overlay h2 {
    font-size: 26px;
  }

  /* Navigation */
  .main-nav a {
    padding: 12px 15px;
    font-size: 15px;
  }

  /* Sidebar */
  .sidebar {
    margin-top: 30px;
  }
}

/* Tablet קטן ו-Mobile גדול (481px - 767px) */
@media (max-width: 767px) {
  /* Typography */
  body {
    font-size: 15px;
  }

  /* Header */
  .header-main {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .logo-area {
    width: 100%;
    justify-content: center;
  }

  .custom-logo {
    max-height: 50px;
  }

  .site-title {
    font-size: 24px;
    text-align: center;
  }

  .search-box {
    width: 100%;
    min-width: auto;
  }

  /* Navigation */
  .nav-container {
    padding: 0 15px;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    padding: 15px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  /* Breaking News */
  .breaking-news .container {
    padding: 0 15px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .breaking-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .breaking-text {
    font-size: 14px;
    white-space: normal;
    animation: none;
  }

  /* Main Content */
  .site-content {
    margin: 20px auto;
    padding: 0 15px;
  }

  /* Featured Post */
  .featured-post {
    height: 350px;
    margin-bottom: 20px;
  }

  .featured-overlay {
    padding: 25px 15px;
  }

  .featured-category {
    font-size: 11px;
    padding: 4px 12px;
  }

  .featured-overlay h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .featured-meta {
    font-size: 12px;
  }

  .featured-meta span {
    margin-left: 8px;
  }

  /* Section Title */
  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-right: 12px;
    border-right-width: 3px;
  }

  /* Posts Grid */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .post-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .post-thumbnail {
    height: 220px;
  }

  .post-content {
    padding: 15px;
  }

  .post-category {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .post-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .post-excerpt {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .post-meta {
    font-size: 11px;
  }

  /* Sidebar */
  .sidebar {
    padding: 20px;
    margin-bottom: 20px;
  }

  .widget {
    margin-bottom: 25px;
  }

  .widget-title {
    font-size: 18px;
    padding-right: 12px;
    border-right-width: 3px;
    margin-bottom: 15px;
  }

  .widget li {
    padding: 10px 0;
    font-size: 14px;
  }

  /* Single Post */
  .single-post {
    padding: 25px 15px;
  }

  .entry-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .entry-meta {
    font-size: 13px;
    padding-bottom: 15px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.7;
    margin-top: 20px;
  }

  .entry-content h2 {
    font-size: 22px;
    margin-top: 25px;
  }

  .entry-content h3 {
    font-size: 20px;
  }

  /* Author Box */
  .author-box {
    padding: 20px 15px !important;
    margin-top: 30px !important;
  }

  .author-box > div {
    flex-direction: column !important;
    text-align: center !important;
  }

  .author-avatar {
    margin-bottom: 15px;
  }

  /* Share Buttons */
  .share-buttons {
    padding: 15px !important;
    margin-top: 15px !important;
  }

  .share-buttons > div {
    flex-wrap: wrap;
    gap: 10px;
  }

  .share-buttons a {
    padding: 8px 15px !important;
    font-size: 14px !important;
    margin-left: 0 !important;
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
    text-align: center;
  }

  /* Footer */
  .site-footer,
  footer.global-footer {
    padding: 30px 0 15px;
    margin-top: 40px;
  }

  .footer-widgets,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
    margin-bottom: 20px;
  }

  .footer-widget h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .footer-widget a {
    font-size: 14px;
    padding: 4px 0;
  }

  .site-info {
    font-size: 13px;
    padding: 15px 15px 0;
  }

  .site-info p {
    line-height: 1.6;
  }

  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    display: block;
    text-align: center;
    margin: 10px 0;
  }

  /* Pagination */
  .pagination {
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
  }

  .page-numbers {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* Comments */
  .comments-area {
    margin-top: 40px;
    padding-top: 25px;
  }

  .comments-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .comment {
    padding: 15px;
    margin-bottom: 12px;
  }

  .comment-content {
    margin-top: 12px;
    font-size: 14px;
  }
}

/* Mobile קטן (320px - 480px) */
@media (max-width: 480px) {
  /* Typography */
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Containers */
  .site-content {
    padding: 0 10px;
    margin: 15px auto;
  }

  /* Header */
  .header-main {
    padding: 12px 10px;
  }

  .site-title {
    font-size: 20px;
  }

  .custom-logo {
    max-height: 45px;
  }

  /* Navigation */
  .main-nav a {
    padding: 12px;
    font-size: 15px;
  }

  /* Breaking News */
  .breaking-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .breaking-text {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Featured Post */
  .featured-post {
    height: 280px;
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .featured-overlay {
    padding: 20px 12px;
  }

  .featured-category {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 6px;
  }

  .featured-overlay h2 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .featured-meta {
    font-size: 11px;
  }

  .featured-meta span {
    display: inline-block;
    margin: 2px 5px 2px 0;
  }

  /* Section Title */
  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-right: 10px;
  }

  /* Posts Grid */
  .posts-grid {
    gap: 15px;
    margin-bottom: 25px;
  }

  .post-thumbnail {
    height: 200px;
  }

  .post-content {
    padding: 12px;
  }

  .post-card h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .post-excerpt {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Sidebar */
  .sidebar {
    padding: 15px;
    margin-bottom: 15px;
  }

  .widget {
    margin-bottom: 20px;
  }

  .widget-title {
    font-size: 16px;
    padding-right: 10px;
  }

  .widget li {
    padding: 8px 0;
    font-size: 13px;
  }

  /* Single Post */
  .single-post {
    padding: 20px 12px;
    border-radius: 8px;
  }

  /* תמונה ראשית במובייל קטן */
  .post-thumbnail-single {
    margin: 10px 0 15px 0;
    border-radius: 6px;
  }

  .post-thumbnail-single img {
    border-radius: 6px;
  }

  .entry-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .entry-meta {
    font-size: 12px;
    padding-bottom: 12px;
  }

  .entry-meta span {
    display: inline-block;
    margin: 3px 0;
  }

  .entry-meta .separator {
    display: none;
  }

  .entry-content {
    font-size: 15px;
    line-height: 1.7;
    margin-top: 15px;
  }

  .entry-content h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 12px;
  }

  .entry-content h3 {
    font-size: 18px;
    margin-top: 18px;
    margin-bottom: 10px;
  }

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

  .entry-content img {
    margin: 15px 0;
    border-radius: 6px;
  }

  /* Author Box */
  .author-box {
    padding: 15px 12px !important;
    margin-top: 25px !important;
  }

  .author-box h3 {
    font-size: 18px !important;
  }

  .author-box p {
    font-size: 13px !important;
  }

  /* Share Buttons */
  .share-buttons {
    padding: 12px !important;
    margin-top: 12px !important;
  }

  .share-buttons a {
    padding: 8px 12px !important;
    font-size: 13px !important;
    flex: 1 1 100%;
    margin: 5px 0 !important;
  }

  /* Related Posts */
  .related-posts {
    margin-top: 40px;
  }

  /* Footer */
  .site-footer,
  footer.global-footer {
    padding: 25px 0 12px;
    margin-top: 30px;
  }

  .footer-widgets,
  .footer-grid {
    padding: 0 10px;
    gap: 20px;
  }

  .footer-widget h3,
  .footer-col h4 {
    font-size: 16px;
  }

  .footer-widget a {
    font-size: 13px;
  }

  .site-info {
    font-size: 12px;
    padding: 12px 10px 0;
    line-height: 1.6;
  }

  .site-info a {
    display: inline-block;
    margin: 2px 0;
  }

  /* Buttons */
  .btn {
    padding: 10px 15px;
    font-size: 13px;
    width: 100%;
  }

  /* Pagination */
  .pagination {
    gap: 4px;
    margin: 25px 0;
  }

  .page-numbers {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Comments */
  .comments-title {
    font-size: 20px;
  }

  .comment {
    padding: 12px;
  }

  .comment-author {
    font-size: 14px;
  }

  .comment-metadata {
    font-size: 11px;
  }

  .comment-content {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Mobile קטן מאוד (max 360px) */
@media (max-width: 360px) {
  .site-title {
    font-size: 18px;
  }

  .featured-overlay h2 {
    font-size: 16px;
  }

  .post-card h3 {
    font-size: 15px;
  }

  .entry-title {
    font-size: 20px;
  }

  .entry-content {
    font-size: 14px;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .featured-post {
    height: 250px;
  }

  .header-main {
    padding: 10px;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* הסתרת אלמנטים במובייל */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* הצגת אלמנטים רק במובייל */
.show-mobile {
  .show-mobile {
    display: block !important;
  }
}

/* ========================================
   כפתור חזרה למעלה
======================================== */

#back-to-top {
  position: fixed;
  bottom: -60px;
  left: 30px;
  background: var(--primary-red);
  color: white;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 996; /* נמוך מהתפריט */
  opacity: 0;
  visibility: hidden;
}

#back-to-top.show {
  bottom: 30px;
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  #back-to-top {
    width: 45px;
    height: 45px;
    font-size: 20px;
    left: 20px;
  }

  #back-to-top.show {
    bottom: 20px;
  }
}

/* ========================================
   Header מוסתר בגלילה
======================================== */

.site-header {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* ========================================
   חיפוש מפורט
======================================== */

.search-box {
  transition: all 0.3s ease;
}

.search-box.focused {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
  transition: transform 0.2s;
}

.search-box button:hover {
  transform: scale(1.2);
}

/* ========================================
   אנימציות
======================================== */

/* הכנה לאנימציה - רק אם JavaScript פעיל */
.post-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* אנימציה רק עם JavaScript */
.js .post-card {
  opacity: 0;
  transform: translateY(30px);
}

.post-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* עיכוב אנימציה לכרטיסים שונים */
.post-card:nth-child(1) {
  transition-delay: 0.1s;
}
.post-card:nth-child(2) {
  transition-delay: 0.2s;
}
.post-card:nth-child(3) {
  transition-delay: 0.3s;
}
.post-card:nth-child(4) {
  transition-delay: 0.1s;
}
.post-card:nth-child(5) {
  transition-delay: 0.2s;
}
.post-card:nth-child(6) {
  transition-delay: 0.3s;
}

/* Fade In כללי */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   Loading State לכפתורים
======================================== */

.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  right: 50%;
  margin: -8px -8px 0 0;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Lazy Loading לתמונות
======================================== */

img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy:not(.initial) {
  opacity: 1;
}

/* ========================================
   טבלאות רספונסיביות
======================================== */

.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.entry-content table th,
.entry-content table td {
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid var(--border-gray);
}

.entry-content table th {
  background: var(--primary-blue);
  color: white;
  font-weight: bold;
}

.entry-content table tr:hover {
  background: var(--light-gray);
}

@media (max-width: 767px) {
  .entry-content table th,
  .entry-content table td {
    padding: 8px;
    font-size: 14px;
  }
}

/* ========================================
   התראות
======================================== */

.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border-right: 4px solid #28a745;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border-right: 4px solid #dc3545;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
  border-right: 4px solid #ffc107;
}

.alert.info {
  background: #d1ecf1;
  color: #0c5460;
  border-right: 4px solid #17a2b8;
}

.alert .close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: auto;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.alert .close:hover {
  opacity: 1;
}

/* ========================================
   סגנונות הדפסה
======================================== */

@media print {
  .site-header,
  .main-navigation,
  .breaking-news,
  .sidebar,
  .site-footer,
  .share-buttons,
  #back-to-top,
  .comments-area {
    display: none !important;
  }

  .site-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .single-post {
    box-shadow: none;
    padding: 0;
  }

  .entry-title {
    font-size: 24pt;
    color: black;
  }

  .entry-content {
    font-size: 12pt;
    color: black;
  }

  a {
    text-decoration: none;
    color: black;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* ========================================
   מצב כהה (אופציונלי)
======================================== */

@media (prefers-color-scheme: dark) {
  /* ניתן להוסיף כאן סגנונות למצב כהה */
}

/* ========================================
   אנימציות נוספות
======================================== */

/* Pulse אנימציה לכפתורים חשובים */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(196, 30, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Slide In מימין */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ========================================
   עיצובים נוספים
======================================== */

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumbs a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-red);
}

.breadcrumbs span {
  margin: 0 8px;
}

/* Tags Cloud */
.tagcloud a {
  display: inline-block;
  padding: 5px 12px;
  margin: 4px;
  background: var(--light-gray);
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px !important;
  transition: all 0.3s;
}

.tagcloud a:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 4px;
  background: var(--primary-red);
  z-index: 9999;
  transition: width 0.2s;
}

/* ========================================
   סגנונות נוספים לנגישות
======================================== */

/* Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--primary-red);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  * {
    border-color: currentColor !important;
  }
}

/* ========================================
   נגישות
======================================== */

a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========================================
   כותרות קטגוריה וארכיון
======================================== */

.category-header,
.archive-header,
.search-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-red) 100%
  );
  color: white;
  padding: 40px 0;
  margin-bottom: 40px;
}

.category-header-content,
.archive-header-content,
.search-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-icon,
.archive-icon,
.search-icon {
  font-size: 64px;
  line-height: 1;
  flex-shrink: 0;
}

.category-info,
.archive-info,
.search-info {
  flex: 1;
}

.category-title,
.archive-title,
.search-title {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.search-query {
  color: #ffd700;
}

.category-description,
.archive-description {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 10px;
}

.category-meta {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

.category-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
}

.search-results-count {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 10px;
}

/* תג "חדש" */
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-red);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

/* ========================================
   טופס חיפוש מורחב
======================================== */

.search-form-wrapper {
  margin-top: 30px;
}

.search-form-extended {
  display: flex;
  gap: 10px;
  max-width: 600px;
}

.search-form-extended input[type="search"] {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
}

.search-form-extended button {
  padding: 12px 30px;
  white-space: nowrap;
}

/* הדגשת תוצאות חיפוש */
mark {
  background: #ffd700;
  color: var(--dark-gray);
  padding: 2px 4px;
  border-radius: 3px;
}

/* ========================================
   הודעת אין תוצאות
======================================== */

.no-posts-message {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-posts-icon {
  font-size: 96px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-posts-message h2 {
  color: var(--primary-blue);
  font-size: 28px;
  margin-bottom: 15px;
}

.no-posts-message p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.search-suggestions {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 500px;
  text-align: right;
}

.search-suggestions h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
}

.search-suggestions li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.search-suggestions li:last-child {
  border-bottom: none;
}

.suggested-categories {
  margin-top: 40px;
}

.suggested-categories h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.category-badge {
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.category-badge:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
}

/* ========================================
   דף שגיאה 404
======================================== */

.error-404-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.error-404-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.error-404-animation {
  position: relative;
  margin-bottom: 40px;
}

.error-number {
  font-size: 120px;
  font-weight: bold;
  color: var(--primary-blue);
  opacity: 0.1;
  line-height: 1;
}

.error-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
}

.error-title {
  font-size: 42px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.error-message {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
}

.error-search-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.error-search-box h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.search-form-404 {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.search-form-404 input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border-gray);
  border-radius: 25px;
  font-size: 16px;
  outline: none;
}

.search-form-404 input:focus {
  border-color: var(--primary-red);
}

.error-quick-links {
  margin-bottom: 40px;
}

.error-quick-links h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.quick-link {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.link-icon {
  font-size: 32px;
}

.link-text {
  color: var(--primary-blue);
  font-weight: 500;
  text-align: center;
}

.error-recent-posts {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.error-recent-posts h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.recent-post-item:hover {
  background: var(--light-gray);
}

.recent-post-thumb {
  flex-shrink: 0;
}

.recent-post-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.recent-post-info {
  flex: 1;
}

.recent-post-category {
  color: var(--primary-red);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.recent-post-info h4 {
  color: var(--primary-blue);
  font-size: 16px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post-date {
  font-size: 12px;
  color: #999;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

/* ========================================
   תבנית דף (page.php)
======================================== */

.page-content {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.page-featured-image {
  margin: -40px -40px 30px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.page-featured-image img {
  width: 100%;
  height: auto;
}

.page-header {
  border-bottom: 2px solid var(--border-gray);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.page-title {
  font-size: 42px;
  color: var(--primary-blue);
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-meta {
  color: #666;
  font-size: 14px;
}

.page-entry-content {
  font-size: 18px;
  line-height: 1.8;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
  color: var(--primary-blue);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.page-entry-content p {
  margin-bottom: 20px;
}

.page-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-gray);
}

.page-comments {
  margin-top: 50px;
}

/* ========================================
   דפי תוכן מועשר — פרופילים, דופק שלומי
======================================== */

/* כשיש תוכן מועשר — הורד padding מיותר */
.page-entry-content .profile-enrichment,
.page-entry-content .profile-v2 {
  margin-right: -20px;
  margin-left: -20px;
}

/* דף עם פרופיל — מלא רוחב, ללא sidebar */
.page-content:has(.profile-enrichment),
.page-content:has(.profile-v2) {
  padding: 24px 20px;
}

.content-area:has(.profile-enrichment),
.content-area:has(.profile-v2) {
  display: block;
}

.content-area:has(.profile-enrichment) .sidebar,
.content-area:has(.profile-v2) .sidebar {
  display: none;
}

/* --- אקורדיון פרופיל (details/summary) --- */
.profile-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.profile-section:hover {
  box-shadow: var(--shadow-md);
}

.profile-section[open] {
  box-shadow: var(--shadow-md);
}

.profile-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: Heebo, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  background: #f8fafc;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
  user-select: none;
}

.profile-section summary::-webkit-details-marker {
  display: none;
}

/* חץ אקורדיון */
.profile-section summary::after {
  content: "◂";
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-right: 8px;
}

.profile-section[open] summary::after {
  transform: rotate(-90deg);
}

.profile-section[open] summary {
  border-bottom-color: #e2e8f0;
  background: #eef2f7;
}

/* תוכן אקורדיון — אנימציית grid */
.profile-section .section-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.profile-section[open] .section-body {
  grid-template-rows: 1fr;
}

.profile-section .section-inner {
  overflow: hidden;
  padding: 0 16px;
}

.profile-section[open] .section-inner {
  padding: 14px 16px;
}

/* גרסאות צבע למדורים */
.profile-section--budget summary {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: white;
}

.profile-section--budget[open] summary {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
}

.profile-section--budget summary::after {
  color: rgba(255,255,255,0.5);
}

.profile-section--alert {
  border-color: #fecaca;
  border-width: 2px;
}

.profile-section--alert summary {
  background: #fef2f2;
  color: #dc2626;
}

.profile-section--alert[open] summary {
  background: #fef2f2;
}

.profile-section--contact summary {
  background: #f0f9ff;
  color: #1e3a5f;
}

.profile-section--contact[open] summary {
  background: #e0f2fe;
}

/* ========================================
   תגובות
======================================== */

/* ── Comments – Minimalist Pro ────────────────────────────────────────────── */
.comments-area {
  margin-top: 48px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.comments-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: -0.01em;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 0;
}

.comment-body {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #f1f3f5;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-content-wrapper {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a2e;
  font-style: normal;
  margin-left: 0;
}

.comment-author a {
  color: #1a1a2e;
  text-decoration: none;
}

.comment-author a:hover {
  color: #2563eb;
}

.comment-metadata {
  font-size: 12px;
  color: #9ca3af;
  display: inline-block;
}

.comment-metadata a {
  color: #9ca3af;
  text-decoration: none;
}

.comment-metadata a:hover {
  color: #6b7280;
}

.comment-awaiting-moderation {
  background: #fffbeb;
  color: #92400e;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid #fde68a;
}

.comment-text,
.comment-body .comment-content {
  color: #374151;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 8px;
}

.comment-reply-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.comment-reply-link:hover {
  color: #2563eb;
  text-decoration: none;
}

/* תגובות מקוננות */
.children {
  list-style: none;
  margin-right: 32px;
  margin-top: 0;
  padding-right: 16px;
  border-right: 2px solid #f1f3f5;
}

/* ── טופס תגובה – מינימליסטי ──────────────────────────────────────────── */
.comment-respond {
  margin-top: 40px;
  padding: 32px;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.comment-reply-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.comment-reply-title small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
}

.comment-reply-title small a {
  color: #6b7280;
  text-decoration: none;
}

.comment-reply-title small a:hover {
  color: #2563eb;
}

.comment-notes,
#email-notes {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #4b5563;
  letter-spacing: 0.01em;
}

.required {
  color: #ef4444;
  font-weight: 400;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a2e;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-form .comment-form-cookies-consent label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 0;
  font-weight: 400;
}

.form-submit {
  margin-bottom: 0;
  margin-top: 8px;
}

.form-submit .submit,
.form-submit .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.form-submit .submit:hover,
.form-submit .btn:hover {
  background: #2563eb;
}

.form-submit .submit:active,
.form-submit .btn:active {
  transform: scale(0.98);
}

/* ========================================
   Pagination מורחב
======================================== */

.pagination-wrapper {
  margin: 50px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers {
  padding: 12px 18px;
  background: white;
  border: 2px solid var(--border-gray);
  border-radius: 5px;
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 500;
  transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

/* ========================================
   תבנית מחבר (author.php)
======================================== */

.author-header,
.tag-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-red) 100%
  );
  color: white;
  padding: 50px 0;
  margin-bottom: 40px;
}

.author-header-content,
.tag-header-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.author-avatar-large {
  flex-shrink: 0;
}

.author-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.author-name,
.tag-title {
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.2;
}

.author-bio {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin-top: 15px;
}

.author-stats {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.author-stat {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.author-website {
  background: white;
  color: var(--primary-blue);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.author-website:hover {
  background: var(--primary-red);
  color: white;
}

.tag-icon {
  font-size: 64px;
  flex-shrink: 0;
}

.tag-description {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 10px;
}

.tag-meta {
  margin-top: 15px;
}

.tag-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-block;
}

@media (max-width: 767px) {
  .author-header,
  .tag-header {
    padding: 30px 0;
  }

  .author-header-content,
  .tag-header-content {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar-large img {
    width: 100px;
    height: 100px;
  }

  .author-name,
  .tag-title {
    font-size: 28px;
  }

  .author-stats {
    justify-content: center;
  }

  .tag-icon {
    font-size: 48px;
  }
}

/* ========================================
   רספונסיבי לתבניות חדשות
======================================== */

@media (max-width: 767px) {
  .category-header,
  .archive-header,
  .search-header {
    padding: 30px 0;
  }

  .category-header-content,
  .archive-header-content,
  .search-header-content {
    flex-direction: column;
    text-align: center;
  }

  .category-icon,
  .archive-icon,
  .search-icon {
    font-size: 48px;
  }

  .category-title,
  .archive-title,
  .search-title {
    font-size: 28px;
  }

  .search-form-extended {
    flex-direction: column;
  }

  .error-number {
    font-size: 80px;
  }

  .error-icon {
    font-size: 60px;
  }

  .error-title {
    font-size: 32px;
  }

  .search-form-404 {
    flex-direction: column;
  }

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

  .recent-post-item {
    flex-direction: column;
  }

  .error-actions {
    flex-direction: column;
  }

  .page-content {
    padding: 25px 20px;
  }

  .page-featured-image {
    margin: -25px -20px 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-entry-content {
    font-size: 16px;
  }

  .comment-body {
    flex-direction: column;
  }

  .children {
    margin-right: 20px;
  }

  .comment-respond {
    padding: 20px;
  }
}

/* ========================================
   נגישות
======================================== */

/* ========================================
   אנימציות
======================================== */

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

.post-card {
  animation: fadeIn 0.5s ease-out;
}

/* ========================================
   סגנונות וורדפרס מובנים
======================================== */

.alignleft {
  float: right;
  margin: 0 0 1em 1em;
}

.alignright {
  float: left;
  margin: 0 1em 1em 0;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.sticky {
  border-right: 4px solid var(--primary-red);
  padding-right: 20px;
} /* כפ
תור חזרה למעלה */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007cba;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: #005a87;
  transform: translateY(-2px);
}

/* תיקוני RTL לכפתור */
body.rtl #back-to-top {
  right: auto;
  left: 20px;
}

/* שיפורי חיפוש */
.search-box.focused {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* Responsive Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.table-wrapper table {
  min-width: 100%;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007cba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* התראות */
.alert {
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  position: relative;
}

.alert .close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
}

.alert .close:hover {
  opacity: 1;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}
/* תיקון מיקום פוטר — sticky footer */
#page.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.main-navigation,
.breaking-news {
  flex-shrink: 0;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer,
footer.global-footer {
  flex-shrink: 0;
  margin-top: auto;
}
/* עיצוב עמוד פוסט בודד */
.single-post .entry-header {
  margin-bottom: 30px;
  text-align: center;
}

.single-post .entry-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-blue);
  line-height: 1.2;
}

.single-post .entry-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.single-post .entry-meta .separator {
  margin: 0 10px;
}

/* תמונה ראשית בפוסט בודד - עיצוב מותאם */
.post-thumbnail-single {
  max-width: 600px;
  margin: 20px auto 30px auto;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-thumbnail-single img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* תמונה ישנה - נשמור לתאימות לאחור */
.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.single-post .entry-content {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.single-post .post-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.share-buttons {
  margin-top: 20px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
}

.share-buttons a {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-left: 10px;
  transition: opacity 0.3s;
}

.share-buttons a:hover {
  opacity: 0.8;
}

.share-buttons a[href*="facebook"] {
  background: #3b5998;
}

.share-buttons a[href*="twitter"] {
  background: #1da1f2;
}

.share-buttons a[href*="whatsapp"] {
  background: #25d366;
}

.author-box {
  margin-top: 40px;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-box .author-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-box .author-avatar img {
  border-radius: 50%;
}

.author-box .author-info h3 {
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.author-box .author-info p {
  color: #666;
  margin-bottom: 10px;
}

.related-posts {
  margin-top: 50px;
}

/* תיקון RTL לעמוד פוסט */
body.rtl .share-buttons a {
  margin-right: 10px;
  margin-left: 0;
}

body.rtl .author-box .author-content {
  text-align: right;
}
/* תיקון share-links */
.share-buttons .share-links {
  margin-top: 10px;
}
/* וידוא שכפתור ההמבורגר מוצג במובייל */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
}
/* תיקון sidebar styles */
.recent-post-time {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.weather-widget {
  text-align: center;
  padding: 20px;
}

.weather-icon {
  font-size: 48px;
}

.weather-temp {
  font-size: 32px;
  margin: 10px 0;
  color: var(--primary-blue);
}

.weather-desc {
  color: #666;
}

.weather-details {
  margin-top: 15px;
  color: #666;
}
/* תיקון mock images */
.mock-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.mock-img.featured-mock {
  height: 100%;
}
/* Breadcrumbs SEO */
.breadcrumbs {
  background: #f8f9fa;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 14px;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "←";
  margin: 0 10px;
  color: #666;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #666;
  font-weight: 500;
}

/* שיפורי SEO לכותרות */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5em;
  color: var(--primary-blue);
}

h2 {
  font-size: 2em;
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
}

h3 {
  font-size: 1.5em;
  color: var(--dark-gray);
}

/* שיפור נגישות */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* שיפור לקישורים */
a {
  transition: all 0.3s ease;
}

a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* אופטימיזציה לתמונות */
img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* שיפור לטבלאות */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

th,
td {
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: #f5f5f5;
}

/* שיפור לרשימות */
ul,
ol {
  margin: 20px 0;
  padding-right: 30px;
}

li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* שיפור לציטוטים */
blockquote {
  border-right: 4px solid var(--primary-red);
  padding: 20px;
  margin: 30px 0;
  background: #f9f9f9;
  font-style: italic;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4em;
  color: var(--primary-red);
  position: absolute;
  top: -10px;
  right: 10px;
  opacity: 0.3;
}

/* שיפור למובייל */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 8px 15px;
    font-size: 13px;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin: 0 5px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 8px;
  }

  /* תמונה ראשית במובייל */
  .post-thumbnail-single {
    max-width: 100%;
    margin: 15px 0 20px 0;
    border-radius: 8px;
  }

  .post-thumbnail-single img {
    border-radius: 8px;
  }
}
/* תיקון פריסה למובייל */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
    gap: 20px;
  }

  .main-content {
    flex: none;
    width: 100%;
  }

  .sidebar {
    flex: none;
    width: 100%;
    min-width: auto;
    max-width: none;
  }
}

/* תיקון נוסף לטאבלט */
@media (max-width: 991px) and (min-width: 769px) {
  .content-area {
    gap: 20px;
  }

  .sidebar {
    min-width: 250px;
    max-width: 300px;
  }
}
/* Fallback אם JavaScript לא עובד */
.no-js .post-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* הבטחה שהתוכן יוצג גם ללא JavaScript */
.post-card {
  min-height: 1px; /* מונע קריסה */
}

/* תיקון לדפדפנים ישנים */
@supports not (transform: translateY(0)) {
  .post-card {
    opacity: 1;
  }
}

/* ========================================
   CSS נוסף - תיקוני נגישות וחסרים
======================================== */

/* Skip to Content - נגישות */
.skip-link {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--primary-red);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10000;
  border-radius: 0 0 0 5px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Screen reader only text */
.screen-reader-text:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ========================================
   Breadcrumbs
======================================== */

.breadcrumbs {
  background: white;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #666;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.breadcrumbs a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
}

@media (max-width: 767px) {
  .breadcrumbs {
    font-size: 13px;
    padding: 12px 15px;
    margin-bottom: 20px;
  }

  .breadcrumbs span {
    margin: 0 5px;
  }
}

/* ========================================
   Back to Top Button
======================================== */

#back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--primary-red);
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
  display: flex;
}

@media (max-width: 767px) {
  #back-to-top {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}

/* ========================================
   404 Error Page
======================================== */

.error-404-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.error-404-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.error-404-icon {
  font-size: 100px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.error-404-title {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: bold;
}

.error-404-message {
  font-size: 18px;
  opacity: 0.95;
}

.error-404-section {
  max-width: 1200px;
  margin: 0 auto;
}

.search-section,
.popular-categories,
.recent-posts-404,
.quick-links {
  background: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-section h2,
.popular-categories h2,
.recent-posts-404 h2,
.quick-links h2 {
  color: var(--primary-blue);
  margin-bottom: 25px;
  font-size: 26px;
  border-right: 4px solid var(--primary-red);
  padding-right: 15px;
}

.search-form-404 {
  display: flex;
  gap: 15px;
  max-width: 600px;
}

.search-form-404 input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.search-form-404 input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category-card:hover {
  background: white;
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
  color: var(--primary-blue);
  margin-bottom: 8px;
  font-size: 18px;
}

.category-card span {
  font-size: 14px;
  color: #999;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.quick-link {
  background: var(--primary-blue);
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.quick-link:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .error-404-header {
    padding: 40px 20px;
  }

  .error-404-content {
    flex-direction: column;
    gap: 20px;
  }

  .error-404-icon {
    font-size: 80px;
  }

  .error-404-title {
    font-size: 36px;
  }

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

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

@media (max-width: 767px) {
  .error-404-header {
    padding: 30px 15px;
  }

  .error-404-icon {
    font-size: 60px;
  }

  .error-404-title {
    font-size: 28px;
  }

  .error-404-message {
    font-size: 16px;
  }

  .search-section,
  .popular-categories,
  .recent-posts-404,
  .quick-links {
    padding: 25px 20px;
  }

  .search-form-404 {
    flex-direction: column;
  }

  .category-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Comments Styling - עיצוב תגובות
======================================== */

.comment-body {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  border-right: 3px solid var(--primary-blue);
}

.comment-author-avatar {
  flex-shrink: 0;
}

.comment-author-avatar img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.comment-content-wrapper {
  flex: 1;
}

.comment-meta {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gray);
}

.comment-author-name {
  font-weight: bold;
  color: var(--primary-blue);
  margin-left: 12px;
}

.comment-metadata {
  font-size: 13px;
  color: #999;
}

.comment-metadata a {
  color: #999;
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--primary-red);
}

.comment-awaiting-moderation {
  background: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 10px;
  border-right: 3px solid #ffc107;
}

.comment-content {
  line-height: 1.7;
  color: var(--dark-gray);
}

.comment-reply {
  margin-top: 12px;
}

.comment-reply a {
  color: var(--primary-red);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.comment-reply a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.children {
  margin-right: 40px;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .comment-body {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .comment-author-avatar img {
    width: 50px;
    height: 50px;
  }

  .children {
    margin-right: 20px;
  }
}

/* ========================================
   Author Box - תיבת מחבר
======================================== */

.author-box {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
  border: 2px solid var(--border-gray);
}

.author-content {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.author-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 22px;
}

.author-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.author-info .btn {
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .author-box {
    padding: 20px;
  }

  .author-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-avatar img {
    width: 70px;
    height: 70px;
  }
}

/* ========================================
   Share Buttons - כפתורי שיתוף
======================================== */

.share-buttons {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  border-right: 4px solid var(--primary-red);
}

.share-buttons strong {
  display: block;
  margin-bottom: 15px;
  color: var(--primary-blue);
  font-size: 16px;
}

.share-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-links a {
  background: white;
  color: var(--primary-blue);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid var(--border-gray);
}

.share-links a:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Page Template Styles
======================================== */

.page-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-featured-image {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-featured-image img {
  width: 100%;
  height: auto;
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-gray);
}

.page-title {
  font-size: 38px;
  color: var(--primary-blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-meta {
  font-size: 14px;
  color: #999;
}

.page-entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--dark-gray);
}

.page-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
  color: var(--primary-blue);
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-comments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border-gray);
}

@media (max-width: 767px) {
  .page-content {
    padding: 25px 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-entry-content {
    font-size: 16px;
  }
}

/* ========================================
   Performance Optimizations - אופטימיזציה
======================================== */

/* Hardware acceleration לאנימציות */
.breaking-text,
.post-card,
.featured-post img,
#back-to-top {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* מניעת layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus visible לנגישות */
:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 2px;
}

/* הסרת outline רגיל (נשאר ב-focus-visible) */
:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   עסקים מקומיים - Local Business Directory
======================================== */

/* כרטיס עסק - Business Card */
.business-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* תווית Badge */
.business-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.business-badge-vip {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.business-badge-new {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.business-badge-recommended {
  background: linear-gradient(135deg, #2196F3, #1565C0);
}

.business-badge-popular {
  background: linear-gradient(135deg, #FF5722, #D84315);
}

/* לוגו */
.business-logo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}

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

.business-card:hover .business-logo img {
  transform: scale(1.1);
}

.business-placeholder-logo {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: white;
}

/* תוכן הכרטיס */
.business-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.business-title {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.business-title a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.business-title a:hover {
  color: var(--primary-red);
}

.business-rating {
  font-size: 16px;
  line-height: 1;
}

.business-category {
  font-size: 13px;
  color: var(--primary-red);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.business-divider {
  height: 1px;
  background: var(--border-gray);
  margin: 15px 0;
}

.business-details {
  margin-bottom: 15px;
}

.business-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

.business-detail .detail-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.business-detail a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.business-detail a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.business-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.business-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-business-view {
  flex: 1;
  min-width: 120px;
  text-align: center;
  background: var(--primary-blue);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-business-view:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-whatsapp:hover {
  background: #128C7E;
}

.btn-navigate {
  background: #5B9BD5;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-navigate:hover {
  background: #3B7DAF;
}

/* Grid רשת עסקים */
.business-directory {
  margin: 30px 0;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

/* פילטרים */
.business-filters {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.business-filters h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 18px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--light-gray);
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.filter-btn:hover {
  background: #e0e0e0;
}

.filter-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.filter-btn .count {
  opacity: 0.7;
  margin-right: 5px;
}

/* עמוד עסק בודד */
.single-business {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-entry-header {
  position: relative;
  margin-bottom: 30px;
}

.business-title-section h1 {
  font-size: 38px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  line-height: 1.3;
}

.business-rating-large {
  font-size: 24px;
  margin-bottom: 15px;
}

.rating-text {
  font-size: 16px;
  color: #666;
  margin-right: 10px;
}

.business-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.business-category-tag {
  background: var(--light-gray);
  color: var(--primary-blue);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.business-category-tag:hover {
  background: var(--primary-blue);
  color: white;
}

.business-thumbnail {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.business-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

/* תיבות מידע */
.business-contact-box,
.business-hours-box,
.business-map-box,
.business-social-box {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-right: 4px solid var(--primary-blue);
}

.business-contact-box h2,
.business-hours-box h2,
.business-map-box h2,
.business-social-box h2 {
  color: var(--primary-blue);
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  padding: 15px;
  border-radius: 8px;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.contact-item a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* שעות פעילות */
.hours-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-gray);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 12px 15px;
}

.day-name {
  font-weight: 600;
  color: var(--primary-blue);
  width: 100px;
}

.day-hours {
  color: #666;
}

/* מפה */
.business-map-box .map-link {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* רשתות חברתיות */
.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  color: white;
}

.social-link.facebook {
  background: #1877F2;
}

.social-link.facebook:hover {
  background: #145DB8;
}

.social-link.instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.social-link.whatsapp {
  background: #25D366;
}

.social-link.whatsapp:hover {
  background: #128C7E;
}

/* עסקים קשורים */
.related-businesses {
  margin-top: 50px;
}

.related-businesses .section-title {
  color: var(--primary-blue);
  font-size: 28px;
  margin-bottom: 25px;
  border-right: 4px solid var(--primary-red);
  padding-right: 15px;
}

/* כותרת ארכיון */
.business-archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.business-archive-header .section-title {
  /* ירושה מהסטיילינג הגלובלי של h2 */
  text-align: center;
  margin-bottom: 15px;
}

.taxonomy-description {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.no-businesses-found {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 10px;
}

.no-businesses-found p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

/* ========================================
   רספונסיביות - Business Directory
======================================== */

/* Tablet גדול (768px - 991px) */
@media (max-width: 991px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .business-archive-header .section-title {
    font-size: 36px;
  }

  .single-business {
    padding: 30px;
  }

  .business-title-section h1 {
    font-size: 32px;
  }
}

/* Tablet קטן ו-Mobile גדול (481px - 767px) */
@media (max-width: 767px) {
  .business-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .business-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .business-filters {
    padding: 20px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .business-archive-header .section-title {
    font-size: 28px;
  }

  .single-business {
    padding: 25px 20px;
  }

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

  .business-rating-large {
    font-size: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .business-contact-box,
  .business-hours-box,
  .business-map-box,
  .business-social-box {
    padding: 20px;
  }

  .business-contact-box h2,
  .business-hours-box h2,
  .business-map-box h2,
  .business-social-box h2 {
    font-size: 20px;
  }

  .business-actions {
    flex-direction: column;
  }

  .btn-business-view,
  .btn-whatsapp,
  .btn-navigate {
    width: 100%;
    text-align: center;
  }

  .social-links {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    text-align: center;
  }

  .map-link {
    flex-direction: column;
  }

  .map-link .btn {
    width: 100%;
  }
}

/* Mobile קטן (320px - 480px) */
@media (max-width: 480px) {
  .business-logo {
    height: 180px;
  }

  .business-card-content {
    padding: 15px;
  }

  .business-title {
    font-size: 19px;
  }

  .business-detail {
    font-size: 13px;
  }

  .business-filters {
    padding: 15px;
  }

  .business-filters h3 {
    font-size: 16px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .business-archive-header .section-title {
    font-size: 24px;
  }

  .single-business {
    padding: 20px 15px;
  }

  .business-title-section h1 {
    font-size: 22px;
  }

  .business-badge {
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 12px;
  }

  .business-contact-box,
  .business-hours-box,
  .business-map-box,
  .business-social-box {
    padding: 15px;
  }

  .contact-icon {
    font-size: 20px;
  }

  .hours-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* מפה רספונסיבית */
@media (max-width: 767px) {
  #single-business-map,
  .business-map {
    height: 300px !important;
  }
}

@media (max-width: 480px) {
  #single-business-map,
  .business-map {
    height: 250px !important;
  }
}

/* ========================================
   תוכנית C - CSS מתקדם למערכת עסקים
   ======================================== */

/* תיקון תצוגת מפה - פריסה מלאה */
#single-business-map,
.single-business-map,
.business-map,
[id^="business-map"] {
  width: 100% !important;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.business-map-section {
  width: 100%;
  margin: 40px 0;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-map-section h2 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 24px;
}

/* Header מתקדם לדף עסק */
.single-business-full {
  max-width: 1200px;
  margin: 0 auto;
}

.business-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.business-header-main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.business-logo-large,
.business-placeholder-logo-large {
  width: 250px;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.business-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-placeholder-logo-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 80px;
  font-weight: bold;
  color: white;
}

.business-header-info {
  color: white;
}

.business-title-main {
  font-size: 42px;
  margin: 0 0 15px 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.business-badge-inline {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.business-badge-vip {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.business-badge-חדש,
.business-badge-new {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.business-badge-מומלץ,
.business-badge-recommended {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.business-badge-פופולרי,
.business-badge-popular {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.business-category-tag {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.business-rating-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 18px;
}

.stars-large {
  font-size: 28px;
}

.rating-number {
  font-size: 32px;
  font-weight: bold;
}

.review-count {
  opacity: 0.9;
}

.business-actions-main {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn-whatsapp-main,
.btn-call-main,
.btn-navigate-main {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-main {
  background: #25D366;
  color: white;
}

.btn-call-main {
  background: #3498db;
  color: white;
}

.btn-navigate-main {
  background: #34D5E7;
  color: white;
}

.btn-whatsapp-main:hover,
.btn-call-main:hover,
.btn-navigate-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* קופונים בדף עסק */
.business-coupons-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(253, 203, 110, 0.3);
}

.business-coupons-section h2 {
  margin: 0 0 25px 0;
  color: #2d3436;
  font-size: 28px;
}

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.coupon-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-right: 5px solid #e74c3c;
  transition: all 0.3s ease;
}

.coupon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.coupon-discount {
  font-size: 32px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 10px;
}

.coupon-code {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  text-align: center;
  border: 2px dashed #e74c3c;
}

.coupon-code strong {
  font-size: 20px;
  color: #e74c3c;
  letter-spacing: 2px;
}

.coupon-expiry {
  color: #636e72;
  font-size: 14px;
  margin-top: 10px;
}

.coupon-terms {
  font-size: 13px;
  color: #636e72;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dfe6e9;
}

/* תיאור ותוכן העסק */
.business-content-section {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-content-section h2 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 24px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

.business-description {
  font-size: 16px;
  line-height: 1.8;
  color: #34495e;
}

/* גלריית תמונות */
.business-gallery-section {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-gallery-section h2 {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 24px;
}

.business-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* פרטי קשר ושעות */
.business-contact-map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.contact-info-box,
.business-hours-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-box h2,
.business-hours-box h2 {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 22px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #ecf0f1;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 24px;
  min-width: 30px;
}

.contact-item strong {
  min-width: 80px;
  color: #2c3e50;
}

.contact-item a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Social Links */
.social-links {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #ecf0f1;
}

.social-links h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #2c3e50;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon.facebook {
  background: #3b5998;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.whatsapp {
  background: #25D366;
}

.social-icon.tiktok {
  background: #000;
}

.social-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* שעות פעילות */
.hours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.hours-table tr {
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.hours-table tr:hover {
  background: #e8f4f8;
  transform: translateX(-5px);
}

.hours-table td {
  padding: 15px;
  border-radius: 8px;
}

.hours-table .day-name {
  font-weight: bold;
  color: #2c3e50;
  width: 100px;
}

.hours-table .day-hours {
  color: #3498db;
  font-weight: 600;
}

/* ביקורות */
.business-reviews-section {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-reviews-section h2 {
  margin: 0 0 30px 0;
  color: #2c3e50;
  font-size: 28px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.review-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border-right: 4px solid #3498db;
  transition: all 0.3s ease;
}

.review-item:hover {
  background: #e8f4f8;
  transform: translateX(-5px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.verified-badge {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 8px;
}

.review-date {
  color: #7f8c8d;
  font-size: 14px;
  margin-top: 5px;
}

.review-rating {
  font-size: 20px;
}

.review-content {
  line-height: 1.7;
  color: #2c3e50;
}

/* עסקים קשורים */
.related-businesses-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
}

.related-businesses-section h2 {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 24px;
}

/* חיפוש מתקדם */
.business-advanced-search {
  margin: 30px 0;
}

.search-filters {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-filters h3 {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 24px;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.search-field input,
.search-field select {
  padding: 12px 16px;
  border: 2px solid #dfe6e9;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn-search,
.btn-reset {
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-search {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-reset {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.btn-reset:hover {
  background: #d5dbdb;
}

.search-results {
  min-height: 200px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #7f8c8d;
}

.no-results,
.search-count {
  text-align: center;
  padding: 30px;
  color: #7f8c8d;
  font-size: 16px;
}

.search-count {
  color: #27ae60;
  font-weight: 600;
  margin-top: 20px;
}

/* תצוגה ראשית */
.business-homepage-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.business-stats-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  border-radius: 20px;
  color: white;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.business-stats-hero h2 {
  margin: 0 0 30px 0;
  font-size: 42px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-quick-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 18px;
  opacity: 0.95;
}

/* קטגוריות Showcase */
.business-categories-showcase {
  margin: 50px 0;
}

.business-categories-showcase h2 {
  margin: 0 0 30px 0;
  color: #2c3e50;
  font-size: 32px;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  border-right: 4px solid #3498db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.category-info h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 18px;
}

.category-count {
  color: #7f8c8d;
  font-size: 14px;
}

/* קופונים Homepage */
.homepage-coupons-section {
  margin: 50px 0;
  padding: 40px;
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 20px;
}

.homepage-coupons-section h2 {
  margin: 0 0 30px 0;
  color: #2d3436;
  font-size: 32px;
  text-align: center;
}

.coupons-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.coupon-mini-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.coupon-mini-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.coupon-discount-large {
  font-size: 36px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 15px;
}

.coupon-business {
  color: #636e72;
  font-size: 14px;
  margin: 10px 0;
}

.btn-coupon-use {
  display: inline-block;
  padding: 10px 24px;
  background: #e74c3c;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.btn-coupon-use:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Call to Action */
.business-cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  margin: 50px 0;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.business-cta-section h2 {
  margin: 0 0 15px 0;
  font-size: 36px;
}

.business-cta-section p {
  font-size: 18px;
  margin: 0 0 30px 0;
  opacity: 0.95;
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: #667eea;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* רספונסיביות מתקדמת */
@media (max-width: 991px) {
  .business-header-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .business-logo-large,
  .business-placeholder-logo-large {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .business-contact-map-section {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 767px) {
  .business-header {
    padding: 30px 20px;
  }

  .business-title-main {
    font-size: 32px;
  }

  .business-actions-main {
    flex-direction: column;
  }

  .btn-whatsapp-main,
  .btn-call-main,
  .btn-navigate-main {
    width: 100%;
    justify-content: center;
  }

  .business-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-actions {
    flex-direction: column;
  }

  .btn-search,
  .btn-reset {
    width: 100%;
  }

  .business-stats-hero h2 {
    font-size: 28px;
  }

  .stat-number {
    font-size: 36px;
  }

  .coupons-slider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .business-title-main {
    font-size: 24px;
  }

  .business-header {
    padding: 20px 15px;
  }

  .business-logo-large,
  .business-placeholder-logo-large {
    max-width: 200px;
    height: 200px;
  }

  .business-actions-main {
    gap: 10px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .business-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}


/* ========================================
   Mega Menu - Click-based panel navigation
   Replaces hover dropdowns
======================================== */

/* Override/disable old hover dropdown */
.main-nav ul.sub-menu { display: none !important; }
.main-nav li:hover > ul.sub-menu { display: none !important; }
.main-nav > li.menu-item-has-children::after { display: none !important; }
.main-nav > li.menu-item-has-children > a::after { display: none !important; }

/* Mega Nav Bar */
.mega-nav {
  background: #0f172a;
  direction: rtl;
  padding: 0;
}
.mega-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

/* Mega Nav Items (both buttons and links) */
.mega-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  position: relative;
}
.mega-item:hover {
  background: rgba(255,255,255,0.06);
  color: #93c5fd;
}
.mega-item.active {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
}
/* Arrow indicator for parent items */
.mega-item--parent::after {
  content: "\25BE";
  font-size: 11px;
  margin-right: 2px;
  transition: transform 0.2s;
}
.mega-item--parent.active::after {
  transform: rotate(180deg);
}

/* Mega Panel */
.mega-panel {
  display: none;
  background: #0f172a;
  padding: 20px 20px 24px;
  border-top: 3px solid var(--primary-blue, #1e3a5f);
  direction: rtl;
}
.mega-panel.active {
  display: block;
  animation: megaPanelSlide 0.25s ease;
}
@keyframes megaPanelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel Grid */
.mega-panel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mega Buttons inside panels */
.mega-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 80px;
}
.mega-btn:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}
.mega-btn-icon {
  font-size: 28px;
  line-height: 1;
}

/* Hide mega-nav on mobile - mobile hamburger handles it */
@media (max-width: 768px) {
  .mega-nav,
  .mega-panel {
    display: none !important;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .mega-panel-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .mega-item {
    padding: 12px 12px;
    font-size: 14px;
  }
}

