/*#region  **** General Var  ****/
:root {
  --market-overlay: linear-gradient(180deg, #2c35a5 0%, #d9d9d9 100%);
  --market-small-title: rgba(26, 26, 26, 0.9);
  --market-small-desc: rgba(26, 26, 26, 0.6);
  --market-card: #ebebeb;
  --market-h6: #1a1a1a;
  --market-p1: #323234;
}

html[data-bs-theme='dark'] {
  --market-overlay: linear-gradient(180deg, #2c35a5 0%, #121212 100%);
  --market-small-title: rgba(224, 224, 224, 0.9);
  --market-small-desc: rgba(224, 224, 224, 0.6);
  --market-card: #3d3d3d;
  --market-h6: #ffffff;
  --market-p1: #e0e0e0;
}

#future-accountType-section,
#future-desc-section,
#stocks-accountType-section,
#stocks-desc-section,
#metal-accountType-section,
#metal-desc-section,
#energy-accountType-section,
#energy-desc-section,
#indices-accountType-section,
#indices-desc-section,
#market-accountType-section,
#market-desc-section,
.market-hero {
  padding: 0 30px;
}

/*#endregion*/

/*#region  **** market Hero  ****/
.market-hero {
  position: relative;
  height: 700px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  border: unset;
  box-shadow: unset;
}

.market-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url(../image/faq-bg.png);
  border: unset;
  box-shadow: unset;
  height: 100%;
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
  z-index: 1;
}

.market-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--market-overlay);
  pointer-events: none;
}

.market-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 100px;
}

.market-hero-content h1 {
  color: #fff;
  text-align: center;
  font-size: 45px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  height: 43px;
  align-self: stretch;
}

.market-hero-content p {
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  align-self: stretch;
  margin-top: 40px;
  margin-bottom: 40px;
}

.btn-market-hero-content {
  max-width: 300px;
  padding: 15px 20px 10px 20px;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.market-menu {
  position: relative;
  /* display: flex; */
  margin-top: 60px;
  /* justify-content: center; */
}

.pill-menu-wrap {
  display: grid;
  justify-content: center;
}

.pill-menu {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
  /* justify-content: center; */
}
.pill-menu::-webkit-scrollbar {
  display: none;
}

.pill-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 22px 24px 18px 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  /* backdrop-filter: blur(6px); */
  line-height: 30px;
}
.pill-item:hover {
  transform: translateY(-1px);
}
.pill-item.active {
  background: rgba(255, 255, 255, 0.62);
}

/* .pill-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 2;
}
.pill-nav-btn.left {
  left: 4px;
}
.pill-nav-btn.right {
  right: 4px;
}
.pill-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
} */

@media (prefers-reduced-motion: reduce) {
  .pill-item,
  .pill-nav-btn {
    transition: none !important;
  }
}

/*#endregion*/

/*#region  **** market Desc Section   ****/

#future-desc-section,
#stocks-desc-section,
#metal-desc-section,
#energy-desc-section,
#indices-desc-section,
#market-desc-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

#future-desc-section h3,
#stocks-desc-section h3,
#metal-desc-section h3,
#energy-desc-section h3,
#indices-desc-section h3,
#market-desc-section h3 {
  color: var(--platformCard-font2);
  font-size: 35px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.market-benefit h6 {
  color: var(--market-small-title);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.6px;
  /* margin-bottom: 10px; */
}

.market-benefit p {
  color: var(--market-small-desc);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  display: list-item;
  margin-left: 20px;
}

.market-new-desc {
  margin-bottom: 25px;
}
.market-new-desc p {
  color: var(--platformCard-font2);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  /* display: list-item; */
  /* margin-left: 0;
  margin-right: 0; */
}

.rtl .market-benefit p {
  margin-left: unset;
  margin-right: 20px;
}

/*#endregion*/

/*#region  **** market Account Type   ****/
.market-accountType-box {
  background-color: var(--market-card);
  border-radius: 10px;
  padding: 40px 35px 0;
  margin: auto;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  min-height: 360px;
}
.market-paragraph {
  min-height: 145px;
}

.market-accountType-box::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c0c0c;
  transition: top 0.8s ease;
  z-index: 1;
}

