/* Add this to your existing CSS file */

.table-from-metabox tbody tr.special-row-highlight {
  background-color: #ff7800; /* یک پس‌زمینه زرد کم‌رنگ (مثل هایلایت) */
  font-weight: bold;      /* متن کمی ضخیم‌تر */
   /* سایه داخلی ملایم */
  transition: all 0.3s ease; /* انیمیشن نرم برای تغییرات */
  color: #fff !important;
  position: relative;
}

.title_tb_post {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	margin-top: 30px !important;
	margin-bottom: 15px !important;
	padding-bottom: 5px;
	border-bottom: 2px solid #eee;
	clear: both;
	width: 100%;
	text-align: right;
}

/* می‌توانید استایل‌های بیشتری اضافه کنید، مثلا: */
/*
.table-from-metabox tbody tr.special-row-highlight td:first-child::before {
  content: "⭐ "; /* اضافه کردن یک آیکون ستاره قبل از محتوای اولین سلول */
/* margin-left: -15px; /* تنظیم موقعیت آیکون */
/*}
*/

/* استایل هاور برای ردیف ویژه */
.table-from-metabox tbody tr.special-row-highlight:hover {
  background-color: #ffeeba; /* کمی تیره‌تر هنگام هاور */
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.7) inset;
}

/* تنظیمات ویژه برای حالت ریسپانسیو */
@media (max-width: 768px) {
  .table-from-metabox tbody tr.special-row-highlight {
    border-color: #ffc107; /* تغییر رنگ بوردر در حالت موبایل */
    border-width: 2px;
  }

  .table-from-metabox tbody tr.special-row-highlight td {
     /* می‌توانید استایل خاصی برای سلول‌های ردیف ویژه در موبایل بدهید */
  }

  /*
  .table-from-metabox tbody tr.special-row-highlight td::before {
     color: #c82333; /* تغییر رنگ لیبل در حالت موبایل برای ردیف ویژه */
  /* }
  */
}

a.table-button {
	color: #fff !important;
}

.table-from-metabox {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.table-from-metabox th,
.table-from-metabox td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-from-metabox thead th {
    background-color: #f4f7f9;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-from-metabox tbody tr:hover {
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

.table-from-metabox tbody tr:last-child td {
    border-bottom: none;
}

.table-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 5px;
    border: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.table-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Left-align styles */
.table-left-align {
    direction: ltr;
}

.table-left-align th,
.table-left-align td {
    text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {
    .table-from-metabox {
        display: block;
        overflow-x: auto;
    }

    .table-from-metabox thead {
        display: none;
    }

    .table-from-metabox tbody tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .table-from-metabox td {
        display: block;
        text-align: right;
        border-bottom: none;
        padding-left: 50%;
        position: relative;
    }

    .table-from-metabox td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-transform: uppercase;
    }

    /* Responsive left-align adjustments */
    .table-left-align td {
        text-align: left;
        padding-left: 15px;
    }

    .table-left-align td::before {
        left: auto;
        right: 15px;
    }
}


.table-from-metabox tbody tr.special-row-highlight td:first-child::before {
  content: "ویژه";
  position: absolute;
  background: #fbfbfb;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 70px;
  text-align: center;
  height: 72%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ff7800;
  border-radius: 15px;
  box-shadow: rgba(17, 12, 46, 0.35) 0px 48px 100px 0px;
}
.special-row-highlight a {
  background: #fff;
  color: #ff7801 !important;
  border-radius: 8px !important;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}