/* ================================================
   he-blog.css — Blog section styles
   Brand: Navy #0C1E3C | Gold #C4904A | Ivory #F9F6F1 | Cream #F1EAE0
   RTL Hebrew-first
   ================================================ */

/* ------------------------------------------------
   BLOG HERO
   ------------------------------------------------ */
.blog-hero {
  position: relative;
  padding: 7rem 0 4rem;
  background-color: #0C1E3C;
  overflow: hidden;
  text-align: center;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 144, 74, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(196, 144, 74, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196, 144, 74, 0.15);
  border: 1px solid rgba(196, 144, 74, 0.3);
  color: #C4904A;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.blog-hero-title {
  font-family: 'Heebo', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F9F6F1;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-hero-brand {
  color: #C4904A;
}

.blog-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(249, 246, 241, 0.75);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ------------------------------------------------
   BLOG SECTION
   ------------------------------------------------ */
.blog-section {
  padding: 4rem 0 5rem;
  background-color: #F9F6F1;
}

/* ------------------------------------------------
   BLOG GRID — 2 columns desktop, 1 column mobile
   ------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ------------------------------------------------
   BLOG CARD
   ------------------------------------------------ */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 30, 60, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(12, 30, 60, 0.13);
  transform: translateY(-3px);
}

/* Gold accent on bottom-border on hover */
.blog-card:hover .blog-card-body {
  border-bottom: 3px solid #C4904A;
}

.blog-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s ease;
}

/* ------------------------------------------------
   CARD IMAGE
   ------------------------------------------------ */
.blog-card-image-link {
  display: block;
  text-decoration: none;
}

.blog-card-image {
  position: relative;
  height: 200px;
  background-color: #0C1E3C;
  overflow: hidden;
}

/* Warehouse article — subtle pattern */
.blog-card-image--warehouse {
  background:
    linear-gradient(135deg, #0C1E3C 0%, #1a3460 50%, #0C1E3C 100%);
}

.blog-card-image--warehouse::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(196, 144, 74, 0.04) 20px,
      rgba(196, 144, 74, 0.04) 21px
    );
}

/* Property owner tips — different tint */
.blog-card-image--tips {
  background:
    linear-gradient(135deg, #112244 0%, #0C1E3C 40%, #1a2e50 100%);
}

.blog-card-image--tips::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(196, 144, 74, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(196, 144, 74, 0.08) 0%, transparent 40%);
}

.blog-card-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
}

.blog-card-image-category {
  display: inline-block;
  background: rgba(196, 144, 74, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* ------------------------------------------------
   CARD META
   ------------------------------------------------ */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #7a8aa0;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.blog-card-sep {
  color: #c0cad4;
}

/* ------------------------------------------------
   CARD TITLE
   ------------------------------------------------ */
.blog-card-title {
  font-family: 'Heebo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0C1E3C;
  margin-bottom: 0.65rem;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: #C4904A;
}

/* ------------------------------------------------
   CARD EXCERPT — 2 line clamp
   ------------------------------------------------ */
.blog-card-excerpt {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

/* ------------------------------------------------
   CARD CTA
   ------------------------------------------------ */
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #C4904A;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card-cta:hover {
  gap: 0.7rem;
  color: #a87438;
}

/* ------------------------------------------------
   BLOG CTA STRIP
   ------------------------------------------------ */
.blog-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #0C1E3C;
  color: #F9F6F1;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  flex-wrap: wrap;
}

.blog-cta-text {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(249, 246, 241, 0.88);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 600px) {
  .blog-cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .blog-cta-text {
    font-size: 0.95rem;
  }
  .blog-hero {
    padding: 5.5rem 0 3rem;
  }
}

/* ------------------------------------------------
   RESPONSIVE — tablet
   ------------------------------------------------ */
@media (max-width: 900px) {
  .blog-hero {
    padding: 6rem 0 3.5rem;
  }
}
