/* Directory single styles - Ray Theme */

/* Scoped Reset & Base Styles for Directory Single */
body.single-brokers,
body.single-exchanges,
body.single-props,
body.single-gold_platforms,
body.single-funds {
	background-color: #fafafa;
	color: #080f1d;
}

.broker-body-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.broker-body-sidebar-sticky .banner-aside {
  margin-bottom: 8px;
}

#wpj-jtoc {
  margin: 0;
}

@media screen and (min-width: 1101px) {
  .broker-body-right-sidebar {
    align-self: stretch;
  }

  .broker-body-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height, 82px) + var(--single-sticky-admin-offset, 0px) + 8px);
    z-index: 25;
  }

  #wpj-jtoc .wpj-jtoc--body {
    max-height: calc(100vh - var(--header-height, 82px) - var(--single-sticky-admin-offset, 0px) - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 37, 66, 0.2) transparent;
  }

  #wpj-jtoc .wpj-jtoc--body::-webkit-scrollbar {
    width: 5px;
  }

  #wpj-jtoc .wpj-jtoc--body::-webkit-scrollbar-thumb {
    background: rgba(29, 37, 66, 0.2);
    border-radius: 4px;
  }

  #wpj-jtoc .wpj-jtoc--body::-webkit-scrollbar-track {
    background: transparent;
  }
}

.--jtoc-warning {
  display: none !important; /* Bypass Warning message */
}

.jtoc--num {
  text-align: center;
  margin-left: 8px;
}

span.wpj-jtoc--title-label {
  font-size: 17px;
}

