.trading-1 .content-box {
  max-width: 48.6rem;
}

.advantage-box {
  padding: 4rem 0;
  position: relative;
}

.advantage-box .icon {
    transition: all 0.25s ease;
}

.advantage-box:hover .icon {
    transform: scale(1.1);
}

.trading-advantages > div:first-child .advantage-box::before,
.trading-advantages > div:nth-child(2) .advantage-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 80%;
  background: var(--grey-color-200);
}

.trading-advantages > div:first-child .advantage-box::after,
.trading-advantages > div:nth-child(3) .advantage-box::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -13px;
  width: 1px;
  height: 80%;
  background: var(--grey-color-200);
}

.trading-2 .inner-box {
  position: relative;
  padding: 10rem 7rem 11rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #3b4855, #576d86);
}

.trading-2 .inner-box .text {
  max-width: 55rem;
}

.trading-2 .inner-box .cta-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 100%;
}

.trading-2 .inner-box .cta-btn img {
  width: 100%;
  height: 100%;
}

.trading-2 .inner-box .cta-btn .btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
}

.trading-tabs .title p {
  max-width: 800px;
  margin: auto;
}

.tabs-wrapper {
  margin-top: 4.4rem;
}

.tabs-wrapper .nav {
  background: linear-gradient(to right, #f3f8fa, #eaf3fc, #ffe7e7);
  padding: 0 1rem;
  font-weight: 600;
  font-size: 2rem;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.tabs-wrapper .nav .nav-item .nav-link {
  padding: 2rem;
  position: relative;
  color: var(--secondary-color);
  min-width: max-content;
}

.tabs-wrapper .nav .nav-item .nav-link:hover {
  color: var(--primary-color);
}

.tabs-wrapper .nav .nav-item .nav-link.active {
  background: transparent;
  color: var(--primary-color);
}

.tabs-wrapper .nav .nav-item .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transition: all 0.3s ease;
  background: var(--primary-color);
  opacity: 0;
}

.tabs-wrapper .nav .nav-item .nav-link.active::after {
  opacity: 1;
}

.why-trade p {
  max-width: 500px;
  margin: auto;
}

.why-trade .content-card {
  background: rgba(102, 123, 145, 0.17);
  border: 1px solid #bacbde;
  border-radius: 1rem;
  box-shadow: rgba(23, 20, 20, 0.25) 1px 25px 50px 0;
}

.why-trade .content-card .box {
  padding: 5rem 4rem;
}

.why-trade .content-card .box .icon {
    transition: all 0.25s ease;
}

.why-trade .content-card .box:hover .icon {
    transform: scale(1.1);
}

.why-trade .content-card .box .text {
  line-height: 1.4;
  margin-top: 1.3rem;
  font-weight: 500;
}

/* Media Queries */
@media (max-width: 1199px) {
  .trading-2 .inner-box .cta-btn {
    width: 400px;
  }
}
@media (max-width: 991px) {
  .trading-2 .inner-box .text {
    max-width: 35rem;
  }
  .trading-2 .inner-box {
    padding: 8rem 4rem 9rem;
  }
  .trading-2 .inner-box .cta-btn {
    width: 350px;
  }
  .tabs-wrapper .nav .nav-item .nav-link {
    padding: 1.6rem;
    font-size: 1.6rem;
  }
  .tabs-wrapper .nav .nav-item .nav-link::after {
    height: 2px;
  }
  .theme-table tbody tr td,
  .theme-table thead th {
    padding: 1.6rem;
    font-size: 1.4rem;
  }
  .why-trade .content-card .box {
    padding: 4rem 1rem;
  }
}
@media (max-width: 767px) {
  .trading-1 .content-box {
    max-width: 100%;
  }
  .trading-2 .inner-box {
    padding: 4rem;
  }
  .trading-2 .inner-box .text {
    max-width: 100%;
  }
  .trading-2 .inner-box .cta-btn {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    margin-top: 30px;
  }
  .trading-2 .inner-box .cta-btn .btn {
    bottom: 0;
    width: 90%;
  }
  .advantage-box {
    padding: 2rem 0;
  }
}
@media (max-width: 575px) {
  .trading-advantages > div:nth-child(3) .advantage-box::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 80%;
    background: var(--grey-color-200);
  }
  .trading-advantages > div:first-child .advantage-box::after,
  .trading-advantages > div:nth-child(3) .advantage-box::after {
    display: none;
  }
  .trading-2 .inner-box {
    padding: 3rem;
  }
}
