/* ===================================
   استایل صفحات مقالات
   بر اساس منطق طراحی style.css و blog.css
   =================================== */

:root {
  --article-primary-color: #41226b;
  --article-secondary-color: #fac402;
  --article-text-color: #252525;
  --article-text-muted: #707070;
  --article-border-color: #ebebeb;
  --article-bg-light: #f6f6f6;
  --article-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* ===================================
   بخش هدر صفحه مقالات
   =================================== */
.articles-header {
  background: linear-gradient(135deg, var(--article-primary-color) 0%, #5a3585 100%);
  padding: 60px 0 40px;
  /*margin-top: 120px;*/
  position: relative;
  overflow: hidden;
}

.articles-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(250, 196, 2, 0.1);
  border-radius: 50%;
}

.articles-header::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(250, 196, 2, 0.05);
  border-radius: 50%;
}

.articles-header .container {
  position: relative;
  z-index: 2;
}

.articles-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
}

.articles-header p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 0;
}

/* ===================================
   بخش محتوای اصلی
   =================================== */
.articles-container {
  background-color: var(--article-bg-light);
  padding: 40px 0 60px;
  min-height: 600px;
}

/* ===================================
   کارت مقاله اصلی (Featured)
   =================================== */
.article-featured {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--article-shadow);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid var(--article-border-color);
}

.article-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.article-featured .article-img {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.article-featured .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-featured:hover .article-img img {
  transform: scale(1.08);
}

.article-featured .article-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--article-primary-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.article-featured .article-body {
  padding: 30px;
}

.article-featured .article-date {
  color: var(--article-text-muted);
  font-size: 13px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-featured .article-date i {
  color: var(--article-secondary-color);
}

.article-featured .article-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--article-text-color);
  margin-bottom: 15px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.article-featured .article-title:hover {
  color: var(--article-primary-color);
}

.article-featured .article-excerpt {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-featured .article-btn {
  background: linear-gradient(135deg, var(--article-primary-color) 0%, #5a3585 100%);
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-featured .article-btn:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 20px rgba(65, 34, 107, 0.3);
  color: #fff;
}

/* ===================================
   کارت‌های مقالات عادی
   =================================== */
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border: 1px solid var(--article-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--article-secondary-color);
}

.article-card .article-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.article-card .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img img {
  transform: scale(1.1);
}

.article-card .article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .article-date {
  color: var(--article-text-muted);
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card .article-date i {
  color: var(--article-secondary-color);
  font-size: 11px;
}

.article-card .article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--article-text-color);
  margin-bottom: 12px;
  line-height: 1.6;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-card .article-title:hover {
  color: var(--article-primary-color);
}

.article-card .article-excerpt {
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex: 1;
}

.article-card .article-btn {
  background-color: transparent;
  color: var(--article-primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--article-primary-color);
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  align-self: flex-start;
}

.article-card .article-btn:hover {
  background-color: var(--article-primary-color);
  color: #fff;
  transform: translateX(-3px);
}

/* ===================================
   سایدبار
   =================================== */
.article-sidebar {
  position: sticky;
  top: 140px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  border: 1px solid var(--article-border-color);
}

.sidebar-widget .widget-header {
  background: linear-gradient(135deg, var(--article-primary-color) 0%, #5a3585 100%);
  color: #fff;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-widget .widget-body {
  padding: 20px;
}

/* جستجو در سایدبار */
.sidebar-search .search-form {
  display: flex;
  gap: 0;
  border: 2px solid var(--article-border-color);
  border-radius: 25px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.sidebar-search .search-form:focus-within {
  border-color: var(--article-primary-color);
}

.sidebar-search .search-input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 13px;
  background: transparent;
}

.sidebar-search .search-input:focus {
  outline: none;
}

.sidebar-search .search-btn {
  background: var(--article-secondary-color);
  color: var(--article-text-color);
  border: none;
  padding: 12px 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-search .search-btn:hover {
  background: #e5b802;
}

/* دسته‌بندی‌ها در سایدبار */
.sidebar-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories ul li {
  margin-bottom: 12px;
  position: relative;
  padding-right: 18px;
}

.sidebar-categories ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--article-secondary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.sidebar-categories ul li:hover::before {
  background: var(--article-primary-color);
  transform: translateY(-50%) scale(1.3);
}

.sidebar-categories ul li a {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.sidebar-categories ul li a:hover {
  color: var(--article-primary-color);
  padding-right: 5px;
}

/* ویجت اشتراک‌گذاری در سایدبار */
.sidebar-share .share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-share .share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid;
}

.sidebar-share .share-btn i {
  font-size: 18px;
}

.sidebar-share .share-telegram {
  background: rgba(0, 136, 204, 0.1);
  border-color: #0088cc;
  color: #0088cc;
}

.sidebar-share .share-telegram:hover {
  background: #0088cc;
  color: #fff;
  transform: translateX(-5px);
}

.sidebar-share .share-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
  color: #25d366;
}

.sidebar-share .share-whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: translateX(-5px);
}

.sidebar-share .share-twitter {
  background: rgba(29, 161, 242, 0.1);
  border-color: #1da1f2;
  color: #1da1f2;
}

.sidebar-share .share-twitter:hover {
  background: #1da1f2;
  color: #fff;
  transform: translateX(-5px);
}

/* ===================================
   صفحه نمایش تک مقاله
   =================================== */

/* هدر مقاله */
.article-single-header {
  background-color: var(--article-bg-light);
  padding: 25px 0;
  /*margin-top: 120px;*/
  border-bottom: 1px solid var(--article-border-color);
}

.article-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.article-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-breadcrumb .breadcrumb-item a {
  color: var(--article-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-breadcrumb .breadcrumb-item a:hover {
  color: var(--article-primary-color);
}

.article-breadcrumb .breadcrumb-item.active {
  color: var(--article-text-color);
  font-weight: 600;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--article-text-muted);
  margin-left: 8px;
}

/* محتوای اصلی مقاله */
.article-single-container {
  background-color: var(--article-bg-light);
  padding: 40px 0 60px;
  min-height: 600px;
}

.article-single-post {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--article-shadow);
  padding: 0;
  margin-bottom: 30px;
}

.article-single-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.article-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-single-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--article-text-color);
  line-height: 1.6;
  margin: 30px 30px 20px;
}