.jtoc--num::before {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Mobile & Tablet Table of Contents (Trigger Button & Bottom Sheet Drawer)
   ========================================================================== */

.jtoc-heading,
.broker-body-left-side :is(h1, h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: calc(var(--header-height, 82px) + var(--single-sticky-admin-offset, 0px) + 20px);
}

body.ray-mobile-toc-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* Hidden by default on Desktop (> 1100px) */
.ray-mobile-toc-trigger,
.ray-mobile-toc-backdrop {
  display: none;
}

@media screen and (max-width: 1100px) {
  /* Floating trigger button on tablet & mobile - exactly matching ray-theme-back-to-top */
  button.ray-mobile-toc-trigger,
  .directory-single-main button.ray-mobile-toc-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #0d173d !important;
    border: 1.2px solid #ffd305 !important;
    border-radius: 12px !important;
    color: #ffd305 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  button.ray-mobile-toc-trigger:hover,
  .directory-single-main button.ray-mobile-toc-trigger:hover {
    background-color: #ffd305 !important;
    color: #000c27 !important;
    border-color: #ffd305 !important;
    box-shadow: 0 6px 20px rgba(255, 211, 5, 0.35);
    transform: translateY(-2px);
  }

  button.ray-mobile-toc-trigger:active,
  .directory-single-main button.ray-mobile-toc-trigger:active {
    transform: translateY(0);
  }

  button.ray-mobile-toc-trigger:focus-visible,
  .directory-single-main button.ray-mobile-toc-trigger:focus-visible {
    outline: 2px solid #ffd305;
    outline-offset: 3px;
  }

  button.ray-mobile-toc-trigger svg,
  .directory-single-main button.ray-mobile-toc-trigger svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  /* Backdrop Overlay */
  .ray-mobile-toc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(13, 19, 41, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    font-family: inherit;
  }

  .ray-mobile-toc-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Drawer / Bottom Sheet */
  .ray-mobile-toc-drawer {
    --jtoc-numeration-type: persian;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    padding: 10px 20px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ray-mobile-toc-backdrop.is-open .ray-mobile-toc-drawer {
    transform: translateY(0);
  }

  .ray-mobile-toc-drag-handle {
    width: 36px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 4px auto 12px;
    flex-shrink: 0;
  }

  .ray-mobile-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
    flex-shrink: 0;
  }

  .ray-mobile-toc-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #080f1d;
    font-size: 16px;
    font-weight: 700;
  }

  .ray-mobile-toc-title-icon {
    color: #ffd305;
    background: #0d1329;
    border-radius: 6px;
    padding: 4px;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
  }

  .ray-mobile-toc-close {
    background: #f1f4f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6f77;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .ray-mobile-toc-close:hover {
    background: #e2e8f0;
    color: #080f1d;
  }

  /* Scrollable TOC items inside Drawer */
  .ray-mobile-toc-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 10px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 37, 66, 0.2) transparent;
  }

  .ray-mobile-toc-body::-webkit-scrollbar {
    width: 4px;
  }

  .ray-mobile-toc-body::-webkit-scrollbar-thumb {
    background: rgba(29, 37, 66, 0.2);
    border-radius: 4px;
  }

  .ray-mobile-toc-body ul,
  .ray-mobile-toc-body ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: a !important;
  }

  .ray-mobile-toc-body ol ol,
  .ray-mobile-toc-body ul ul {
    margin-right: 18px !important;
    padding-right: 10px !important;
    border-right: 2px solid #e9edf3;
  }

  .ray-mobile-toc-body li {
    margin: 3px 0;
    padding: 0;
  }

  .ray-mobile-toc-body .wpj-jtoc--item-content {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background-color 0.15s ease;
    min-height: 44px;
    box-sizing: border-box;
  }

  .ray-mobile-toc-body .wpj-jtoc--item-content:hover,
  .ray-mobile-toc-body .wpj-jtoc--item-content:active {
    background-color: #f1f4f9;
  }

  .ray-mobile-toc-body a {
    color: #080f1d !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    display: block;
  }

  .ray-mobile-toc-body .jtoc--num {
    margin-left: 10px !important;
    margin-right: 0 !important;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #262d44;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 768px) {
  /* Exactly matches ray-theme-back-to-top on mobile */
  button.ray-mobile-toc-trigger,
  .directory-single-main button.ray-mobile-toc-trigger {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

.directory-single-main {
	direction: rtl;
	text-align: right;
	font-family: 'IRANYekanXFaNum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: #fafafa;
	color: #080f1d;
	overflow-x: clip;
	box-sizing: border-box;
}

.directory-single-main * {
	box-sizing: border-box;
}

.directory-single-main h1,
.directory-single-main h2,
.directory-single-main h3,
.directory-single-main h4,
.directory-single-main h5,
.directory-single-main h6,
.directory-single-main p {
	margin: 0;
}

.directory-single-main button {
	font-family: inherit;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.directory-single-main a:not(.link) {
	color: inherit;
	text-decoration: none;
}

.directory-single-main img {
	display: block;
	max-width: 100%;
	height: auto;
}

.directory-single-main object {
	display: block;
}

.directory-single-main a:focus-visible,
.directory-single-main button:focus-visible,
.directory-single-main input:focus-visible {
	outline: 2px solid #0d1329;
	outline-offset: 2px;
}

.directory-single-main img,
.directory-single-main object {
	pointer-events: none;
}

/* ==========================================================================
   SECTION 3: Design Tokens & Shared Utilities
   ========================================================================== */

:root {
  /* color variables */
  --ink-900: #080f1d;
  --gray-700: #404040;
  --gray-600: #6b6f77;
  --yellow-500: #ffd305;
  --yellow-400: #fbb80f;
  --white-1000: #fff;
  --blue-gray-50: #f1f4f9;
  --gray-25: #fafafa;
  --gray-100: #eaeaea;
  --navy-700: #262d44;
  --blue-600: #0650d7;
  --color-text-primary: var(--gray-700);
  --color-text-heading: var(--ink-900);
  --color-text-secondary: var(--gray-600);
  --color-action-primary: var(--yellow-500);
  --color-brand-title-marker: var(--yellow-400);
  --color-surface-default: var(--white-1000);
  --color-surface-input: var(--blue-gray-50);
  --color-surface-subtle: var(--gray-25);
  --color-border-subtle: var(--gray-100);
  --color-ink-strong: var(--navy-700);
  --color-interactive-selected: var(--blue-600);

  /* number variables */
  --spacing-field-gap: 13px;
  --spacing-md: 20px;
  --spacing-watchlist-gap: 26px;
  --spacing-inset: 30px;
  --spacing-section-gap: 32px;
  --spacing-lg: 35px;
  --radius-button: 12px;
  --radius-control: 14px;
  --radius-card: 20px;
  --radius-panel: 24px;
  --radius-profile: 28px;
  --radius-surface: 30px;
  --radius-circular: 36px;

  /* responsive margins / paddings */
  --margin-sm: 16px;
  --margin-md: 32px;

  /* similar broker specific */
  --similar-broker-font: 'IRANYekanXFaNum', sans-serif;
}


/* Typography Utilities */
.text1 {
  font-size: 16px;
  font-family: 'IRANYekanXFaNum', sans-serif;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0px;
}

.text2 {
  font-size: 14px;
  font-family: 'IRANYekanXFaNum', sans-serif;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0px;
}

.subtitle-blue {
  color: #0d1329;
  font-size: 24px;
  font-family: 'IRANYekanXFaNum', sans-serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0px;
}

.link {
  text-decoration: underline;
}

/* Scoped sub-text & text utilities to prevent namespace conflicts */
.broker-body .sub-text {
  font-weight: 400;
}

.similar-broker .sub-text {
  font-size: 15px;
}

.similar-broker .text {
  font-size: 14px;
  font-weight: 300;
}

/* UI Objects Utilities */
.btn {
  display: flex;
  padding: 0 10px;
  border-radius: 16px;
}

.card-light {
  display: flex;
  align-items: center;
  background-color: #fffbeb;
  padding: 6px 13px;
  border-radius: 26px;
}

.card-white3 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #fff;
  padding-left: 12px;
  padding-right: 104px;
  border-radius: 20px;
}

.card-white1 {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 30px;
  border-radius: 30px;
}

.card-white2 {
  width: 100%;
  height: 94px;
  background-color: #fff;
  border-radius: 20px;
}

/* Button Hover Utilities */
.hover-dark:hover {
  filter: brightness(0.85);
}

.hover-zoom:hover {
  scale: 1.05;
}

.hover-bright:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   SECTION 3.5: Directory Single Breadcrumb
   ========================================================================== */

.directory-single-breadcrumb {
  width: 100%;
  box-sizing: border-box;
}

.directory-single-breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 38px 16px 0 16px;
  box-sizing: border-box;
}

.directory-single-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  direction: rtl;
  text-align: right;
  font-family: 'IRANYekanXFaNum', Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.directory-single-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.directory-single-breadcrumb-item a {
  color: #717684;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.directory-single-breadcrumb-item a:hover {
  color: #080f1d;
}

.directory-single-breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a0a5b5;
  width: 6px;
  height: 10px;
  flex-shrink: 0;
}

