/* ====== Font Setup: Vazir ====== */
@font-face {
  font-family: vazir;
  font-style: normal;
  font-weight: 100;
  src: url("fonts/Vazir-Thin.eot");
  src: url("fonts/Vazir-Thin.woff") format("woff"),
       url("fonts/Vazir-Thin.ttf") format("truetype"),
       url("fonts/Vazir-Thin.woff2") format("woff2");
}
/* دیگر وزن‌ها نیز مشابه همین تعریف شده‌اند... */

/* ====== Variables ====== */
:root {
  --primary-color: #072848;
  --secondary-color: #B79B48;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray: #6c757d;
  --white: #ffffff;
  --black: #000000;
  --light-gray: #e4e4e4;
  --text-color: #333;
  --dark-gray: #777;
}

/* ====== Base Styles ====== */
body {
  font-family: vazir, sans-serif;
  background-color: var(--light);
  color: var(--text-color);
  direction: rtl;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  color: var(--secondary-color);
}

/* ====== Bootstrap Customization ====== */
.navbar-brand {
    width: 100px; /* عرض دلخواه برای لوگو */
}

.navbar-brand img {
    width: 100% !important;  /* تصویر همیشه مطابق والد باشد */
    height: auto !important;  /* نسبت تصویر حفظ شود */
    max-height: 100px;        /* اختیاری، ارتفاع حداکثر */
    display: block;           /* حذف فاصله پایین img */
}

.navbar {
  background-color: var(--white);
}
.navbar .nav-link {
  color: var(--primary-color);
}
.navbar .nav-link:hover {
  color: var(--secondary-color);
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.pagination .page-link {
  color: var(--primary-color);
}
.pagination .active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(7,40,72,0.25);
}

/* ====== Newspaper Archive ====== */
.newspaper-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
.newspaper-archive-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.newspaper-archive-item:hover {
  transform: translateY(-5px);
}
.newspaper-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.newspaper-content {
  padding: 1.5rem;
}
.newspaper-title a {
  color: var(--text-color);
}

/* ====== Single Newspaper ====== */
.single-newspaper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.newspaper-main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.newspaper-cover {
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}
.newspaper-info {
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.newspaper-articles {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
}
.article-title a:hover {
  color: var(--primary-color);
}
.nav-previous a, .nav-next a {
  background: var(--light-gray);
  padding: 0.5rem 1rem;
  border-radius: 5px;
}
.nav-previous a:hover, .nav-next a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .newspaper-main-content {
    grid-template-columns: 1fr;
  }
  .article-thumbnail img {
    width: 100%;
    height: 200px;
  }
}

.nav-pills .nav-link {
  background-color: transparent;
  color: #072848;
  border: 1px solid #072848;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #072848;
  color: #fff;
}
.nav-pills .nav-link:hover {
  background-color: #072848;
  color: #fff;
}



/* Sidebar container */
#secondary, .sidebar, .widget-area {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* Each widget box */
.widget {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}
.widget:hover {
  transform: translateY(-3px);
}

/* Widget titles */
.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #072848;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #B79B48;
}

/* Lists inside widgets */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget ul li a {
  color: #072848;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.widget ul li a:hover {
  color: #B79B48;
}

/* Search widget input */
.widget_search input[type="search"],
.widget_search input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Tag cloud */
.widget_tag_cloud .tagcloud a {
  display: inline-block;
  background-color: #072848;
  color: #fff;
  padding: 0.4rem 0.7rem;
  margin: 0.2rem 0.3rem;
  font-size: 0.85rem !important;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.widget_tag_cloud .tagcloud a:hover {
  background-color: #B79B48;
}

/* Calendar widget */
.widget_calendar table {
  width: 100%;
  font-size: 0.9rem;
}
.widget_calendar caption {
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #072848;
}
/* Widget titles – smaller and balanced */
.widget-title {
  font-size: 1rem; /* قبلاً 1.1rem بود */
  font-weight: 600;
  color: #072848;
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #B79B48;
}
.wp-block-heading,
.wp-block-heading h2,
.wp-block-heading h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #072848;
  border-bottom: 2px solid #B79B48;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

/* Footer white background with dark/primary text and golden accents */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #ccc;
}

.site-footer h5 {
  font-size: 1.1rem;
  color: #072848;
  font-weight: bold;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #072848;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #B79B48;
}

.site-footer p {
  color: #444;
  font-size: 0.9rem;
}

.text-gold {
  color: #B79B48 !important;
}

.text-gold:hover {
  color: #072848 !important;
}

.comment-list {
  padding: 1rem 0;
  border-top: 1px solid #ccc;
}

.comment-list > div {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
	color:#000;
}

.card-img-top{
	 width: 100%;
  height: 100%;
  object-fit: cover;
}