/* File: 06-news.css */

/* =========================
   News (FIGMA EXACT) - Landing
========================= */

.news-figma {
  background: #fff;
}

.news-figma-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  margin: 28px 0;
}

/* Header handles by unified section-title.css */

/* Grid */
.news-figma-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.1rem;
  margin: 0 0 2.1rem;
}

.news-figma-card {
  display: block;
  text-decoration: none;
}

/* ✅ Media (FIGMA) */
.news-figma-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  background: var(--primary-blue-dark);
  box-shadow: var(--shadow-md);
}

/* ❌ منع blur القديم نهائياً */
.news-figma-media::before {
  content: none !important;
}

.news-figma-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* ✅ نفس الفيغما */
  object-fit: cover;
  object-position: center;

  display: block;
  transform: scale(1);
  transition: transform .35s ease;
}

.news-figma-card:hover .news-figma-media img {
  transform: scale(1.04);
}

/* Overlay gradient */
.news-figma-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.10) 100%);
  z-index: 1;
}


/* Badge (date) bottom-right */
.news-figma-badge {
  position: absolute;
  right: 14px;
  bottom: 12px;
  top: auto;

  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;

  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  z-index: 3;
}

/* Caption bottom overlay (title only) */
.news-figma-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 1.05rem 1.15rem 1rem;
  z-index: 3;
  text-align: right;

  /* ✅ طبقة إضافية تحت النص فقط */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.00) 100%);
}

.news-figma-card-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ✅ بدون وصف (حسب طلبك) */
.news-figma-card-sub {
  display: none;
}

/* Actions */
.news-figma-actions {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 1.8rem;
}

.news-figma-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  padding: 0.9rem 2.2rem;
  border-radius: 50px;

  background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: #fff;
  font-weight: 900;
  text-decoration: none;

  box-shadow: var(--shadow-md);
  border: 2px solid rgba(245, 158, 11, 0.55);

  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-figma-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(7, 43, 102, 0.34);
  border-color: rgba(245, 158, 11, 0.85);
}

.news-figma-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
  .news-figma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-figma-grid {
    grid-template-columns: 1fr;
  }

  .news-figma-media {
    height: 240px;
  }

  .news-figma-title {
    font-size: 24px;
  }
}