/**
 * ICM paths + filter visual LOCK (2026.221.3)
 * LOCKED by owner request. Do not change colors/layout while lock is on.
 * Unlock: Theme Options → عمومی → «قفل ظاهر فیلتر + مسیرهای یادگیری» = off
 *    or define ICM_LOCK_PATHS_FILTER_UI as false in wp-config (advanced).
 */

/* Filter bar */
html body .icm-filterbar,
html body .elementor-widget-icm_academy_filters .icm-filterbar {
  background: #f5f7f9 !important;
}
html body .icm-filterbar__inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  direction: rtl !important;
}
html body .icm-filterbar__inner--label-left .icm-filterbar__label {
  order: 2 !important;
}
html body .icm-filterbar__inner--label-right .icm-filterbar__label {
  order: 0 !important;
}
html body .icm-filterbar__rail,
html body .icm-filter-slider {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body .icm-filterbar__inner--items-right .icm-filterbar__rail {
  justify-content: flex-start !important;
}
html body .icm-filterbar__inner--items-center .icm-filterbar__rail {
  justify-content: center !important;
}
html body .icm-filterbar__inner--items-left .icm-filterbar__rail {
  justify-content: flex-end !important;
}
html body .icm-filterbar__rail > a,
html body .icm-filterbar__rail > *,
html body .elementor-widget-icm_academy_filters .icm-filterbar__rail > a {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}
html body .icm-filterbar__rail a.is-active,
html body .elementor-widget-icm_academy_filters .icm-filterbar__rail a.is-active {
  background: #001f39 !important;
  border-color: #001f39 !important;
  color: #fff !important;
}

/* Learning path cards + tone accents (approved) */
html body .icm-section--collections,
html body .elementor-widget-icm_academy_collections .icm-section--collections {
  background: #f5f7f9 !important;
}
html body .icm-section--collections .icm-topic-card,
html body .elementor-widget-icm_academy_collections .icm-topic-card {
  background: #fff !important;
  border: 1px solid #dde5ec !important;
  box-shadow: 0 2px 10px rgba(13, 71, 120, 0.04) !important;
}

/* Gold — شروع معامله‌گری */
html body .icm-section--collections .icm-topic-card--gold .icm-topic-card__title,
html body .elementor-widget-icm_academy_collections .icm-topic-card--gold .icm-topic-card__title,
html body .icm-section--collections .icm-topic-card--gold h3,
html body .elementor-widget-icm_academy_collections .icm-topic-card--gold h3 {
  color: #8C845E !important;
}
html body .icm-section--collections .icm-topic-card--gold .icm-round-arrow,
html body .elementor-widget-icm_academy_collections .icm-topic-card--gold .icm-round-arrow {
  background-color: #8C845E !important;
}

/* Navy/Blue — تحلیل تکنیکال (matches chart artwork) */
html body .icm-section--collections .icm-topic-card--navy .icm-topic-card__title,
html body .elementor-widget-icm_academy_collections .icm-topic-card--navy .icm-topic-card__title,
html body .icm-section--collections .icm-topic-card--navy h3,
html body .elementor-widget-icm_academy_collections .icm-topic-card--navy h3 {
  color: #1E6DC9 !important;
}
html body .icm-section--collections .icm-topic-card--navy .icm-round-arrow,
html body .elementor-widget-icm_academy_collections .icm-topic-card--navy .icm-round-arrow {
  background-color: #1E6DC9 !important;
}

/* Green — مدیریت ریسک */
html body .icm-section--collections .icm-topic-card--green .icm-topic-card__title,
html body .elementor-widget-icm_academy_collections .icm-topic-card--green .icm-topic-card__title,
html body .icm-section--collections .icm-topic-card--green h3,
html body .elementor-widget-icm_academy_collections .icm-topic-card--green h3 {
  color: #0A7A2E !important;
}
html body .icm-section--collections .icm-topic-card--green .icm-round-arrow,
html body .elementor-widget-icm_academy_collections .icm-topic-card--green .icm-round-arrow {
  background-color: #0A7A2E !important;
}

html body .icm-section--collections .icm-topic-card .icm-round-arrow,
html body .elementor-widget-icm_academy_collections .icm-topic-card .icm-round-arrow {
  font-size: 0 !important;
  line-height: 0 !important;
  color: #fff !important;
}
html body .icm-section--collections .icm-topic-card .icm-round-arrow::before,
html body .elementor-widget-icm_academy_collections .icm-topic-card .icm-round-arrow::before {
  content: "" !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  border-top: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
  transform: rotate(45deg) !important;
  width: 7px !important;
  height: 7px !important;
  display: block !important;
}

html body .icm-section--collections-align-right .icm-topic-card__body {
  text-align: right !important;
  align-items: flex-start !important;
}
html body .icm-section--collections-align-center .icm-topic-card__body {
  text-align: center !important;
  align-items: center !important;
}
html body .icm-section--collections-align-left .icm-topic-card__body {
  text-align: left !important;
  align-items: flex-end !important;
}
