/* ─────────────────────────────────────────
   Blog – styles aligned with main site (style.css)
   ───────────────────────────────────────── */

:root {
  --beige:        #f5ede0;
  --beige-dark:   #e8d8c4;
  --beige-light:  #fdf8f2;
  --green:        #7a9e7e;
  --green-dark:   #5c7d60;
  --green-light:  #d4e8d6;
  --white:        #ffffff;
  --text-dark:    #3a3028;
  --text-mid:     #6b5e52;
  --text-light:   #9a8878;
  --shadow:       0 4px 24px rgba(90,60,30,0.10);
  --shadow-hover: 0 8px 32px rgba(90,60,30,0.18);
  --radius:       18px;
  --radius-sm:    10px;
  --gold:         #b8962e;
  --gold-light:   #fdf3d8;
  --gold-border:  #e8d5a0;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

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

body {
  font-family: 'Heebo', 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
  direction: rtl;
  background: var(--beige-light);
  color: var(--text-dark);
  line-height: 1.85;
  font-size: 1rem;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TOP BAR ── */
.blog-topbar {
  background: rgba(253,248,242,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--beige-dark);
  box-shadow: 0 2px 18px rgba(90,60,30,0.08);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-topbar-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.blog-topbar-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-topbar-nav a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.blog-topbar-nav a:hover {
  background: var(--beige);
  color: var(--text-dark);
  text-decoration: none;
}

.blog-topbar-nav .topbar-cta {
  background: var(--green-dark);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(92,125,96,0.3);
  transition: background 0.2s, transform 0.2s;
}

.blog-topbar-nav .topbar-cta:hover {
  background: #4a6b4e;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px 24px;
  font-size: 0.82rem;
  color: var(--text-light);
  background: var(--white);
  border-bottom: 1px solid var(--beige-dark);
}

.breadcrumb a {
  color: var(--green-dark);
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--beige-dark); }

/* ── BLOG HERO (index page) ── */
.blog-hero {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--beige) 100%);
  padding: 64px 24px 52px;
  text-align: center;
  border-bottom: 1px solid var(--beige-dark);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(184,150,46,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.blog-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.blog-hero p {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── ARTICLE HERO BANNER IMAGE ── */
.article-hero-banner {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--beige-dark);
}

.article-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* ── ARTICLE HERO ── */
.article-hero {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--beige) 100%);
  padding: 56px 24px 44px;
  text-align: center;
  border-bottom: 1px solid var(--beige-dark);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(184,150,46,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.article-hero .article-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  max-width: 700px;
  margin: 0 auto 18px;
}

.article-hero .article-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── CONTAINER ── */
.container      { max-width: 780px;  margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── DIVIDER ── */
.blog-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--beige-dark));
  border-radius: 4px;
  margin: 14px auto 32px;
}

/* ── BLOG GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 0 56px;
}

/* ── BLOG CARD ── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 0 2px var(--gold-light);
  text-decoration: none;
}

.blog-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--beige) 100%);
  border-bottom: 1px solid var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

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

.blog-card-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.blog-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.88rem;
  align-self: flex-start;
  transition: color 0.2s;
}

/* Stretched link – entire card is clickable */
.blog-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.blog-card-link:hover {
  color: var(--gold);
  text-decoration: none;
}

/* ── ARTICLE BODY ── */
.article-body {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 56px);
  margin: 32px auto 44px;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.article-body p {
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.9;
}

.article-body ul,
.article-body ol {
  padding-right: 24px;
  margin-bottom: 18px;
}

.article-body li {
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body strong { color: var(--text-dark); }

/* ── HIGHLIGHT BOX ── */
.article-highlight {
  background: var(--gold-light);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.article-highlight p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
}

/* ── ARTICLE CTA ── */
.article-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, #4a6b4e 100%);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  margin: 40px 0 0;
  box-shadow: 0 8px 24px rgba(92,125,96,0.25);
}

.article-cta h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.article-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* ── WhatsApp BUTTON ── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  color: #fff;
}

/* ── RELATED POSTS ── */
.related-posts {
  padding: 40px 0 56px;
  border-top: 1px solid var(--beige-dark);
  margin-top: 8px;
}

.related-posts h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark);
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
  line-height: 1.9;
}

footer a { color: #d4e8d6; }
footer a:hover { color: #fff; }

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 768px) {
  .blog-hero { padding: 52px 20px 40px; }
  .article-hero { padding: 48px 20px 36px; }
  .article-cta { padding: 32px 20px; }
  .blog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Mobile */
@media (max-width: 600px) {
  .article-hero-banner { height: 190px; }
  .blog-topbar {
    padding: 8px 14px;
    height: auto;
    min-height: 52px;
  }
  .blog-topbar-nav { gap: 2px; }
  .blog-topbar-nav a { padding: 6px 8px; font-size: 0.82rem; }
  .blog-hero { padding: 40px 16px 32px; }
  .article-hero { padding: 36px 16px 28px; }
  .article-body { padding: 20px 16px; margin: 20px auto 32px; }
  .article-cta { padding: 28px 16px; }
  .article-cta h3 { font-size: 1.1rem; }
  .btn-wa { font-size: 0.92rem; padding: 12px 22px; }
  .blog-grid { gap: 16px; padding: 28px 0 40px; }
  .related-posts { padding: 32px 0 40px; }
  .breadcrumb { padding: 10px 16px; }
}

/* Small phones – hide secondary nav links to prevent overflow */
@media (max-width: 420px) {
  .blog-topbar-nav a:not(.topbar-cta) { display: none; }
  .blog-topbar { justify-content: space-between; }
}

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--gold) 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}

/* ── Ripple effect ── */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  background: rgba(255, 255, 255, 0.38);
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-left: -60px;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

