/* ===== Blog Article Page ===== */
.blog-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.blog-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 40%, transparent 100%);
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
html[lang="ar"] .blog-hero-content { text-align: right; direction: rtl; }
html[lang="fr"] .blog-hero-content { text-align: left;  direction: ltr; }

.blog-hero-tag {
  display: inline-block;
  background: var(--primary);
  color: #0D0D0D;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.blog-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

/* Article body */
.blog-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
html[lang="ar"] .blog-article { direction: rtl; text-align: right; }
html[lang="fr"] .blog-article { direction: ltr; text-align: left;  }

.blog-article h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0D0D0D;
  margin: 40px 0 14px;
}
html[lang="ar"] .blog-article h2 {
  border-right: 4px solid var(--primary);
  border-left: none;
  padding-right: 14px;
  padding-left: 0;
}
html[lang="fr"] .blog-article h2 {
  border-left: 4px solid var(--primary);
  border-right: none;
  padding-left: 14px;
  padding-right: 0;
}

.blog-article p {
  font-size: 1rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 20px;
}
.blog-article ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.blog-article ul li {
  padding: 8px 0;
  position: relative;
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}
html[lang="ar"] .blog-article ul li { padding-right: 26px; padding-left: 0; }
html[lang="fr"] .blog-article ul li { padding-left: 26px;  padding-right: 0; }

.blog-article ul li::before {
  content: "✦";
  position: absolute;
  color: var(--primary);
  font-size: 0.75rem;
  top: 11px;
}
html[lang="ar"] .blog-article ul li::before { right: 0; left: auto; }
html[lang="fr"] .blog-article ul li::before { left: 0;  right: auto; }

.blog-tip-box {
  background: #FFF8EC;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}
html[lang="ar"] .blog-tip-box { border-right: 4px solid var(--primary); border-left: none; }
html[lang="fr"] .blog-tip-box { border-left: 4px solid var(--primary);  border-right: none; }

.blog-tip-box strong {
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

/* CTA inside article */
.blog-cta {
  background: #0D0D0D;
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  margin-top: 50px;
}
.blog-cta h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.blog-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.blog-cta a {
  background: var(--primary);
  color: #0D0D0D;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  transition: background 0.3s;
}
.blog-cta a:hover { background: var(--primary-dark); }

/* Back link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 30px;
}
.blog-back:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .blog-hero { height: 300px; }
  .blog-article { padding: 40px 16px 60px; }
}
