/* =========================
   15) News Index (Page)
   - Same principle as Gallery
========================= */

.news-page {
  padding: 48px 0;
  background: #fff;
}

/* نفس كونتينر اللاندنغ (80px) */
.news-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: 80px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .news-container {
    padding-inline: 20px;
  }
}

/* =========================
   Header Icon (FINAL)
   ✅ from /public/icons/ui/newspaper.svg
   ✅ boxed + orange + bigger
========================= */
.news-page .section-title{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: rtl;
}

.news-page .title-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;

  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.news-page .title-icon-img{
  width: 28px;
  height: 28px;
  display: block;

  /* يجعل أي SVG أسود يظهر أورانج */
  filter: invert(63%) sepia(88%) saturate(2200%) hue-rotate(2deg) brightness(102%) contrast(102%);
}

@media (max-width: 520px){
  .news-page .title-icon{
    width: 36px;
    height: 36px;
  }
  .news-page .title-icon-img{
    width: 22px;
    height: 22px;
  }
}

/* =========================
   Grid (same idea as landing news)
========================= */
.news-figma-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.1rem;
  margin-top: 26px;
}

@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;
  }
}

/* Card link */
.news-figma-card {
  display: block;
  text-decoration: none;
}

/* =========================
   Media
========================= */
.news-figma-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 260px;
  background: #0b1220;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
}

/* ✅ real image */
.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);
}

/* ✅ Clean gradient fallback (no image) */
.news-figma-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(245, 158, 11, .18), transparent 55%),
    radial-gradient(700px 380px at 20% 90%, rgba(37, 99, 235, .35), transparent 60%),
    linear-gradient(135deg, #061a33 0%, #0b3a78 55%, #0b1f3f 100%);
  transform: scale(1);
  transition: transform .35s ease;
}

.news-figma-card:hover .news-figma-media.is-no-image .news-figma-fallback {
  transform: scale(1.03);
}

/* 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;
}

/* Date strip */
.news-figma-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.35) 100%);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Tajawal", sans-serif;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: right;
  direction: rtl;
}

.news-figma-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.news-figma-badge time {
  display: block;
}

/* Caption */
.news-figma-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.05rem 1.15rem 2.6rem;
  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;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.news-figma-card-sub {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   Pagination
========================= */
.news-pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.news-pagination nav {
  direction: rtl;
}

.news-pagination .pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.news-pagination .page-link,
.news-pagination .page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #0b3a78;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.news-pagination .page-item.active .page-link {
  background: #0b3a78;
  border-color: #0b3a78;
  color: #fff;
}

.news-pagination .page-item.disabled span {
  opacity: .5;
}
