/* template styles */
.ec-navbar #menu-right-menu{
  gap:15px;
  align-items: center;
}

.ec-navbar .partners-menu-link img{
  margin-right: 10px;
  height: 24px;
}

.ec-navbar .partners-menu-link a{
  margin-right: 20px;
  color: var(--black);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  line-height: 25px;
  text-decoration: none;
}

.qr-menu-hover{
  display: none;
}
.menu-qr-code:hover .qr-menu-hover{
  display: flex;
}
.about-market{
  margin-top: 34px;
}
@media screen and (max-width:991px){
  .about-market{
    flex-direction: column;
    margin-top: 10px !important;
  }
  .about-market figure{
    margin: auto !important;
    float: none !important;
  }
  .why-trade-section{
    padding:44px 16px !important;
  }
  .why-trade-section .wp-block-cover__inner-container{
    padding:0;
  }
  .why-trade-section h4{
    margin-bottom: 34px !important;
  }
  .why-trade-section figure{
    display:table;
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 14px !important;
  }
  .why-trade-section h4{
    text-align:center!important;
  }
}
@media screen and (min-width:578px) and (max-width:991px){
  .why-trade-section .wp-block-columns{
        flex-wrap: wrap !important;
  }
  .why-trade-section .wp-block-columns .wp-block-column{
    	flex:45%;
  }
}

@media screen and (max-width:1280px){
  .menu-qr-code{
    display: none;
  }
}

/* ============================================================
 * AIOSEO Table of Contents 自动标题样式
 *   - 与 EC Academy / Insights 设计规范一致
 *   - 需要用高权重选择器覆盖 ecm-theme/style.css 里
 *     .single-academy-page h2 { font-size:32px !important } 的强制规则
 *   - 显式声明 text-align，压住父级（特别是 mobile 媒体查询）
 *     可能加的 text-align: center
 *   - 兼容 RTL 语言（ar）
 * ============================================================ */
.aioseo-toc-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #414246;
  margin: 0 0 12px;
  text-align: left;
}

/* 覆盖父主题的 .single-academy-page h2 !important
 * + 强制对齐方式，压住父级 mobile @media 可能加的 text-align: center */
.single-academy-page h2.aioseo-toc-title,
.single-insights-page h2.aioseo-toc-title,
h2.aioseo-toc-title {
  font-size: 20px !important;
  color: #414246 !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  text-align: left !important;
}

/* 同时强制 AIOSEO ToC 链接列表也 LTR 左对齐
 * （旧文章用 .toc-section 包装时父级 CSS 已经管了，但我们自动注入的
 *  没有这一层保护，需要在这里兜底） */
.wp-block-aioseo-table-of-contents,
.wp-block-aioseo-table-of-contents ul,
.wp-block-aioseo-table-of-contents li {
  text-align: left !important;
}

/* ----- RTL（阿拉伯语等）：标题 + 链接列表统一右对齐 -----
 * 注意：阿语页面 <html> 通常没 dir="rtl"，靠 Unicode bidi 显示文本，
 * 但容器对齐还是 LTR。我们用 [lang^="ar"] / [dir="rtl"] 双保险。 */
[dir="rtl"] h2.aioseo-toc-title,
html[lang^="ar"] h2.aioseo-toc-title {
  text-align: right !important;
}

[dir="rtl"] .wp-block-aioseo-table-of-contents,
[dir="rtl"] .wp-block-aioseo-table-of-contents ul,
[dir="rtl"] .wp-block-aioseo-table-of-contents li,
html[lang^="ar"] .wp-block-aioseo-table-of-contents,
html[lang^="ar"] .wp-block-aioseo-table-of-contents ul,
html[lang^="ar"] .wp-block-aioseo-table-of-contents li {
  text-align: right !important;
}

/* RTL 下 ul 的 padding 翻转，让列表标记和缩进出现在右侧 */
[dir="rtl"] .wp-block-aioseo-table-of-contents ul,
html[lang^="ar"] .wp-block-aioseo-table-of-contents ul {
  padding-left: 0 !important;
  padding-right: 40px !important;
}