/* ============================================
   كيوريفا - صفحة المدونة (RTL - العربية)
   إصدار كامل للغة العربية
   ============================================ */

/* ============================================
   القسم الرئيسي للمدونة
   ============================================ */
.blog-hero {
  background: linear-gradient(#fdf8f3, #ffffff);
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  direction: rtl;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 3rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(26, 143, 138, 0.25);
  margin-top: 0.3rem;
}

.btn-hero:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-hero .arrow {
  transform: rotate(180deg);
  display: inline-block;
}

/* ============================================
   محتوى المدونة
   ============================================ */
.blog-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================
   المقال المميز
   ============================================ */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.featured-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.featured-thumb {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-card:hover .featured-thumb img {
  transform: scale(1.04);
}

.featured-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  text-align: right;
}

.featured-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.featured-title {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s;
}

.featured-card:hover .featured-title {
  color: var(--teal);
}

.featured-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   معلومات المقال (التاريخ، وقت القراءة)
   ============================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.775rem;
  color: var(--muted);
}

.meta-item svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
}

/* ============================================
   شبكة البطاقات الصغيرة (3 أعمدة × صفين)
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-thumb {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 0.85rem;
  background: #e5e7eb;
}

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

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  text-align: right;
}

.post-card:hover .post-title {
  color: var(--teal);
}

/* ============================================
   التجاوب مع الشاشات
   ============================================ */
@media (max-width: 760px) {
  .blog-content {
    padding: 2rem 1.25rem 3.5rem;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    aspect-ratio: 16/9;
  }

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

@media (max-width: 480px) {
  .blog-hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .post-title {
    font-size: 0.85rem;
  }
}