/* Add here all your CSS customizations */

/* تاگل چشم‌انداز/ماموریت: وقتی بخش active است محتوا حتماً نمایش داده شود */
.toggle.active > .toggle-content {
  display: block !important;
}

/* آیکن ویرایش یکپارچه: دایره شیشه‌ای کوچک با آیکن مداد */
.admin-edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #333 !important;
  font-size: 11px;
  text-decoration: none !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  vertical-align: middle;
}
.admin-edit-icon i {
  font-size: 11px;
  line-height: 1;
  display: block;
  text-align: center;
  margin: 0;
  color: inherit;
}
.admin-edit-icon:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #111 !important;
  transform: scale(1.08);
}
.admin-edit-icon:focus {
  outline: none;
  color: #333 !important;
}
/* روی پس‌زمینه تیره (مثلاً بخش آبی) آیکن روشن‌تر */
.admin-edit-icon.text-color-light,
.text-color-light .admin-edit-icon,
.bg-primary .admin-edit-icon,
.section.bg-primary .admin-edit-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}
.admin-edit-icon.text-color-light:hover,
.text-color-light .admin-edit-icon:hover,
.bg-primary .admin-edit-icon:hover,
.section.bg-primary .admin-edit-icon:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

/* آیکن ویرایش اندازه کوچک (مثلاً باکس‌های آبی صفحه خدمات) */
.admin-edit-icon.admin-edit-icon-sm {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  font-size: 8px !important;
}
.admin-edit-icon.admin-edit-icon-sm i {
  font-size: 8px !important;
}
/* لغو استایل قالب روی آیکن مداد داخل باکس آبی (تا margin-bottom و font-size بزرگ اعمال نشود) */
.featured-boxes-full .admin-edit-icon i,
.featured-box-full .admin-edit-icon i {
  margin-bottom: 0 !important;
  font-size: inherit !important;
}

/* فوتر: آیکن‌های ویرایش هماهنگ (رنگ یکسان، مداد وسط) و عدم ارث‌بری رنگ لینک تم */
#footer .admin-edit-icon,
#footer .contact-details .admin-edit-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}
#footer .admin-edit-icon i,
#footer .contact-details .admin-edit-icon i {
  color: inherit !important;
}
#footer .admin-edit-icon:hover,
#footer .contact-details .admin-edit-icon:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}
#footer .admin-edit-icon:hover i,
#footer .contact-details .admin-edit-icon:hover i {
  color: inherit !important;
}

/* دکمه‌های شناور (اسلاید، تصویر ما چه کسی هستیم، مدیریت نظرات) */
.admin-edit-icon.admin-edit-icon-float {
  position: absolute;
  z-index: 30;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* نوار ویرایش ادمین - بین top bar و nav اصلی */
.admin-edit-bar {
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  clear: both;
}
.admin-edit-bar .inline-edit-trigger {
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}
.admin-edit-bar .inline-edit-trigger:hover {
  color: #0088CC;
}

/* ستون لوگو: آیکن ویرایش کنار لوگو قابل مشاهده باشد (بدون overflow مخفی) */
#header .header-column-logo-with-edit {
  overflow: visible;
  min-width: 0;
}
#header .header-column-logo-with-edit .header-logo {
  overflow: visible;
}

/* هدر موبایل: جلوگیری از رفتن آیکن ویرایش روی دکمه پنل مدیریت */
#header .header-row-main-nav {
  flex-wrap: nowrap;
}
#header .header-nav-features .header-nav-feature {
  flex-shrink: 0;
}

/* نوار بالای هدر در موبایل: فاصله بین آیتم‌ها تا آیکن ویرایش روی متن نرود */
@media (max-width: 991px) {
  #header .header-top-with-edit .header-top-contact-list {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  #header .header-top-with-edit .header-top-contact-item {
    margin-left: 4px;
    margin-right: 4px;
  }
  #header .header-top-with-edit .header-top-contact-item a[href^="mailto"],
  #header .header-top-with-edit .header-top-contact-item a[href^="tel"] {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 575px) {
  #header .header-top-with-edit .header-top-row {
    flex-wrap: wrap;
    gap: 6px 0;
  }
  #header .header-top-with-edit .header-top-contact-item a[href^="mailto"],
  #header .header-top-with-edit .header-top-contact-item a[href^="tel"] {
    max-width: 120px;
  }
}

/* نوار آبی بالای هدر - مطابق index-classic پورتو */
#header .header-body.border-color-primary {
  border-top-width: 3px;
  border-top-style: solid;
}
html .border-color-primary {
  border-color: #0088CC !important;
  border-bottom-color: transparent !important;
}

/* صفحه تیم: حذف فاصله سفید اضافه بالا و پایین */
.team-page-content .page-header.page-header-classic {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}
.team-page-content .section.section-team-compact {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.main:has(.team-page-content) {
  padding-top: 0;
  padding-bottom: 0;
}