.article-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 30px;
  border-top: 1px solid var(--article-border-color);
  border-bottom: 1px solid var(--article-border-color);
  margin: 0 30px;
}

.article-single-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--article-text-muted);
  font-size: 14px;
  text-decoration: none;
}

.article-single-meta .meta-item i {
  color: var(--article-secondary-color);
  font-size: 15px;
}

.article-single-meta .meta-link {
  transition: color 0.3s ease;
}

.article-single-meta .meta-link:hover {
  color: var(--article-primary-color);
}

/* دکمه‌های اشتراک‌گذاری */
.article-single-share {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  flex-wrap: wrap;
}

.article-single-share .share-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--article-text-color);
}

.article-single-share .share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-single-share .share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.article-single-share .share-telegram {
  background: rgba(0, 136, 204, 0.1);
  border-color: #0088cc;
  color: #0088cc;
}

.article-single-share .share-telegram:hover {
  background: #0088cc;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.article-single-share .share-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
  color: #25d366;
}

.article-single-share .share-whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.article-single-share .share-twitter {
  background: rgba(29, 161, 242, 0.1);
  border-color: #1da1f2;
  color: #1da1f2;
}

.article-single-share .share-twitter:hover {
  background: #1da1f2;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

/* ===================================
   محتوای مقاله (از ادیتور)
   =================================== */
.article-single-content {
  padding: 30px;
  line-height: 2;
  color: #333;
  font-size: 16px;
}

/* پاراگراف‌ها */
.article-single-content p {
  margin-bottom: 20px;
  text-align: justify;
  line-height: 2;
}

.article-single-content p:last-child {
  margin-bottom: 0;
}

/* تیترها */
.article-single-content h1,
.article-single-content h2,
.article-single-content h3,
.article-single-content h4,
.article-single-content h5,
.article-single-content h6 {
  font-weight: 800;
  color: var(--article-text-color);
  margin-top: 35px;
  margin-bottom: 18px;
  line-height: 1.5;
  position: relative;
  padding-right: 15px;
}

.article-single-content h1::before,
.article-single-content h2::before,
.article-single-content h3::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: linear-gradient(to bottom, var(--article-primary-color), var(--article-secondary-color));
  border-radius: 3px;
}