.directory-single-breadcrumb-separator svg {
  display: block;
  width: 6px;
  height: 10px;
}

.directory-single-breadcrumb-item.current {
  color: #080f1d;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 4: Component 1 - BrokerBody
   ========================================================================== */

/* Base Top Container */
.broker-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 16px 12px 16px;
  font-family: 'IRANYekanXFaNum', Tahoma, sans-serif;
  letter-spacing: 0px;
  box-sizing: border-box;
  width: 100%;
}

/* Right Sidebar (in RTL: occupies right column) */
.broker-body-right-sidebar {
  width: 326px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 18px
}

/* Left Main Content Area (in RTL: occupies left column) */
.broker-body-left-side {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Specification Block inside left-side */
.broker-body-specification {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

/* Middle Column on desktop: title, accounts table, sponsored, disclaimer */
.broker-body-right1 {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Left Column on desktop: rating score card + broker contact card */
.broker-body-left1 {
  width: 326px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Broker Title Block --- */
.broker-body-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.broker-body-row-top1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.broker-body-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.broker-body-subtitle {
  color: #0d1329;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.broker-body-text-amarkets {
  color: #6b6f77;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.broker-body-huge {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

.broker-body-bookmark {
  background: none;
  border: 0;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
  flex-shrink: 0;
}

.broker-body-bookmark:focus-visible {
  outline: 2px solid #ffd305;
  outline-offset: 2px;
}

.broker-body-bookmark .broker-body-huge path {
  fill: none;
  transition: fill 0.15s ease;
}

.broker-body-bookmark.is-active .broker-body-huge path {
  fill: #ffd305;
}

.broker-body-text-symbol1 {
  color: #6b6f77;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

/* --- Account Types & Account Table --- */
.broker-body-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.broker-body-account-type {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.broker-body-btn {
  min-width: 110px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  color: rgba(8, 15, 29, 0.5);
  border: 1px solid #83878e !important;
  border-radius: 12px;
  background-color: transparent;
  cursor: pointer;
  padding: 0 16px !important;
  transition: all 0.2s ease;
}

.broker-body-btn.active,
.broker-body-btn-standard {
  color: #1d2542;
  border-color: #1d2542;
  font-weight: 500;
}

/* 3-Column Account Table on Desktop */
.broker-body-account-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(107, 111, 119, 0.2);
  border-radius: 20px;
  background-color: #fff;
  overflow: hidden;
  width: 100%;
}

.broker-body-row-top2,
.row-c,
.broker-body-row-bottom {
  display: contents;
}

.card-right1,
.broker-body-row,
.broker-body-row-left1,
.row-d,
.broker-body-row-right,
.broker-body-row-left2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 52px;
  border-left: 1px solid rgba(107, 111, 119, 0.2);
  border-bottom: 1px solid rgba(107, 111, 119, 0.2);
  background-color: #fff;
  box-sizing: border-box;
}

/* In 3-column desktop layout: remove left border on every 3rd cell (leftmost in RTL) */
.broker-body-account-table > *:nth-child(3n),
.broker-body-row-left1,
.row6 .row1,
.row7 .row1,
.broker-body-row-left2 {
  border-left: none;
}

/* Remove bottom border on last row */
.broker-body-row-bottom > * {
  border-bottom: none;
}

.card-right-text-symbol,
.broker-body-text-symbol3,
.broker-body-text-symbol2,
.row-text-symbol1,
.broker-body-text-symbol5,
.broker-body-text-symbol4 {
  color: #6b6f77;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
}

.card-right-text,
.broker-body-text2,
.broker-body-text1,
.row-text3,
.broker-body-text4,
.broker-body-text3 {
  color: #080f1d;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  text-align: end;
}

/* --- Sponsored Brokers --- */
.broker-body-sponsored {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.card-white2,
.card-white3 {
  background-color: #fff;
  border-radius: 20px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
}

.card-white3 {
  padding: 10px;
}

.card-right-img {
  max-width: 90px;
  max-height: 48px;
  object-fit: contain;
}

.card-img {
  max-width: 80px;
  max-height: 48px;
  object-fit: contain;
}

.broker-body-img2 {
  max-width: 75px;
  max-height: 48px;
  object-fit: contain;
}

.broker-body-img1 {
  max-width: 90px;
  max-height: 48px;
  object-fit: contain;
}

/* The yellow Ad badge in the top-left of sponsored card (Resolved BEM class) */
.BrokerBody__ad-frame {
  position: absolute;
  top: 0;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.BrokerBody__ad-frame-rect {
  display: none;
}

.BrokerBody__ad-badge {
  background-color: #ffd305;
  color: #080f1d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px 5px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  line-height: 1;
}

/* --- Risk Disclaimer --- */
.btn-risk-disclaimer {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fff;
  padding: 24px 28px;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
  box-sizing: border-box;
}

.btn-risk-disclaimer-icon {
  width: 8px;
  min-height: 48px;
  background-color: #ffd305;
  border-radius: 4px;
  flex-shrink: 0;
}

.btn-risk-disclaimer-label {
  color: #6b6f77;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
  flex-grow: 1;
}

/* Manual directory advantages and disadvantages. */
.ray-directory-review-area {
  display: contents;
}

/* Two tinted cards; they stack on their own when the column gets narrow. */
.ray-directory-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.ray-directory-review__card {
  --review-accent: #12805c;
  --review-tint: #e6f5ee;
  position: relative;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, var(--review-tint) 0, #fff 150px);
  border: 1px solid color-mix(in srgb, var(--review-accent) 16%, #fff);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(13, 23, 61, 0.04);
}

.ray-directory-review__card--cons {
  --review-accent: #c2414d;
  --review-tint: #fdecee;
}

/* Soft decorative glow behind the header. */
.ray-directory-review__card::before {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--review-accent) 9%, transparent);
  pointer-events: none;
}

.ray-directory-review .ray-directory-review__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--review-accent);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.ray-directory-review__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--review-accent);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--review-accent) 30%, transparent);
}

.ray-directory-review__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* One thumbs-up drawing, flipped for the cons card. */
.ray-directory-review__card--cons .ray-directory-review__icon svg {
  transform: scaleY(-1);
}

.ray-directory-review .ray-directory-review__list {
  position: relative;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #354052;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.ray-directory-review__list li {
  position: relative;
  margin: 0;
  padding: 11px 14px;
  padding-inline-start: 46px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--review-accent) 12%, #fff);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ray-directory-review__list li:hover {
  border-color: color-mix(in srgb, var(--review-accent) 40%, #fff);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--review-accent) 10%, transparent);
}

.ray-directory-review__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--review-tint);
}

