/* ==========================================================================
   ۱. بنر بالای صفحه (Top Banner)
   ========================================================================== */
.mp-topbanner {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f4f5f0 100%);
  border: 1px solid #a3b18a;
  border-top: 4px solid #588157;
  border-radius: 12px;
  padding: 25px 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 6px 18px rgba(52, 78, 65, 0.08);
  color: #344e41;
}

.mp-logo-box {
  position: absolute;
  top: 15px;
  right: 20px;
}

.mp-logo-box img {
  max-height: 55px;
  width: auto;
}

.mp-welcome {
  font-size: 24px;
  font-weight: 800;
  color: #344e41;
  margin: 10px 0 15px 0;
  border: none !important;
}

.mp-welcome-title {
  color: #3a5a40;
  background-color: #dad7cd;
  padding: 2px 10px;
  border-radius: 6px;
}

.mp-description {
  font-size: 14px;
  line-height: 1.9;
  color: #344e41;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #a3b18a;
}

.mp-search-container {
  margin: 15px 0;
}

.mp-search-container input[type="text"] {
  border: 1px solid #a3b18a !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  outline: none;
  color: #344e41;
}

.mp-search-container input[type="text"]:focus {
  border-color: #588157 !important;
  box-shadow: 0 0 5px rgba(88, 129, 87, 0.3);
}

.mp-search-container input[type="submit"] {
  background-color: #3a5a40 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 16px !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mp-search-container input[type="submit"]:hover {
  background-color: #344e41 !important;
}

.mp-menu {
  display: inline-block;
  margin: 8px 5px;
  font-size: 14px;
}

.mp-menu a {
  display: inline-block;
  color: #3a5a40 !important;
  font-weight: bold;
  text-decoration: none !important;
  padding: 6px 18px;
  background-color: #ffffff;
  border: 1px solid #a3b18a;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.mp-menu a:hover {
  background-color: #3a5a40;
  color: #ffffff !important;
  border-color: #3a5a40;
}

/* ==========================================================================
   ۲. چیدمان کلی دو ستونه (Main Layout Wrapper)
   ========================================================================== */
.mainpage_body_box, #mp-upper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

/* ==========================================================================
   ۳. ستون راست / اصلی (Article & Main Content)
   ========================================================================== */
#mp-article, #mp-help {
  flex: 1 1 65%;
  display: flex;
  flex-direction: column;
}

.mp-article-box, #mp-article-box, #mp-help-box {
  margin-bottom: 1em;
  padding: 1.2em;
  border-radius: 10px;
  border: 1px solid #a3b18a;
  box-shadow: 0 4px 12px rgba(52, 78, 65, 0.05);
  background: #ffffff;
  transition: box-shadow 0.2s ease;
}

.mp-article-box:hover, #mp-article-box:hover, #mp-help-box:hover {
  box-shadow: 0 6px 16px rgba(52, 78, 65, 0.1);
}

#mp-help-box {
  background: #f4f5f0;
}

.mp-h2 {
  padding: 10px 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a5a40 0%, #588157 100%);
  color: #ffffff;
  margin-bottom: 15px;
}

.mp-h2 span {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  color: #ffffff;
}

.mp-article-footer {
  border-top: 1px dashed #a3b18a;
  text-align: center;
  font-size: 95%;
  margin-top: 15px;
  padding-top: 10px;
  color: #344e41;
}

/* ==========================================================================
   ۴. ستون چپ (Sidebar & Left Boxes)
   ========================================================================== */
#mp-left, .mainpage_body_left, #mp-sidebar {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
}

.mainpage_box, #mp-sidebar-box {
  background: #ffffff;
  border: 1px solid #a3b18a;
  border-radius: 10px;
  margin-bottom: 1.2em;
  box-shadow: 0 4px 12px rgba(52, 78, 65, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mainpage_box:hover, #mp-sidebar-box:hover {
  box-shadow: 0 6px 16px rgba(52, 78, 65, 0.1);
  border-color: #588157;
}

.mainpage_box_header {
  background: linear-gradient(135deg, #3a5a40 0%, #588157 100%);
  color: #ffffff !important;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 15px;
  border-bottom: 2px solid #a3b18a;
}

.mainpage_box_content {
  padding: 15px;
  color: #344e41;
  font-size: 14px;
  line-height: 1.8;
}

.mainpage_box > *:not(.mainpage_box_header):not(.mainpage_box_content) {
  padding: 15px;
}

.mainpage_box a {
  color: #3a5a40;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mainpage_box a:hover {
  color: #588157;
  text-decoration: underline;
}

.mainpage_box ul, .mainpage_box ol {
  margin: 5px 15px 5px 0;
  padding: 0;
}

.mainpage_box li {
  margin-bottom: 6px;
  color: #344e41;
}

/* ==========================================================================
   ۵. جزئیات جانبی و لیست‌ها
   ========================================================================== */
#mp-more {
  float: left;
  margin-left: 10px;
  color: #3a5a40;
  font-weight: bold;
}

#mp-new ol {
  margin: 10px 10px 0 0;
  padding: 0;
}

#mp-new ol li {
  list-style: none;
  line-height: 1.8;
  color: #344e41;
}

#mp-new ol li:before {
  content: "";
  line-height: 1em;
  width: 6px;
  height: 6px;
  background-color: #588157;
  float: right;
  margin: 9px 0 0 8px;
  border-radius: 50%;
}

#badge {
  font-weight: bold;
  color: #588157;
}

/* ==========================================================================
   ۶. تنظیمات واکنش‌گرایی (Responsive / Mobile)
   ========================================================================== */
@media (max-width: 875px) {
  .mp-topbanner {
    margin: 10px 0;
  }

  .mp-welcome {
    font-size: 20px;
  }

  .mainpage_body_box, #mp-upper, #mp-bottom {
    flex-direction: column;
  }

  #mp-article, #mp-help, #mp-left, .mainpage_body_left, #mp-sidebar {
    flex: 1 1 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .mp-logo-box {
    position: static;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   ۷. فوتر و بخش تصویر برگزیده (Footer & Featured Image)
   ========================================================================== */
.main_foot {
  width: 100%;
  margin-top: 15px;
  clear: both;
}

#mp-lower {
  background: #ffffff;
  border: 1px solid #a3b18a;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(52, 78, 65, 0.05);
  overflow: hidden;
}

/* مرکزچین کردن و استایل تصویر برگزیده */
#mp-lower .mainpage_box_content {
  text-align: center;
  padding: 20px;
  color: #344e41;
}

#mp-lower .mainpage_box_content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #dad7cd;
  box-shadow: 0 4px 10px rgba(52, 78, 65, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#mp-lower .mainpage_box_content img:hover {
  transform: scale(1.005);
  box-shadow: 0 6px 15px rgba(52, 78, 65, 0.12);
}