.article-single-content h1 {
  font-size: 32px;
}

.article-single-content h2 {
  font-size: 26px;
}

.article-single-content h3 {
  font-size: 22px;
}

.article-single-content h4 {
  font-size: 19px;
}

.article-single-content h5 {
  font-size: 17px;
}

.article-single-content h6 {
  font-size: 15px;
}

/* تصاویر */
.article-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 25px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.article-single-content figure {
  margin: 30px 0;
  text-align: center;
}

.article-single-content figure img {
  margin: 0 auto 15px;
}

.article-single-content figcaption {
  font-size: 14px;
  color: var(--article-text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}

/* لیست‌ها */
.article-single-content ul,
.article-single-content ol {
  margin: 25px 0;
  padding-right: 30px;
}

.article-single-content ul {
  list-style-type: none;
}

.article-single-content ul li {
  position: relative;
  padding-right: 25px;
  margin-bottom: 12px;
  line-height: 1.9;
}

.article-single-content ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--article-secondary-color);
  border-radius: 50%;
}

.article-single-content ol {
  list-style: none;
  counter-reset: item;
}

.article-single-content ol li {
  position: relative;
  padding-right: 35px;
  margin-bottom: 12px;
  line-height: 1.9;
  counter-increment: item;
}

.article-single-content ol li::before {
  content: counter(item);
  position: absolute;
  right: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, var(--article-primary-color), #5a3585);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.article-single-content ul ul,
.article-single-content ol ol,
.article-single-content ul ol,
.article-single-content ol ul {
  margin: 10px 0;
  padding-right: 25px;
}

/* لینک‌ها */
.article-single-content a {
  color: var(--article-primary-color);
  text-decoration: underline;
  transition: all 0.3s ease;
  font-weight: 600;
}

.article-single-content a:hover {
  color: var(--article-secondary-color);
  text-decoration: none;
}

/* نقل قول */
.article-single-content blockquote {
  background: linear-gradient(to right, rgba(65, 34, 107, 0.05), transparent);
  border-right: 5px solid var(--article-primary-color);
  padding: 25px 30px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
  border-radius: 8px;
  position: relative;
  font-size: 17px;
  line-height: 1.9;
}

.article-single-content blockquote::before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 30px;
  color: var(--article-primary-color);
  opacity: 0.2;
}

.article-single-content blockquote p {
  margin-bottom: 0;
}

.article-single-content blockquote cite {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: var(--article-text-muted);
  font-style: normal;
  font-weight: 600;
}

.article-single-content blockquote cite::before {
  content: "—";
  margin-left: 5px;
}