.ray-directory-review__list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 20px;
  top: 18px;
  width: 5px;
  height: 9px;
  border: solid var(--review-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ray-directory-review__card--cons li::after {
  inset-inline-start: 19px;
  top: 23px;
  width: 8px;
  height: 0;
  border-width: 2px 0 0;
  transform: none;
}

@media (max-width: 768px) {
  .ray-directory-review-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-row: 9;
    grid-column: 1 / -1;
    min-width: 0;
  }

  .ray-directory-review {
    gap: 12px;
  }

  .ray-directory-review__card {
    padding: 16px;
    border-radius: 20px;
  }
}

/* --- Rating Score Card (Desktop Left Column) --- */
.card-rating-score {
  background-color: #fff;
  padding: 28px 24px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
}

.card-rating-score-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-rating-score-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rating-score-text-symbol {
  color: #0d1329;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.card-rating-score-subtitle {
  display: block;
  color: #0d1329;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.card-rating-score-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rating-score-text {
  color: #6b6f77;
  font-size: 15px;
  font-weight: 300;
  margin: 0;
}

.card-rating-score-graphic {
  width: 120px;
  height: 22px;
  flex-shrink: 0;
}

.btn-add-review {
  background-color: #1d2542;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-add-review-label {
  margin: 0;
  color: #fff;
}

.btn-add-review-icon-huge {
  width: 18px;
  height: 18px;
}

