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;
    border-radius: 25px !important;
    font-size: 16px !important;
    padding: 10px 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: inline-block !important;
}

.related-posts-ad {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin: 25px 0;
    border-radius: 10px;
}

.centered-title {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

/* الزر الأساسي */
.fasc-button {
  display: inline-block;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px auto;
  transition: background 0.3s ease;
  line-height: 1.4;
  white-space: nowrap;
}

/* حجم كبير */
.fasc-button.fasc-size-large {
  font-size: 16px;
  padding: 16px 32px;
}

/* نوع مسطح */
.fasc-button.fasc-type-flat {
  box-shadow: none;
}

/* الحواف الدائرية */
.fasc-button.fasc-rounded-medium {
  border-radius: 8px;
}

/* توحيد لون كافة أزرار التحميل في الموقع لتحسين التباين */
.fasc-button {
  background-color: #12821c !important; /* اللون الأخضر المعتمد للنجاح في Lighthouse */
  color: #ffffff !important; /* ضمان بقاء النص باللون الأبيض */
  border-radius: 50px !important; /* الحفاظ على الشكل الانسيابي للأزرار */
  transition: background-color 0.3s ease; /* إضافة نعومة عند التمرير بالماوس */
}

/* تأثير التمرير الموحد */
.fasc-button:hover {
  background-color: #0e6616 !important; /* درجة أغمق قليلاً عند التفاعل */
}
/* دعم الأيقونات قبل النص */
.fasc-button.ico-fa:before,
.fasc-button .fa {
  font-family: FontAwesome;
  margin-right: 8px;
}


.fasc-button {
  display: inline-block;
  text-align: center;
  white-space: normal;
  line-height: 1.4;
}

.fasc-button .btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fasc-button .btn-version {
  display: block;
  width: 100%;
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.9;
}

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;
}