/* جداول */
.article-single-content table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.article-single-content table thead {
  background: linear-gradient(135deg, var(--article-primary-color), #5a3585);
}

.article-single-content table thead th {
  color: #fff;
  font-weight: 700;
  padding: 15px 20px;
  text-align: right;
  font-size: 15px;
  border-bottom: 3px solid var(--article-secondary-color);
}

.article-single-content table tbody tr {
  border-bottom: 1px solid var(--article-border-color);
  transition: background 0.3s ease;
}

.article-single-content table tbody tr:hover {
  background: rgba(65, 34, 107, 0.03);
}

.article-single-content table tbody tr:last-child {
  border-bottom: none;
}

.article-single-content table td {
  padding: 15px 20px;
  text-align: right;
  color: #333;
  font-size: 14px;
}

.article-single-content table tbody tr:nth-child(even) {
  background: rgba(246, 246, 246, 0.5);
}

/* کد */
.article-single-content code {
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #e01e5a;
  border: 1px solid #e0e0e0;
}

.article-single-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
  border-right: 4px solid var(--article-secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-single-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
  font-size: 14px;
  line-height: 1.6;
}

/* خط افقی */
.article-single-content hr {
  border: none;
  height: 3px;
  background: linear-gradient(to left, transparent, var(--article-primary-color), transparent);
  margin: 40px 0;
  border-radius: 2px;
}

/* متن‌های قالب‌بندی شده */
.article-single-content strong,
.article-single-content b {
  font-weight: 800;
  color: var(--article-text-color);
}

.article-single-content em,
.article-single-content i {
  font-style: italic;
}

.article-single-content mark {
  background: rgba(250, 196, 2, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--article-text-color);
}

.article-single-content del {
  text-decoration: line-through;
  color: #999;
}

.article-single-content ins {
  text-decoration: underline;
  color: var(--article-primary-color);
}

.article-single-content small {
  font-size: 85%;
  color: var(--article-text-muted);
}

.article-single-content sup,
.article-single-content sub {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.article-single-content sup {
  top: -0.5em;
}

.article-single-content sub {
  bottom: -0.25em;
}

/* کادرهای اطلاعاتی */
.article-single-content .info-box,
.article-single-content .note,
.article-single-content .warning,
.article-single-content .tip {
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 8px;
  border-right: 5px solid;
  position: relative;
  padding-right: 60px;
}

.article-single-content .info-box::before,
.article-single-content .note::before,
.article-single-content .warning::before,
.article-single-content .tip::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.article-single-content .info-box {
  background: rgba(33, 150, 243, 0.1);
  border-color: #2196f3;
  color: #1976d2;
}

.article-single-content .info-box::before {
  content: "\f05a";
  color: #2196f3;
}

.article-single-content .note {
  background: rgba(255, 152, 0, 0.1);
  border-color: #ff9800;
  color: #f57c00;
}

.article-single-content .note::before {
  content: "\f249";
  color: #ff9800;
}

.article-single-content .warning {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  color: #d32f2f;
}

.article-single-content .warning::before {
  content: "\f071";
  color: #f44336;
}

.article-single-content .tip {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
  color: #388e3c;
}

.article-single-content .tip::before {
  content: "\f0eb";
  color: #4caf50;
}

/* ویدیو و iframe */
.article-single-content iframe,
.article-single-content video {
  max-width: 100%;
  border-radius: 10px;
  margin: 25px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-single-content .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 25px 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-single-content .video-container iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 10px;
}

/* دکمه‌ها */
.article-single-content .btn,
.article-single-content button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--article-primary-color), #5a3585);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
}

.article-single-content .btn:hover,
.article-single-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(65, 34, 107, 0.3);
  color: #fff;
}

/* لیست تعریف */
.article-single-content dl {
  margin: 25px 0;
}

.article-single-content dt {
  font-weight: 800;
  color: var(--article-text-color);
  margin-bottom: 8px;
  font-size: 16px;
}

.article-single-content dd {
  margin-right: 20px;
  margin-bottom: 15px;
  color: #666;
  line-height: 1.8;
}

/* آدرس و اطلاعات تماس */
.article-single-content address {
  background: rgba(65, 34, 107, 0.05);
  padding: 20px;
  border-radius: 8px;
  border-right: 4px solid var(--article-primary-color);
  margin: 25px 0;
  font-style: normal;
  line-height: 2;
}

/* متن از پیش قالب‌بندی شده */
.article-single-content kbd {
  background: #2d2d2d;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.article-single-content samp {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.article-single-content var {
  color: var(--article-primary-color);
  font-style: italic;
  font-weight: 600;
}