.card-rating-score-broker-feature {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.card-rating-score-btn {
  background-color: #f4f4f6;
  color: #6b6f77;
  border: none;
  border-radius: 24px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* --- Broker Contact Card (Desktop Left Column) --- */
.card-more-contact {
  height: 256px;
  background-color: #fff;
  padding: 28px 24px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
}

.card-more-contact-broker-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.row-a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-huge-a {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.row-text1 {
  display: block;
  color: #0d1329;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.graphic {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transform: rotate(90deg);
}

.card-more-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.card-more-contact-row-top,
.row-b,
.card-more-contact-row-bottom {
  background-color: #fffbeb;
  border-radius: 24px;
  padding: 8px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #6b6f77;
  font-size: 13px;
}

.huge {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.huge-graphic {
  width: 100%;
  height: 100%;
}

.row-huge-b {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card-more-contact-huge {
  width: 18px;
  height: 18px;
  position: relative;
  border: 1px solid #ffd305;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-more-contact-circle-vector1 {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  background-color: #ffd305;
  border-radius: 50%;
}

.card-more-contact-circle-vector2 {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 1px solid #ffd305;
  border-radius: 50%;
}

.text-a {
  margin: 0;
  font-size: 13px;
  color: #6b6f77;
}

.office-address-header {
  margin-top: 6px;
}

.card-more-contact-text-bottom {
  color: #6b6f77;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  text-align: right;
}

/* --- Right Sidebar Components --- */
.broker-body-logo-of-post {
  background-color: #fff;
  border: 1px solid #e6e7e9;
  border-radius: 20px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
}

.broker-body-img3 {
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
}

.card-mini-specification {
  background-color: #f4f4f6;
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.card-mini-specification-row-top,
.row-e {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.card-mini-specification-row-right,
.row-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b6f77;
  font-size: 15px;
  font-weight: 300;
}

.row-huge-c {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.huge-icon-time-and {
  width: 18px;
  height: 18px;
  position: relative;
  border: 1px solid #6b6f77;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  flex-shrink: 0;
}

.huge-icon-time-and-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.huge-icon-time-and-line-top {
  width: 100%;
  height: 1px;
  background-color: #6b6f77;
}

.huge-icon-time-and-row-bottom {
  display: flex;
  gap: 2px;
}

.huge-icon-time-and-circle-gray {
  width: 2px;
  height: 2px;
  background-color: #6b6f77;
  border-radius: 50%;
}

.huge-icon-time-and-line1 {
  position: absolute;
  top: -2px;
  right: 3px;
  width: 1px;
  height: 3px;
  background-color: #6b6f77;
}

.huge-icon-time-and-line2 {
  position: absolute;
  top: -2px;
  left: 3px;
  width: 1px;
  height: 3px;
  background-color: #6b6f77;
}

.text-symbol {
  margin: 0;
}

.text-symbol.broker-template {
  color: #6b6f77;
  cursor: auto;
}

.text-b {
  color: #1d2542;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.text-b.broker-template {
  color: #1d2542;
  font-weight: 400;
}

.broker-body-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn-go-to-broker {
  background-color: #ffd305;
  color: #080f1d;
  border: none;
  border-radius: 14px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-compare {
  background-color: #fff;
  color: #6b6f77;
  border: 1px solid #83878e;
  border-radius: 14px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-go-to-broker-icon-huge,
.btn-compare-icon-huge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-go-to-broker-label,
.btn-compare-label {
  margin: 0;
  color: #1d2542;
}

.card-table-of-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
}

.card-table-of-content-contents1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-table-of-content-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-table-of-content-huge-icon-notes {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.card-table-of-content-text-symbol1 {
  color: #0d1329;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.card-table-of-content-graphic {
  width: 10px;
  height: 10px;
  transform: rotate(90deg);
}

.card-table-of-content-contents2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-table-of-content-contents2 p {
  color: #6b6f77;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s ease;
}

.card-table-of-content-contents2 p:hover {
  color: #0d1329;
}

.broker-body-signup-cta {
  background-color: #fff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
}

.btn-signup-cta {
  background-color: #ffd305;
  color: #080f1d;
  border: none;
  border-radius: 14px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.btn-signup-cta-icon-huge-user-outline-user {
  width: 18px;
  height: 18px;
}

.btn-signup-cta-label {
  margin: 0;
}

.banner-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.banner-aside img {
  border-radius: 20px;
  height: 108px;
}

.broker-body-btn-banner-ads {
  background-color: #1d2542;
  color: #fff;
  border: none;
  border-radius: 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

/* --- Post Content Section --- */
.broker-body-post-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

:root {
  --single-sticky-admin-offset: 0px;
}

.admin-bar {
  --single-sticky-admin-offset: 32px;
}

@media screen and (max-width: 1170px) {
  :root {
    --header-height: 70px;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar {
    --single-sticky-admin-offset: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar {
    --single-sticky-admin-offset: 0px;
  }
}

.broker-body-tabs-of-post {
  background-color: #fff;
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
  box-sizing: border-box;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height, 82px) + var(--single-sticky-admin-offset, 0px) + 8px);
  z-index: 30;
  transition: box-shadow 0.25s ease;
}

.broker-body-tabs-of-post.is-scrolled {
  box-shadow: 0 4px 20px rgba(13, 19, 41, 0.08);
}

.broker-body-right2 {
  display: flex;
  align-items: center;
  position: relative;
}

.broker-body-post-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

.broker-body-post-tabs .content-tab-item {
  position: relative;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: #6b6f77;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.broker-body-post-tabs .content-tab-item.active,
.broker-body-text-review.active {
  color: #0d1329;
  font-weight: 500;
}

.broker-body-post-tabs .content-tab-item:hover {
  color: #0d1329;
}

.broker-body-tab-text {
  margin: 0;
  line-height: 1.5;
}

#review,
#comments {
  scroll-margin-top: 140px;
}

.broker-body-graphic {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  margin: 0;
  pointer-events: none;
}

.broker-body-left2 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.broker-body-text-comment {
  color: #6b6f77;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
}

.btn-add-comment {
  background-color: #1d2542;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-comment-label {
  margin: 0;
  color: #fff;
}

.btn-add-comment-icon-linear-messages-conversation {
  width: 18px;
  height: 18px;
}

.broker-body-article-title {
  color: #0d1329;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  padding: 10px 0;
  margin: 0;
}

/* Article Body */
.card-body-of-content {
  background-color: #fff;
  border-radius: 30px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  /*gap: 18px;*/
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f2;
  width: 100%;
}

.card-body-of-content-subtitle,
.card-body-of-content-subtitle-symbol {
  color: #0d1329;
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 4px 0;
}

.card-body-of-content-text {
  color: #6b6f77;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

.card-body-of-content-text a.link {
  color: inherit;
  text-decoration: underline;
}

.card-body-of-content-review-video {
  background-color: #1d2542;
  border-radius: 28px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 12px 0;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card-body-of-content-review-video:hover {
  opacity: 0.95;
  transform: scale(1.005);
}

.card-body-of-content-huge-icon-multimedia {
  width: 32px;
  height: 32px;
}

/* --- BrokerBody Tablet Responsive Breakpoint (769px - 1100px) --- */
@media screen and (max-width: 1100px) {
  #wpj-jtoc {
    display: none;
  }

  .broker-body-signup-cta {
      display: none;
  }

  .broker-body {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 16px 12px 16px;
  }

  .broker-body-right-sidebar {
    width: 100%;
    max-width: 100%;
    order: 2;
  }

  .broker-body-left-side {
    width: 100%;
    order: 1;
  }

  .broker-body-specification {
    flex-direction: column;
    width: 100%;
  }

  .broker-body-left1 {
    width: 100%;
  }

  .card-rating-score-broker-feature {
    grid-template-columns: repeat(3, 1fr);
  }

  .broker-body-sponsored {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- BrokerBody Mobile Breakpoint (< 768px) --- */
@media screen and (max-width: 768px) {
  body {
    background-color: #fff;
  }

  .broker-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 12px;
    padding: 16px 16px 8px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .broker-body-right-sidebar,
  .broker-body-left-side,
  .broker-body-specification,
  .broker-body-right1,
  .broker-body-left1,
  .broker-body-title,
  .card-rating-score,
  .broker-body-sidebar-sticky {
    display: contents;
  }

  .broker-body-logo-of-post {
    grid-row: 1;
    grid-column: 1;
    width: 82px;
    height: 82px;
    border-radius: 16px;
    border: 1px solid #e6e7e9;
    padding: 8px;
    box-shadow: none;
  }

  .broker-body-img3 {
    max-width: 70px;
    max-height: 50px;
  }

  .broker-body-row-top1 {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    text-align: right;
  }

  .broker-body-heading {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .broker-body-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #0d1329;
    line-height: 1.3;
    margin: 0;
  }

  .broker-body-text-amarkets {
    font-size: 13px;
    color: #6b6f77;
    margin: 0;
  }

  .broker-body-article-title {
      font-size: 15px;
  }

  .broker-body-bookmark {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .broker-body-huge {
    width: 16px;
    height: 18px;
    margin-top: 2px;
  }

  .broker-body-text-symbol1 {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 1.6;
    color: #6b6f77;
    text-align: justify;
  }

  .directory-single-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .broker-body-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 950;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #e6e7e9;
    box-sizing: border-box;
  }

  .btn-go-to-broker {
    border-radius: 12px;
    height: 44px;
    font-size: 13px;
    font-weight: 400;
  }

  .btn-compare {
    background-color: #fff;
    color: #6b6f77;
    border: 1px solid #83878e;
    border-radius: 12px;
    height: 44px;
    font-size: 13px;
    font-weight: 400;
  }

  .card-rating-score-summary {
    grid-row: 3;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
  }

  .card-rating-score-row-top,
  .card-rating-score-row-bottom {
    display: contents;
  }

  .card-rating-score-text-symbol {
    order: 1;
    font-size: 14px;
    font-weight: 700;
    color: #0d1329;
    margin-left: 4px;
  }

  .card-rating-score-text {
    order: 2;
    font-size: 13px;
    font-weight: 400;
    color: #6b6f77;
  }

  .card-rating-score-graphic {
    order: 3;
    width: 80px;
    height: 16px;
    margin: 0 auto;
  }

  .card-rating-score-subtitle {
    order: 4;
    font-size: 20px;
    font-weight: 700;
    color: #0d1329;
    line-height: 1;
  }

  .btn-add-review {
    grid-row: 4;
    grid-column: 1 / -1;
    background-color: #1d2542;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    flex-direction: row-reverse;
  }

  .card-mini-specification {
    grid-row: 5;
    grid-column: 1 / -1;
    border-radius: 16px;
    padding: 20px 20px;
    gap: 18px;
  }

  .card-mini-specification-row-right,
  .row-row-right {
    font-size: 13px;
  }

  .text-b {
    font-size: 14px;
  }

  .broker-body-table {
    grid-row: 6;
    grid-column: 1 / -1;
    gap: 14px;
  }

  .broker-body-account-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .broker-body-btn {
    width: 100%;
    min-width: 0;
    height: 40px;
    font-size: 13px;
    border-radius: 10px;
    padding: 0 4px;
  }

  .broker-body-account-table {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 14px;
  }

  .broker-body-account-table > * {
    padding: 10px 12px;
    min-height: 44px;
  }

  .broker-body-account-table > *:nth-child(3n),
  .broker-body-row-left1,
  .row6 .row1,
  .row7 .row1,
  .broker-body-row-left2 {
    border-left: 1px solid rgba(107, 111, 119, 0.2);
  }

  .broker-body-account-table > *:nth-child(2n) {
    border-left: none;
  }

  .broker-body-account-table > *:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .card-right-text-symbol,
  .broker-body-text-symbol3,
  .broker-body-text-symbol2,
  .row-text-symbol1,
  .broker-body-text-symbol5,
  .broker-body-text-symbol4 {
    font-size: 12px;
  }

  .card-right-text,
  .broker-body-text2,
  .broker-body-text1,
  .row-text3,
  .broker-body-text4,
  .broker-body-text3 {
    font-size: 13px;
  }

  .card-rating-score-broker-feature {
    grid-row: 7;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .card-rating-score-btn {
    height: 38px;
    font-size: 12px;
    padding: 0 4px;
  }

  .broker-body-sponsored {
    grid-row: 8;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .btn-risk-disclaimer {
    grid-row: 9;
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
  }

  .btn-risk-disclaimer-label {
    font-size: 13px;
  }

  .broker-body-post-content {
    grid-row: 10;
    grid-column: 1 / -1;
  }

  .broker-body-tabs-of-post {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #eaeaea;
    border-radius: 16px;
  }

  .broker-body-right2 {
    display: flex;
    align-items: center;
  }

  .broker-body-post-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .broker-body-post-tabs .content-tab-item {
    font-size: 14px;
    padding: 2px 0;
  }

  .broker-body-graphic {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 5px;
    display: block;
    margin: 0;
    pointer-events: none;
  }

  .broker-body-left2 {
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
  }

  .broker-body-text-comment {
    display: none !important;
  }

  .btn-add-comment {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    gap: 5px;
    width: auto;
    flex-shrink: 0;
  }

  .btn-add-comment-label {
    font-size: 12px;
    white-space: nowrap;
  }

  .btn-add-comment-icon-linear-messages-conversation,
  .btn-add-comment-icon {
    width: 13px;
    height: 13px;
  }

  .card-body-of-content {
    padding: 20px 16px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
  }

  .card-body-of-content-review-video {
    height: 220px;
    border-radius: 18px;
  }

  .card-more-contact {
    grid-row: 11;
    grid-column: 1 / -1;
    padding: 20px 16px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
  }

  .card-table-of-content {
    grid-row: 12;
    grid-column: 1 / -1;
    padding: 20px 16px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
  }

  .broker-body-signup-cta {
    grid-row: 13;
    grid-column: 1 / -1;
    border: 1px solid #eaeaea;
  }

  .broker-body-btn-banner1 {
    grid-row: 14;
    grid-column: 1 / -1;
    min-height: 120px;
  }

  .broker-body-btn-banner2 {
    grid-row: 15;
    grid-column: 1 / -1;
    min-height: 120px;
  }

  .banner-aside {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 10px 0;
  }

  .banner-aside a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
  }

  .banner-aside img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
  }
}

/* ==========================================================================
   SECTION 4B: Component - Comments Section Container
   ========================================================================== */

#comments,
#review {
  scroll-margin-top: calc(var(--header-height, 82px) + 90px);
}

.broker-body-comments {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 16px 8px 16px;
  box-sizing: border-box;
}

/* ==========================================================================
   SECTION 5: Component 2 - SimilarBroker
   ========================================================================== */
.similar-broker {
  container: similar-broker / inline-size;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--similar-broker-font);
  letter-spacing: 0px;
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 24px 16px 40px 16px;
}

/* Header with resolved BEM naming */
.SimilarBroker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.SimilarBroker__header-subtitle {
  display: block;
  color: #080f1d;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  margin: 0;
}

.SimilarBroker__header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation Arrow Frames with resolved BEM naming */
.SimilarBroker__nav-frame {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  user-select: none;
  box-sizing: border-box;
  border: none;
  outline: none;
}

.SimilarBroker__nav-arrow-icon {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.SimilarBroker__nav-frame--prev {
  background-color: #1d2542;
  display: none;
}

.SimilarBroker__nav-frame--prev:hover {
  filter: brightness(1.25);
}

.SimilarBroker__nav-frame--next {
  rotate: 180deg;
  background-color: #eff0f1;
  display: none;
}

.SimilarBroker__nav-frame--next:hover {
  background-color: #e2e4e8;
}

/* "View All" Button */
.btn-light {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--similar-broker-font);
  font-size: 14px;
  font-weight: 400;
  color: #080f1d;
  background-color: #eff0f1;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-light-label {
  margin: 0;
  line-height: 1;
  text-align: right;
}

.btn-light-icon-arrow-left {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

.btn-light:hover {
  background-color: #e2e4e8;
}

/* Cards Container */
.similar-broker-bottom {
  container: similar-broker-bottom / inline-size;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Card Component */
.card-similar-broker {
  background-color: #ffffff;
  border: 1px solid #ebecee;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 165px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-similar-broker:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Card Broker Logo Container */
.card-similar-broker-logo {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border: 1px solid #e6e7e9;
  border-radius: 14px;
  background-color: #ffffff;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  align-self: center;
}

.card-similar-broker-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Card Content / Left Column */
.card-similar-broker-col-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  box-sizing: border-box;
}

.card-similar-broker-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.card-similar-broker-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: #080f1d;
  width: 100%;
}

.card-similar-broker-text-symbol {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #080f1d;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-similar-broker-identity .text {
  font-size: 12px;
  font-weight: 300;
  color: #6b6f77;
  margin: 0;
  line-height: 1.3;
  text-align: right;
}

/* Metadata: Rating & Minimum Deposit */
.card-similar-broker-metadata {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  color: #6b6f77;
  font-weight: 300;
}

.card-similar-broker-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.card-similar-broker-text-a {
  font-size: 11px;
  color: #6b6f77;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.card-similar-broker-row-left {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 1;
}

.card-similar-broker-star-left {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

.card-similar-broker-text1 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #404040;
  line-height: 1;
}

.card-similar-broker-minimum {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.card-similar-broker-huge-icon-ecommerce-bulk-card {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

.card-similar-broker-text-frame {
  font-size: 12px;
  font-weight: 500;
  color: #404040;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

/* Card Buttons Row */
.card-similar-broker-row-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.card-similar-broker-btn {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--similar-broker-font);
  font-size: 12px;
  padding: 0 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border: none;
  box-sizing: border-box;
  transition: filter 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.card-similar-broker-btn-signup {
  color: #0d1329;
  background-color: #ffd305;
  font-weight: 500;
}

.card-similar-broker-btn-signup:hover {
  filter: brightness(1.08);
}

.card-similar-broker-btn-details {
  color: #6b6f77;
  background-color: #ffffff;
  border: 1px solid #e6e7e9;
  font-weight: 300;
}

.card-similar-broker-btn-details:hover {
  border-color: #d0d2d6;
  color: #080f1d;
}

/* SimilarBroker Responsive Styles - Tablets */
@media screen and (max-width: 900px) {
  .similar-broker-bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .SimilarBroker__nav-frame--next,
  .SimilarBroker__nav-frame--prev {
    display: flex;
  }
}

/* SimilarBroker Responsive Styles - Mobile (< 640px) */
@media screen and (max-width: 640px) {
  .similar-broker {
    gap: 20px;
    padding: 16px 12px 32px 12px;
  }

  .SimilarBroker__header {
    justify-content: space-between;
    align-items: center;
  }

  .SimilarBroker__header-subtitle {
    font-size: 20px;
  }

  /* Hide arrow buttons on mobile per design */
  .SimilarBroker__header-buttons .SimilarBroker__nav-frame {
    display: none;
  }

  .btn-light {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .btn-light-icon-arrow-left {
    width: 14px;
    height: 14px;
  }

  /* Horizontal carousel layout on mobile */
  .similar-broker-bottom {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 0 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .similar-broker-bottom::-webkit-scrollbar {
    display: none;
  }

  .card-similar-broker {
    flex: 0 0 78vw;
    max-width: 310px;
    min-width: 260px;
    scroll-snap-align: start;
    flex-direction: column;
    padding: 14px;
    gap: 14px;
    border-radius: 20px;
    min-height: auto;
  }

  .card-similar-broker-logo {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 160px;
    padding: 20px;
    border-radius: 14px;
    align-self: stretch;
  }

  .card-similar-broker-col-left {
    width: 100%;
    gap: 14px;
  }

  .card-similar-broker-text-symbol {
    font-size: 15px;
  }

  .card-similar-broker-row-bottom {
    gap: 8px;
  }

  .card-similar-broker-btn {
    min-height: 38px;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* Container query support for embedded/modular use */
@container similar-broker (max-width: 640px) {
  .SimilarBroker__header-buttons .SimilarBroker__nav-frame {
    display: none;
  }

  .similar-broker-bottom {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 0 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .similar-broker-bottom::-webkit-scrollbar {
    display: none;
  }

  .card-similar-broker {
    flex: 0 0 78%;
    max-width: 310px;
    min-width: 260px;
    scroll-snap-align: start;
    flex-direction: column;
    padding: 14px;
    gap: 14px;
    border-radius: 20px;
    min-height: auto;
  }

  .card-similar-broker-logo {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 160px;
    padding: 20px;
    border-radius: 14px;
    align-self: stretch;
  }

  .card-similar-broker-col-left {
    width: 100%;
    gap: 14px;
  }
}


/* ==========================================================================
   SECTION 6: Component 3 - BrokerBodyContent
   ========================================================================== */

.card-body-of-content p {
	line-height: 38px;
}

.card-body-of-content p a, .card-body-of-content li a {
    font-weight: 700;
    box-shadow: none;
    text-decoration: none;
    background-color: #2a54ff1a;
    margin: 0 2px;
    padding: 3px 5px;
    border-radius: 5px;
	color: #2c6771;
}

.card-body-of-content p a:hover, .card-body-of-content li a:hover {
	color: #ffb22c;
}

.card-body-of-content p strong {
    font-weight: 700;
}

.card-body-of-content img {
    border-radius: 8px !important;
}

.card-body-of-content iframe {
    border: 0;
}

.card-body-of-content iframe[src*="shenoto.com"] {
    border: 0;
    height: 104px;
    width: 100%;
    overflow: hidden;
    display: block;
}

.card-body-of-content :is(h1, h2, h3, h4, h5, h6):not(:last-child) {
    margin-block-start: 16px;
    margin-block-end: 16px;
}

.card-body-of-content p:not(:last-child) {
    margin-block-start: 0px;
    margin-block-end: 24px;
}

.card-body-of-content p:last-child {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.card-body-of-content {
    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 18px;
    }

    h6 {
        font-size: 16px;
    }

}

@media (max-width: 767px) {
    .card-body-of-content {

        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;

        h2 {
            font-size: 24px;
        }

        h3 {
            font-size: 20px;
        }

        h4 {
            font-size: 18px;
        }

        h5 {
            font-size: 16px;
        }

        h6 {
            font-size: 14px;
        }
    }
}

.card-body-of-content table::-webkit-scrollbar {
    height: 8px;
}

.card-body-of-content table::-webkit-scrollbar-thumb {
    background-color: #b0bec5;
    border-radius: 10px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

.card-body-of-content table::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.05);
}

.card-body-of-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0 auto 18px auto;
    font-family: var(--heading-font);
    border-collapse: collapse;
    width: fit-content;
    max-width: 100%;
}

.card-body-of-content table th {
    padding: 11px 20px;
    border: 1px solid #f3f3f3;
    font-weight: 700;
    font-size: 15px;
    background-color: #1d4951;
    color: #ebebeb;
}

.card-body-of-content table td {
    border: 1px solid #f3f3f3;
    padding: 12px 20px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
}

.card-body-of-content table tr:nth-child(odd) {
    background-color: rgb(38 55 162 / 16%);
}

.card-body-of-content li {
  margin-bottom: 14px;
  line-height: 25px;
}

.card-body-of-content li:not(:last-child) {
  margin-bottom: 14px;
  line-height: 25px;
}

@media (max-width: 767px) {
    .card-body-of-content table {
        display: block;
        margin: 0 auto 34px auto;
    }

    .card-body-of-content table th {
        padding: 9px 18px !important;
        font-size: 13px !important;
    }

    .card-body-of-content table td {
        font-size: 13px !important;
        padding: 9px 18px !important;
    }
}

/* Fix Wordpress css issue with align image */
.aligncenter,
figure.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

figure.aligncenter img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block;
}
