html {
    scroll-behavior: smooth;
}

table tbody tr td,
table tbody tr th {
    text-align: center !important;
    vertical-align: middle !important;
}

table tbody tr td[style],
table tbody tr th[style] {
    text-align: center !important;
    vertical-align: middle !important;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    background-color: #efefef;
    padding: 10px;
    color: #000000;
    border-radius: 10px;
    position: relative;
}

.entry-content h2::before,
.entry-content h3::before,
.entry-content h4::before,
.entry-content h5::before,
.entry-content h6::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: red;
    border-radius: 5px 0 0 5px;
}

body.home .post-title,
body.home .section-recom .mobilltna-list .title,
body.home .section-recom .mobilltna-list .truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    max-width: none;
    white-space: normal;
}

body.category .post-title {
    font-size: 15px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.related-posts-list .post-title {
    text-align: center;
    font-size: 15px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.post-title.entry-title {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
}

.time, 
.date, 
.post-meta time, 
.tie-date {
    display: none !important;
}

.single .time, 
.single .date, 
.single .post-meta time, 
.single .tie-date {
    display: inline !important;
}

/* توسيط أزرار التحميل */
.fasc-button {
  width: 350px !important;
  max-width: 90% !important;
  display: block !important;
  margin: 10px auto !important;
  float: none !important;
  clear: both !important;
  text-align: center !important;
  box-sizing: border-box !important;

  background-color: #12821c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: normal !important;
}

/* تأثير المرور */
.fasc-button:hover {
  background-color: #0e6616 !important;
  color: #ffffff !important;
}

/* توسيط محتوى الزر لو فيه أيقونة أو إصدار */
.fasc-button .btn-content {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.fasc-button .btn-version {
  display: block !important;
  font-size: 13px !important;
  margin-top: 4px !important;
  opacity: 0.9 !important;
  text-align: center !important;
}

/* صندوق الروابط */
.related-posts-ad {
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #ddd;
  margin: 25px 0;
  border-radius: 10px;
  text-align: center !important;
}

/* العنوان */
.centered-title {
  display: block;
  text-align: center !important;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 16px;
}

/* الموبايل */
@media (max-width: 480px) {
  .fasc-button {
    width: 90% !important;
    max-width: 350px !important;
    font-size: 15px !important;
    padding: 11px 14px !important;
  }
}

body.home .mag-box .posts-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
body.home .mag-box .posts-items li {
    width: 25% !important;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* المقالات على الموبايل: 2 في الصف */
@media (max-width: 670px) {
    body.home .big-posts-box .posts-items li {
        width: 50% !important;
    }
}

.mag-box .posts-items li {
    margin-top: 10px !important;
}
body.home .post-cat {
    display: none !important;
}
.main-content.tie-col-md-12 {
    padding: 0 !important;
}
	
	body.home .mag-box .post-title {
    text-align: center;
}

/* Dark Mode Headings for Jannah / TieLabs */

html.dark-skin .entry-content h2,
html.dark-skin .entry-content h3,
html.dark-skin .entry-content h4,
html.dark-skin .entry-content h5,
html.dark-skin .entry-content h6 {
    background-color: #1a1a1a !important;
    padding: 10px !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    position: relative !important;
    border: 1px solid #333 !important;
}

html.dark-skin .entry-content h2::before,
html.dark-skin .entry-content h3::before,
html.dark-skin .entry-content h4::before,
html.dark-skin .entry-content h5::before,
html.dark-skin .entry-content h6::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #ff5252 !important;
    border-radius: 5px 0 0 5px;
}