/* تگ abbr */
.article-single-content abbr {
  text-decoration: none;
  border-bottom: 2px dotted var(--article-primary-color);
  cursor: help;
}

/* فرم‌ها */
.article-single-content input[type="text"],
.article-single-content input[type="email"],
.article-single-content input[type="url"],
.article-single-content input[type="number"],
.article-single-content textarea,
.article-single-content select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--article-border-color);
  border-radius: 8px;
  font-size: 15px;
  font-family: "IRANSans";
  transition: border-color 0.3s ease;
  margin-bottom: 15px;
}

.article-single-content input[type="text"]:focus,
.article-single-content input[type="email"]:focus,
.article-single-content input[type="url"]:focus,
.article-single-content input[type="number"]:focus,
.article-single-content textarea:focus,
.article-single-content select:focus {
  border-color: var(--article-primary-color);
  outline: none;
}

.article-single-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--article-text-color);
}

/* Responsive برای محتوای مقاله */
@media screen and (max-width: 767.99px) {
  .article-single-content {
    padding: 15px;
    font-size: 14px;
  }

  .article-single-content h1 {
    font-size: 24px;
  }

  .article-single-content h2 {
    font-size: 22px;
  }

  .article-single-content h3 {
    font-size: 19px;
  }

  .article-single-content h4 {
    font-size: 17px;
  }

  .article-single-content table {
    font-size: 12px;
  }

  .article-single-content table thead th,
  .article-single-content table td {
    padding: 10px 12px;
  }

  .article-single-content blockquote {
    padding: 15px 20px;
    font-size: 15px;
  }

  .article-single-content pre {
    padding: 15px;
    font-size: 12px;
  }
}

/* بخش نظرات */
.article-comments-section {
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--article-shadow);
  padding: 30px;
  margin-top: 30px;
}

.article-comments-section .comments-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--article-border-color);
}

.article-comments-section .comments-header i {
  font-size: 24px;
  color: var(--article-secondary-color);
}

.article-comments-section .comments-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--article-text-color);
  margin: 0;
}

