@font-face {
  font-family: "IRANSans";
  src: url("/fonts/IRANSans/IRANSansWeb-FaNum.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("/fonts/IRANSans/IRANSansWeb-FaNum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("/fonts/IRANSans/IRANSansWeb-FaNum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blog-accent: #4779c4;
  --blog-accent-2: #1b2d48;
  --blog-bg: #f5f5f5;
  --blog-text: #1d1d1f;
  --blog-muted: #777;
}

html[dir="rtl"] body,
html[dir="rtl"] body *,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] textarea {
  font-family: "IRANSans", Tahoma, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

html[dir="rtl"] body {
  background: var(--blog-bg);
  color: var(--blog-text);
  text-align: right;
}

body.blog-detail-body #page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

body.blog-detail-body .blog-detail-page {
  flex: 1 0 auto;
}

html[dir="rtl"] .container {
  max-width: 1180px;
  width: 94%;
}

#fh5co-footer {
  background: var(--blog-accent);
  color: #fff;
  float: left;
  padding: 18px 0;
  text-align: center;
  width: 100%;
}

#fh5co-footer p {
  color: #fff;
  margin: 0;
}

#fh5co-footer a {
  color: #fff !important;
}

.blog-ticker,
.blog-nav-tools {
  display: none !important;
}

.blog-nav {
  background: #fff;
  border-bottom: 1px solid #eeeeee;
}

.blog-nav-row {
  align-items: center;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  min-height: 96px;
}

.blog-brand {
  color: #252534;
  font-size: 32px;
  font-weight: 700;
  justify-self: end;
  line-height: 1;
}

.blog-brand:before {
  background: var(--blog-accent-2);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(27, 45, 72, 0.22);
  content: "MB";
  color: #fff;
  display: inline-grid;
  font-size: 18px;
  font-weight: 700;
  height: 58px;
  margin-left: 12px;
  place-items: center;
  transform: rotate(4deg);
  width: 58px;
}

.blog-nav-links {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.blog-nav-links a {
  color: #363645;
  font-size: 14px;
  font-weight: 500;
}

.blog-nav a:hover {
  color: var(--blog-accent-2);
}

.blog-news-hero {
  background: #f4f4f4;
  padding: 26px 0 40px;
}

.blog-top-grid {
  direction: ltr;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  min-height: 386px;
}

.blog-lead-story,
.blog-mini-story {
  background-position: center;
  background-size: cover;
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.blog-lead-story {
  grid-column: 2;
  grid-row: 1;
  min-height: 386px;
}

.blog-mini-stack {
  display: grid;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.blog-mini-story:first-child {
  grid-column: 1 / 3;
}

.blog-lead-story:before,
.blog-mini-story:before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82));
  content: "";
  inset: 0;
  position: absolute;
}

.blog-lead-story > *,
.blog-mini-story > * {
  direction: rtl;
  position: relative;
  z-index: 1;
}

.blog-lead-story span,
.blog-mini-story span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 11px;
}

.blog-lead-story h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.95;
  margin: 0;
}

.blog-mini-story {
  min-height: 180px;
  padding: 18px;
}

.blog-mini-story h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.95;
  margin: 0;
}

.blog-list-page {
  background: var(--blog-bg);
  padding: 40px 0 88px;
}

.blog-list-page .row {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
}

.blog-list-page .col-md-8 {
  float: none;
  order: 1;
}

.blog-list-page .col-md-4 {
  float: none;
  order: 2;
}

.blog-section-title,
.blog-side-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.035);
}

.blog-section-title {
  align-items: center;
  border-right: 4px solid var(--blog-accent);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 54px;
  padding: 0 22px;
}

