.tr-home .tr-articles {
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
  border: 1px solid #eef0f4;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 10px 40px rgba(37, 99, 235, .06);
}

.tr-home .tr-articles::before,
.tr-home .tr-articles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tr-home .tr-articles::before {
  top: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 99, 235, .1), transparent 70%);
}

.tr-home .tr-articles::after {
  right: -80px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, .08), transparent 70%);
}

.tr-home .tr-emoji {
  display: inline-block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.tr-home .tr-articles-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.tr-home .tr-articles-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.tr-home .tr-articles-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563eb, #f59e0b);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
  color: #fff;
  font-size: 22px;
}

.tr-home .tr-articles-link,
.tr-home .tr-articles-link:hover,
.tr-home .tr-articles-link:focus {
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.tr-home .tr-articles-link:hover,
.tr-home .tr-articles-link:focus {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}

.tr-home .tr-articles-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tr-home .tr-articles-card,
.tr-home .tr-articles-card:hover,
.tr-home .tr-articles-card:focus {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  background: #fff;
  color: #1f2430;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}

.tr-home .tr-articles-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(37, 99, 235, .12);
}

.tr-home .tr-articles-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #bfdbfe);
}

.tr-home .tr-articles-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tr-home .tr-articles-media.is-missing::after {
  content: "تصویر مقاله";
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
}

.tr-home .tr-articles-media.is-missing img {
  display: none;
}

.tr-home .tr-articles-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 20px;
}

.tr-home .tr-articles-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 11px;
}

.tr-home .tr-articles-name {
  min-height: 3.2em;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tr-home .tr-articles-card:hover .tr-articles-name {
  color: #2563eb;
}

.tr-home .tr-articles-excerpt {
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tr-home .tr-articles-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eef0f4;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 800;
}

.tr-home .tr-articles-card:hover .tr-articles-read {
  gap: 10px;
  color: #d97706;
}

@media (max-width: 980px) {
  .tr-home .tr-articles {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .tr-home .tr-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tr-home .tr-articles-title {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .tr-home .tr-articles {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .tr-home .tr-articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tr-home .tr-articles-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tr-home .tr-articles-title {
    gap: 8px;
    font-size: 17px;
  }

  .tr-home .tr-articles-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}
