/* وبلاگ XAIAX — استایل مستقل، مینیمال */

body.blog-page {
  background: #fff !important;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: #1a1a1a;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ستون محتوا: ۶۰٪ عرض = ۲۰٪ حاشیه از هر طرف */
.blog-col {
  width: 60%;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .blog-col {
    width: 88%;
  }
}

/* ——— ناوبری ——— */
.blog-page .navbar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none !important;
  padding: 0.75rem 0;
}

.blog-page .navbar:hover {
  box-shadow: none !important;
}

.blog-page .nav-container {
  width: 60%;
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

@media (max-width: 768px) {
  .blog-page .nav-container {
    width: 88%;
  }
}

.blog-page .nav-brand-name {
  color: #107abe;
  font-family: inherit;
}

.blog-page .nav-brand-tag {
  color: #666;
  font-size: 0.75rem;
}

.blog-page .nav-link {
  font-family: inherit;
  color: #666;
}

.blog-page .nav-link:hover,
.blog-page .nav-link.active {
  color: #107abe;
}

/* ——— بدنه ——— */
.blog-main {
  padding: 2.5rem 0 4rem;
}

.blog-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #107abe;
  margin: 0 0 0.75rem;
}

.blog-page-desc {
  font-size: 0.9375rem;
  color: #444;
  margin: 0 0 2rem;
  line-height: 1.85;
}

/* ——— فهرست مقالات ——— */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-list-item {
  border-bottom: 1px solid #e8e8e8;
}

.blog-list-item:first-child {
  border-top: 1px solid #e8e8e8;
}

.blog-list-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 0;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 560px) {
  .blog-list-link {
    flex-direction: row-reverse;
    align-items: center;
    gap: 1.5rem;
  }
}

.blog-list-thumb {
  flex-shrink: 0;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
}

.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 560px) {
  .blog-list-thumb {
    width: 140px;
  }
}

.blog-list-text {
  flex: 1;
  min-width: 0;
}

.blog-list-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.blog-list-link:hover .blog-list-title {
  color: #107abe;
}

.blog-list-excerpt {
  font-size: 0.875rem;
  color: #444;
  margin: 0;
  line-height: 1.8;
}

/* ——— مقاله ——— */
.blog-back {
  display: inline-block;
  font-size: 0.8125rem;
  color: #666;
  text-decoration: none;
  margin-bottom: 2rem;
}

.blog-back:hover {
  color: #107abe;
}

.blog-post h1 {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 800;
  color: #107abe;
  line-height: 1.45;
  margin: 0 0 1.5rem;
}

.blog-post-cover {
  margin: 0 0 2rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  line-height: 0;
}

.blog-post-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.blog-post-body {
  font-size: 1.0625rem;
  color: #2a2a2a;
  line-height: 1.9;
}

.blog-post-body p {
  margin: 0 0 1.25em;
}

.blog-post-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #107abe;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.5;
}

.blog-post-body blockquote {
  margin: 1.75rem 0;
  padding: 0.75rem 1rem;
  border-right: 3px solid #107abe;
  background: #f7fbfd;
  color: #107abe;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.85;
}

.blog-post-body strong {
  color: #107abe;
  font-weight: 700;
}

.blog-post-body ul {
  margin: 0 0 1.25em;
  padding-right: 1.25em;
}

.blog-post-body li {
  margin-bottom: 0.35em;
}

.blog-post-body a {
  color: #107abe;
}

.blog-fig {
  margin: 2rem 0;
  text-align: center;
}

.blog-fig img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.blog-fig-cap {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #555;
}

.blog-post-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.75;
}

/* ——— CTA ——— */
.blog-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.blog-cta p {
  font-size: 0.9375rem;
  color: #444;
  margin: 0 0 1rem;
}

.blog-cta .blog-btn {
  display: inline-block;
  padding: 0.625rem 1.75rem;
  background: #107abe;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  width: auto !important;
}

.blog-cta .blog-btn:hover {
  background: #0d6699;
  transform: none;
  box-shadow: none;
}

.blog-cta .blog-btn-secondary {
  background: #fff;
  color: #107abe !important;
  border: 1px solid #107abe;
}

.blog-cta .blog-btn-secondary:hover {
  background: #f0f7fc;
}

/* ——— فوتر ——— */
.blog-foot {
  border-top: 1px solid #e8e8e8;
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #666;
}

.blog-foot .blog-col {
  padding: 0;
}

.blog-foot a {
  color: #107abe;
  text-decoration: none;
}

.blog-foot a:hover {
  text-decoration: underline;
}

/* ——— FAQ پایان مقاله ——— */
.blog-faq {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8e8e8;
}

.blog-faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 0.625rem;
  background: #fafafa;
}

.blog-faq-item summary {
  padding: 0.875rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.blog-faq-item summary::-webkit-details-marker {
  display: none;
}

.blog-faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #555;
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ——— مقالات مرتبط ——— */
.blog-related {
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #f8fbfd;
}

.blog-related h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #107abe;
  margin: 0 0 0.75rem;
}

.blog-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-related li {
  margin-bottom: 0.5rem;
}

.blog-related li:last-child {
  margin-bottom: 0;
}

.blog-related a {
  color: #107abe;
  text-decoration: none;
  font-size: 0.9375rem;
}

.blog-related a:hover {
  text-decoration: underline;
}
