.fpd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  padding: 20px;
}

.fpd-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.fpd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.fpd-img {
  position: relative;
}
.fpd-img img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}
.fpd-ribbon {
  position: absolute;
  top: 10px;
  right: 0;
  background: #014421;
  color: #FFD700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  font-weight: bold;
}

.fpd-info {
  padding: 15px;
  text-align: center;
}

.fpd-title {
  font-size: 1rem;
  margin: 10px 0;
  color: #222;
  min-height: 44px;
}

.fpd-views {
  font-size: 0.85rem;
  color: #014421;
  font-weight: bold;
  margin-bottom: 8px;
}

.fpd-button {
  background-color: #014421;
  color: #FFD700;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.fpd-button:hover {
  background-color: #026d3c;
  color: #ffeb7a;
}

/* الهاتف: منتج واحد في السطر */
@media (max-width: 600px) {
  .fpd-grid {
    grid-template-columns: 1fr;
  }
}