.market-accountType-box:hover:before {
  /* background-color: #0c0c0c; */
  top: 0;
}

.market-accountType-box * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.market-accountType-box:hover h6,
.market-accountType-box:hover .market-p1 {
  color: #f4f4f4;
}

.market-accountType-box:hover .market-p2 {
  color: #fff9ea;
}

.market-txt-box {
  margin: 20px 0;
}

.market-logo-container {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.market-logo {
  height: 40px;
}

.logo-default,
.logo-hover {
  position: absolute;
  top: 0;
  left: 50px;
  transform: translateX(-50%);
  max-height: 60px;
  transition: all 0.6s ease;
  opacity: 1;
}

.logo-hover {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.market-accountType-box:hover .logo-default {
  opacity: 0;
  transform: translate(-50%, -10px);
}

.market-accountType-box:hover .logo-hover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.market-accountType-box h6 {
  color: var(--market-h6);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.6px;
}

.market-p1 {
  color: var(--market-p1);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.6px;
}

.market-p2 {
  color: var(--market-h6);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.6px;
  margin-bottom: 0;
}

.market-span {
  font-size: 17px;
  color: var(--custom2-color);
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.6px;
  margin-bottom: 0;
}

.btn-market {
  max-width: 150px;
  font-size: 16px !important;
  padding: 15px 20px 10px 20px;
  background-color: var(--brand-gold);
  color: #fff;
  text-align: center;
  font-style: normal;
  font-weight: 500;
  border-radius: 15px;
}

.btn-market:hover,
.btn-market:focus,
.btn-market:active {
  background-color: var(--brand-gold) !important;
  color: #fff !important;
  border-color: var(--brand-gold) !important;
}
/*#endregion*/

/*#region  **** Responsive  ****/
@media (min-width: 1320px) {
  .pill-menu {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px 0;
  }
}

@media (max-width: 1260px) {
  .btn-market {
    padding: 15px 18px 10px 18px;
  }

  .market-p2 {
    font-size: 15px;
  }

  .market-span {
    font-size: 15px;
  }
}

@media (max-width: 1199px) {
  /* .market-accountType-box {
    min-height: unset;
  } */

  /* .market-paragraph {
    min-height: unset;
  } */
}

@media (max-width: 991px) {
  .market-accountType-box {
    min-height: unset;
    padding: 20px 35px;
  }

  .market-paragraph {
    min-height: unset;
  }
}

@media (max-width: 767px) {
  .market-hero {
    min-height: unset;
    height: 600px;
  }

  .market-hero-content h1 {
    font-size: 25px;
    line-height: 35px;
    margin-top: 30px;
  }

  .market-hero-content p {
    font-size: 18px;
  }

  #future-desc-section h3,
  #stocks-desc-section h3,
  #metal-desc-section h3,
  #energy-desc-section h3,
  #indices-desc-section h3,
  #market-desc-section h3 {
    font-size: 25px;
    line-height: 30px;
  }

  .pill-item {
    font-size: 18px;
  }

  .market-menu {
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  .market-accountType-box h6 {
    font-size: 16px;
  }

  .market-span,
  .market-p1,
  .market-p2 {
    font-size: 12px;
  }

  .btn-market {
    max-width: 120px;
    font-size: 12px !important;
    padding: 13px 10px 10px 10px;
  }

  .market-accountType-box {
    padding: 15px 25px;
  }

  .market-logo {
    height: 30px;
  }

  .logo-default,
  .logo-hover {
    left: 38px;
  }
}

@media (max-width: 460px) {
  .market-hero {
    height: 500px;
  }

  .market-hero-content h1 {
    font-size: 18px;
    line-height: 35px;
    margin-top: 30px;
  }

  .market-hero-content p {
    font-size: 12px;
    margin-top: unset;
  }

  #future-desc-section h3,
  #stocks-desc-section h3,
  #metal-desc-section h3,
  #energy-desc-section h3,
  #indices-desc-section h3,
  #market-desc-section h3 {
    font-size: 18px;
    line-height: 21px;
  }

  .market-benefit h6 {
    font-size: 14px;
  }

  .market-new-desc p,
  .market-benefit p {
    font-size: 12px;
  }

  .pill-item {
    font-size: 12px;
    padding: 10px;
  }
}
/*#endregion*/
