/* استایل‌های اختصاصی وردپرس و المنتور */

.logo-custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* هدر در برگه‌ها و صفحات داخلی از ابتدا تیره و خوانا باشد */
body:not(.navab-front-page) .site-header {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

body:not(.navab-front-page) .menu-toggle span {
  background: var(--white);
}

.navab-page-shell {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3rem;
  width: 100%;
}

.navab-page-shell > .container {
  max-width: 100%;
  width: 100%;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

/* نوشته‌ها: عرض خوانا، نه تمام‌صفحه */
.navab-single-shell > .container.navab-single-layout {
  max-width: 720px;
  margin-inline: auto;
}

.navab-content-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}

.navab-page-header {
  margin-bottom: 1.25rem;
}

.navab-page-title {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.navab-single-thumb {
  margin: 0.5rem 0 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  width: 100%;
  height: auto;
  text-align: center;
}

.navab-single-thumb img,
.navab-single-thumb-img {
  position: static !important;
  inset: auto !important;
  display: block;
  width: auto !important;
  max-width: min(100%, 320px) !important;
  height: auto !important;
  max-height: 280px !important;
  margin-inline: auto !important;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.12);
}

@media (min-width: 768px) {
  .navab-single-thumb img,
  .navab-single-thumb-img {
    max-width: min(100%, 360px) !important;
    max-height: 320px !important;
  }
}

.static-cat {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.entry-content {
  color: var(--text-secondary);
  line-height: 1.9;
  width: 100%;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

.entry-content a {
  color: var(--teal);
  text-decoration: underline;
}

.entry-content img {
  border-radius: var(--radius-sm);
  max-width: 100%;
  height: auto;
}

.navab-archive-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .navab-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .navab-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.navab-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.navab-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navab-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 50px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--cream-dark);
  font-weight: 600;
}

.navab-pagination .page-numbers.current,
.navab-pagination .page-numbers:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.navab-empty {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.article-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-content h4 a {
  color: inherit;
  text-decoration: none;
}

/* المنتور — تمام‌عرض با فاصله کناری */
.navab-elementor-content {
  padding-top: var(--header-height);
  min-height: 50vh;
  width: 100%;
}

.navab-elementor-content .elementor-section.elementor-section-boxed > .elementor-container,
.navab-elementor-fullwidth .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.navab-elementor-content > .elementor {
  width: 100%;
}

body.elementor-editor-active .site-header,
body.elementor-editor-active .nav-mobile {
  display: none !important;
}

body.elementor-editor-active .navab-elementor-content {
  padding-top: 0;
}

.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
