.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters select {
  padding: 8px 12px 8px 35px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #FFFFFF url("../assets/arrow.svg") no-repeat left 10px center;
  border-radius: 10px;
  border: 1px solid #e5e7eb;

  font-size: 14px;
  cursor: pointer;
}

/* سهم */

/* hover */
.filters select:hover {
  background-color: #e8f0ff;
  border-color: #c7dbff;
}

.title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0F5BC3;
  margin-bottom: 5px;
}

.title span {
  color: #777;
  font-size: 16px;
  font-weight: 400;
}

/* grid */
.cards {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.cards-container{
   background-color: #FFFFFF;
  border: 1px solid #00000012;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}
/* card */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* image */
.img-box {
  position: relative;
}

.img-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* time */
.time {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #ff7a00;
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 6px;
}

/* bookmark */
.bookmark {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #F6F6F8;
  padding: 6px;
  border-radius: 5px;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 12px;
  padding-left: 12px;
}

.views {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
}

.viewed {
  color: #8D8D8D;
  font-size: 10px;
  font-weight: 400;
}

.info {
  padding-bottom: 12px;
}

.info h3 {
  font-size: 16px;
  font-weight: 500;
  padding-right: 12px;
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info p {
  font-size: 14px;
  font-weight: 500;
  color: #0059FF;
}

/* meta */
.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #555;
  padding-right: 12px;
  padding-left: 12px;
}

.load-more {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 25px auto 100px auto;
  padding: 12px 22px;

  background: #FFFFFF;
  border: 1px solid #0000001F;
  border-radius: 12px;

  color: #3b82f6;
  font-size: 15px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 1px 5px 34.8px 0px #0000000D;

}

/* الأيقونة */
.load-more .icon {
  font-size: 14px;
}

/* hover */
.load-more:hover {
  background: #e8f0ff;
  border-color: #c7dbff;
}

/* active click */
.load-more:active {
  transform: scale(0.97);
}

.job-details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  border-bottom: 1px solid #0000000D;
  align-items: center;
  border-radius: 12px;
  padding-bottom: 15px;
  padding-right: 20px;
  padding-left: 20px;
  margin-top: 10px;
}

.detail-item {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex: 1;
  justify-content: center;
  position: relative;
  font-size: 11px;
  color: #555;
}

.title {
  font-size: 12px;
  font-weight: 400;
  color: #7C8493;
  text-align: center;
  margin-bottom: 5px;
}

.sub-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7C8493;
  font-size: 11px;
  font-weight: 400;
}

/* إضافة الخط الفاصل العمودي */
.detail-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  /* يوضع الخط على يسار كل عنصر ماعدا الأخير */
  top: 20%;
  height: 28px;
  width: 2px;
  background-color: #0000000D;
  /* لون الخط الفاصل الرمادي الرفيع */
}

.detail-item span {
  white-space: nowrap;
}

@media (max-width:620px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cards{
    grid-template-columns: repeat(3,1fr);
  }
}
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}