/* ویجت برچسب‌ها */
.sidebar-tags .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-tags .tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: rgba(65, 34, 107, 0.08);
  border: 1px solid var(--article-border-color);
  border-radius: 20px;
  color: var(--article-text-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-tags .tag-item i {
  font-size: 11px;
  color: var(--article-primary-color);
}

.sidebar-tags .tag-item:hover {
  background: var(--article-primary-color);
  border-color: var(--article-primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.sidebar-tags .tag-item:hover i {
  color: #fff;
}

/* ویجت مقالات اخیر و مرتبط */
.sidebar-recent-posts .recent-posts-list,
.sidebar-related-posts .recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--article-border-color);
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-item .post-thumb {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.recent-post-item .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-item:hover .post-thumb img {
  transform: scale(1.1);
}

.recent-post-item .post-category {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--article-primary-color);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.recent-post-item .post-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-post-item .post-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.recent-post-item .post-title a {
  color: var(--article-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-item .post-title a:hover {
  color: var(--article-primary-color);
}

.recent-post-item .post-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--article-text-muted);
}

.recent-post-item .post-date i {
  color: var(--article-secondary-color);
  font-size: 11px;
}

/* ===================================
   پیجینیشن
   =================================== */
.articles-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.articles-pagination .pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.articles-pagination .page-item {
  margin: 0;
}

.articles-pagination .page-link {
  border: 2px solid var(--article-border-color);
  background: #fff;
  color: var(--article-text-color);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.articles-pagination .page-link:hover {
  border-color: var(--article-primary-color);
  background: var(--article-primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.articles-pagination .page-item.active .page-link {
  border-color: var(--article-primary-color);
  background: var(--article-primary-color);
  color: #fff;
}

.articles-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===================================
   پیام خالی بودن
   =================================== */
.articles-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--article-shadow);
}

.articles-empty i {
  font-size: 80px;
  color: var(--article-border-color);
  margin-bottom: 20px;
}

.articles-empty h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--article-text-color);
  margin-bottom: 10px;
}

.articles-empty p {
  font-size: 15px;
  color: var(--article-text-muted);
}

/* ===================================
   ریسپانسیو
   =================================== */
@media screen and (max-width: 991.99px) {
  .articles-header {
    margin-top: 80px;
    padding: 40px 0 30px;
  }

  .articles-header h1 {
    font-size: 26px;
  }

  .articles-header p {
    font-size: 14px;
  }

  .article-featured .article-img {
    height: 250px;
  }

  .article-featured .article-body {
    padding: 20px;
  }

  .article-featured .article-title {
    font-size: 22px;
  }

  .article-card .article-img {
    height: 200px;
  }

  .article-sidebar {
    position: static;
    margin-top: 30px;
  }

  /* صفحه نمایش مقاله */
  .article-single-header {
    margin-top: 80px;
    padding: 20px 0;
  }

  .article-single-image {
    height: 300px;
  }

  .article-single-title {
    font-size: 26px;
    margin: 20px 20px 15px;
  }

  .article-single-meta {
    padding: 15px 20px;
    margin: 0 20px;
    gap: 15px;
  }

  .article-single-share {
    padding: 15px 20px;
  }

  .article-single-content {
    padding: 20px;
    font-size: 15px;
  }

  .article-comments-section {
    padding: 20px;
  }
}

@media screen and (max-width: 767.99px) {
  .articles-header {
    margin-top: 70px;
    padding: 30px 0 20px;
  }

  .articles-header h1 {
    font-size: 22px;
  }

  .articles-header p {
    font-size: 13px;
  }

  .articles-container {
    padding: 30px 0 40px;
  }

  .article-featured .article-img {
    height: 200px;
  }

  .article-featured .article-body {
    padding: 15px;
  }

  .article-featured .article-title {
    font-size: 20px;
  }

  .article-featured .article-excerpt {
    font-size: 14px;
  }

  .article-card .article-img {
    height: 180px;
  }

  .article-card .article-body {
    padding: 15px;
  }

  .article-card .article-title {
    font-size: 16px;
  }

  .sidebar-widget .widget-header {
    font-size: 15px;
    padding: 12px 15px;
  }

  .sidebar-widget .widget-body {
    padding: 15px;
  }

  /* صفحه نمایش مقاله */
  .article-single-header {
    margin-top: 70px;
    padding: 15px 0;
  }

  .article-breadcrumb .breadcrumb {
    font-size: 12px;
  }

  .article-single-image {
    height: 220px;
  }

  .article-single-title {
    font-size: 22px;
    margin: 15px 15px 12px;
  }

  .article-single-meta {
    padding: 12px 15px;
    margin: 0 15px;
    gap: 12px;
  }

  .article-single-meta .meta-item {
    font-size: 12px;
  }

  .article-single-share {
    padding: 12px 15px;
    gap: 10px;
  }

  .article-single-share .share-label {
    font-size: 13px;
  }

  .article-single-share .share-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .article-single-content {
    padding: 15px;
    font-size: 14px;
  }

  .article-single-content h2 {
    font-size: 22px;
  }

  .article-single-content h3 {
    font-size: 19px;
  }

  .article-single-content h4 {
    font-size: 17px;
  }

  .article-comments-section {
    padding: 15px;
  }

  .article-comments-section .comments-header h3 {
    font-size: 19px;
  }

  .recent-post-item .post-thumb {
    width: 80px;
    height: 65px;
  }

  .recent-post-item .post-title {
    font-size: 13px;
  }
}

@media screen and (max-width: 575.99px) {
  .article-featured .article-btn,
  .article-card .article-btn {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  .articles-pagination .page-link {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ===================================
   انیمیشن‌ها
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-featured,
.article-card {
  animation: fadeInUp 0.6s ease both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
