/* =========================================================
   EGYP Link Correlati
   ========================================================= */

.egyp-related {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.egyp-related-block {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem 0.95rem;
  background: #fcfcfc;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.egyp-related-title {
  margin: 0 0 0.85rem;
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 600;
  color: #222;
}
.egyp-related-title {
  margin: 0 0 0.85rem;
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 600;
  color: #222;
}
.egyp-related-title-value {
  color: #111;
  font-weight: 800;
}

.egyp-related-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.egyp-related-card {
  min-width: 0;
}

.egyp-related-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.72rem;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.egyp-related-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.egyp-related-thumb {
  height: 140px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.egyp-related-thumb img {
  display: block;
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.egyp-related-noimage {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #f6f6f6 0%, #efefef 100%);
}

.egyp-related-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.egyp-related-name {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #222;
  min-height: 2.35em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.egyp-related-authors {
  margin: 0 0 0.28rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #555;
  font-style: italic;
}

.egyp-related-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #777;
  min-height: 1.15em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.egyp-related-price {
  margin-top: auto;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

@media (max-width: 1199.98px) {
  .egyp-related-products {
    gap: 12px;
  }

  .egyp-related-thumb {
    height: 132px;
    min-height: 132px;
  }

  .egyp-related-thumb img {
    max-height: 122px;
  }
}

@media (max-width: 991.98px) {
  .egyp-related-block {
    padding: 0.75rem 0.8rem 0.8rem;
  }

  .egyp-related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .egyp-related-title {
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 575.98px) {
  .egyp-related {
    margin-top: 0.65rem;
  }

  .egyp-related-block {
    padding: 0.7rem;
    border-radius: 8px;
  }

  .egyp-related-products {
    gap: 10px;
  }

  .egyp-related-link {
    padding: 0.6rem;
    border-radius: 7px;
  }

  .egyp-related-thumb {
    height: 118px;
    min-height: 118px;
    margin-bottom: 0.5rem;
  }

  .egyp-related-thumb img {
    max-height: 108px;
  }

  .egyp-related-name {
    font-size: 0.87rem;
  }

  .egyp-related-price {
    font-size: 0.96rem;
  }
}