.blog-section-title h2 {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.blog-section-title span {
  color: var(--blog-muted);
  font-size: 12px;
}

.blog-post-list {
  display: grid;
  gap: 14px;
}

.blog-card {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.035);
  display: grid;
  gap: 20px;
  grid-template-columns: 230px 1fr;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.blog-card-image {
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  display: block;
  height: 148px;
}

.blog-card-body {
  padding: 6px 0 6px 8px;
}

.blog-meta {
  align-items: center;
  border-bottom: 1px dashed #e1e1e1;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.blog-meta span,
.blog-detail-meta span {
  color: #777;
  font-size: 12px;
}

.blog-meta a,
.blog-detail-meta a {
  color: var(--blog-accent);
  font-size: 12px;
  font-weight: 700;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
  margin: 0 0 8px;
}

.blog-card h3 a,
.blog-side-panel a {
  color: #1d1d1f;
}

.blog-card-body p {
  color: #666;
  font-size: 13px;
  line-height: 2;
  margin: 0 0 8px;
}

.blog-read-more {
  color: var(--blog-accent);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
}

.blog-pagination {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.035);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
}

.blog-pagination-info {
  color: var(--blog-muted);
  font-size: 12px;
  white-space: nowrap;
}

.blog-pagination-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.blog-page-link,
.blog-page-dots {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0 12px;
}

.blog-page-link {
  background: #f2f6fc;
  border: 1px solid #e5edf8;
  color: var(--blog-accent-2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-page-link:hover,
.blog-page-link.active {
  background: var(--blog-accent);
  border-color: var(--blog-accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.blog-page-link.disabled {
  background: #f5f5f5;
  border-color: #ededed;
  color: #b0b0b0 !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.blog-page-dots {
  color: #9a9a9a;
  min-width: 22px;
  padding: 0;
}

.blog-side-panel,
.blog-empty {
  margin-bottom: 24px;
  padding: 24px 22px;
}

.blog-side-panel h3,
.blog-empty h2 {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 18px;
  position: relative;
}

.blog-side-panel h3:after,
.blog-empty h2:after {
  background: var(--blog-accent);
  border-radius: 8px;
  content: "";
  height: 24px;
  position: absolute;
  right: -22px;
  top: -2px;
  width: 3px;
}

.blog-sidebar-search {
  display: grid;
  gap: 8px;
}

.blog-sidebar-search input {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  color: #555;
  height: 38px;
  outline: 0;
  padding: 0 12px;
}

.blog-sidebar-search button {
  background: var(--blog-accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  height: 34px;
}

.blog-side-panel > a {
  border-bottom: 0;
  color: #686868;
  display: block;
  font-size: 13px;
  line-height: 2.1;
  padding: 4px 0;
}

.blog-side-panel > a.active,
.blog-side-panel > a:hover {
  color: var(--blog-accent);
}

.blog-hot-link {
  border-top: 1px solid #efefef !important;
  padding: 10px 0 !important;
}

.blog-hot-link span {
  color: #999;
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}

.blog-detail-page {
  background: var(--blog-bg);
  padding: 24px 0 48px;
}

.blog-breadcrumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.025);
  color: #9b9b9b;
  font-size: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 12px 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-breadcrumb a {
  color: #777;
}

.blog-breadcrumb strong {
  color: #777;
  font-weight: 400;
}

.blog-detail-layout {
  align-items: flex-start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 880px;
}

.blog-detail-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.035);
  direction: rtl;
  padding: 30px;
}

.blog-detail-card h1 {
  color: #1d1d1f;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.9;
  margin: 0 0 22px;
}

.blog-detail-image {
  border-radius: 12px;
  display: block;
  max-height: 430px;
  object-fit: cover;
  width: 100%;
}

.blog-detail-meta {
  align-items: center;
  border-bottom: 1px dashed #e1e1e1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 22px;
  padding-bottom: 14px;
}

.blog-content {
  color: #333;
  font-size: 18px;
  line-height: 2.3;
}

.blog-content img {
  height: auto;
  margin: 24px 0;
  max-width: 100%;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: #000;
  font-weight: 700;
  line-height: 1.85;
  margin-top: 36px;
}

.blog-content blockquote {
  background: #fafafa;
  border-left: 0;
  border-right: 4px solid var(--blog-accent);
  color: #555;
  font-size: 18px;
  margin: 28px 0;
  padding: 18px 24px;
}

.blog-comments {
  border-top: 1px solid #ededed;
  margin-top: 42px;
  padding-top: 28px;
}

.blog-comments-title {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.blog-comments-title h2 {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.blog-comments-title span,
.blog-comment-item span,
.blog-comment-empty {
  color: #777;
  font-size: 12px;
}

.blog-comment-message {
  background: #edf4ff;
  border-radius: 10px;
  color: var(--blog-accent-2);
  font-size: 13px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.blog-comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.blog-comment-item {
  background: #f8fafc;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  padding: 14px 16px;
}

.blog-comment-item div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.blog-comment-item strong {
  color: #1d1d1f;
  font-size: 14px;
}

.blog-comment-item p,
.blog-comment-empty {
  line-height: 2;
  margin: 0;
}

.blog-comment-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.blog-comment-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.blog-comment-form input,
.blog-comment-form textarea {
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  color: #333;
  outline: 0;
  padding: 12px 14px;
  width: 100%;
}

.blog-comment-form textarea {
  resize: vertical;
}

.blog-comment-form button {
  background: var(--blog-accent);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  min-height: 42px;
  padding: 0 22px;
  justify-self: start;
}

.blog-video {
  height: 0;
  margin-bottom: 42px;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
}

.blog-video iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.blog-return {
  margin: 42px 0 0;
  text-align: center;
}

.blog-return a {
  align-items: center;
  background: linear-gradient(135deg, var(--blog-accent), var(--blog-accent-2));
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(27, 45, 72, 0.16);
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-return a:before {
  content: "\2190";
  direction: ltr;
  font-family: Arial, sans-serif !important;
  font-size: 17px;
  margin-left: 10px;
}

.blog-return a:hover {
  box-shadow: 0 18px 36px rgba(27, 45, 72, 0.22);
  color: #fff !important;
  transform: translateY(-2px);
}

@media screen and (max-width: 992px) {
  .blog-nav-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .blog-brand,
  .blog-nav-links {
    justify-self: center;
  }

  .blog-top-grid,
  .blog-card,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-top-grid {
    direction: rtl;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
  }

  .blog-lead-story,
  .blog-mini-stack,
  .blog-mini-story {
    flex: none !important;
    grid-column: auto;
    grid-row: auto;
  }

  .blog-mini-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
    width: 100%;
  }

  .blog-mini-story:first-child {
    grid-column: auto;
  }

  .blog-lead-story {
    aspect-ratio: 16 / 10;
    background-color: #111827;
    background-repeat: no-repeat;
    background-size: contain !important;
    min-height: 260px;
    width: 100%;
  }

  .blog-mini-story {
    aspect-ratio: 16 / 9;
    background-color: #111827;
    background-repeat: no-repeat;
    background-size: contain !important;
    min-height: 190px;
    width: 100%;
  }

  .blog-list-page .row {
    display: block;
  }

  .blog-card {
    align-items: stretch;
  }

  .blog-card-image {
    aspect-ratio: 16 / 9;
    background-color: #f0f3f8;
    background-repeat: no-repeat;
    background-size: contain !important;
    height: auto;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .blog-nav-links {
    gap: 18px;
  }

  .blog-brand {
    font-size: 28px;
  }

  .blog-brand:before {
    height: 48px;
    width: 48px;
  }

  .blog-news-hero {
    padding-top: 18px;
  }

  .blog-top-grid {
    gap: 14px;
  }

  .blog-lead-story {
    aspect-ratio: 16 / 10;
    min-height: 0;
    padding: 18px;
  }

  .blog-mini-story {
    aspect-ratio: 16 / 10;
    min-height: 0;
    padding: 18px;
  }

  .blog-mini-story h3 {
    font-size: 14px;
  }

  .blog-card {
    gap: 14px;
    padding: 10px;
  }

  .blog-card-image {
    aspect-ratio: 4 / 3;
  }

  .blog-comments-title,
  .blog-comment-item div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .blog-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-pagination-list {
    justify-content: center;
  }

  .blog-comment-grid {
    grid-template-columns: 1fr;
  }

  .blog-detail-card {
    padding: 20px;
  }

  .blog-content {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .blog-news-hero .container,
  .blog-list-page .container,
  .blog-detail-page .container {
    width: calc(100% - 24px);
  }

  .blog-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-lead-story,
  .blog-mini-story {
    border-radius: 12px;
    width: 100%;
  }

  .blog-lead-story {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .blog-mini-story {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .blog-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-page-link,
  .blog-page-dots {
    height: 34px;
    min-width: 34px;
    padding: 0 10px;
  }
}
