/* کادر کلی فقط برای سینگل */
.ss-single {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  color: #333;
}

/* عنوان پست */
.ss-single__title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.ss-single__title a {
  color: #333;
  text-decoration: none;
}
.ss-single__title a:hover {
  color: #000;
}

/* بخش متا: تاریخ و دسته‌بندی */
.ss-single__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}
.ss-single__meta .ss-date {
  background: #ffe0b2;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #bf360c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ss-single__meta .ss-category {
  background: #c8e6c9;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ss-single__meta .ss-category a {
  color: #1b5e20;
  text-decoration: none;
  margin: 0 4px;
}
.ss-single__meta .ss-category a:hover {
  color: #004d40;
}

/* محتوای پست */
.ss-single__content {
  font-size: 18px;
  line-height: 1.9;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 30px;
  color: #333;
}

/* برچسب‌ها */
.ss-single__tags {
  background: #f3e8ff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
}
.ss-single__tags .tag-title {
  font-weight: 700;
  margin-right: 10px;
  color: #6b21a8;
}
.ss-single__tags a {
  display: inline-block;
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  margin: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.ss-single__tags a:hover {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #333;
}

/* نویسنده */
.ss-single__author {
  display: flex;
  align-items: center;
  background: #fff3e0;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 40px;
}
.ss-author__avatar img {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ss-author__info {
  margin-right: 16px;
  color: #333;
}
/* مطالب مشابه */
.ss-related {
  margin-top: 50px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
}

/* عنوان مطالب مشابه داخل کادر شیک */
.ss-related__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #fff;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-block;
}

/* لیست آیتم‌ها */
.ss-related__items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* کارت هر مطلب */
.ss-related__item {
  flex: 1 1 calc(25% - 20px);
  max-width: 220px;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
}
.ss-related__item:hover {
  transform: translateY(-5px);
}

/* تصویر شاخص */
.ss-related__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* عنوان مطلب بدون خط */
.ss-related__item-title {
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  color: #333;
  text-decoration: none;
  border: none;
}
.ss-related__item a {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit;
}
.ss-related__item a:hover .ss-related__item-title {
  color: #000;
  text-decoration: underline; /* فقط موقع هاور */
}

/* رسپانسیو */
@media (max-width: 992px) {
  .ss-related__item {
    flex: 1 1 calc(50% - 20px); /* دو تا در هر سطر */
  }
}

/* موبایل: دقیقاً دو تا در هر سطر (۴ تا = ۲ ردیف) */
@media (max-width: 576px) {
  .ss-related__item {
    flex: 1 1 calc(50% - 20px); /* دو تا کنار هم */
    max-width: none;            /* جلوگیری از محدودیت عرض */
    min-width: auto;            /* هماهنگی با 50% */
  }
}
/* بخش کامنت‌ها */
.ss-comments {
  margin-top: 60px;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.ss-comments__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #fff;
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-block;
}

/* لیست دیدگاه‌ها */
.ss-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-comments__list li {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* هدر کامنت: نویسنده + تاریخ */
.ss-comment__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ss-comment__author {
  background: #ffe0b2;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: #bf360c;
}

.ss-comment__date {
  background: #c8e6c9;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1b5e20;
}

/* متن کامنت */
.ss-comment__content {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* فرم ارسال دیدگاه */
.ss-comments form {
  margin-top: 30px;
}

.ss-comments textarea,
.ss-comments input[type="text"],
.ss-comments input[type="email"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  font-size: 14px;
}

.ss-comments__submit {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.ss-comments__submit:hover {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

/* عکس‌های وسط‌چین */
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* عکس‌های راست‌چین */
img.alignright {
    float: right;
    margin-left: 20px; /* فاصله از متن */
    margin-bottom: 10px;
}

/* عکس‌های چپ‌چین */
img.alignleft {
    float: left;
    margin-right: 20px; /* فاصله از متن */
    margin-bottom: 10px;
}

/* اطمینان از اینکه قالب override نکنه */
figure.aligncenter,
figure.alignleft,
figure.alignright {
    display: block;
    margin: 0 auto;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/soheilsadeghi-theme/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/soheilsadeghi-theme/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت با !important روی همه عناصر */
body, html,
h1, h2, h3, h4, h5, h6,
p, a, li, span, div,
header, footer, nav, section,
input, textarea, button {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
