/* ======================
   MOBILE MENU SYSTEM (FORCED)
====================== */

.mobile-menu-toggle {
  display: none !important;
  cursor: pointer !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-left: auto !important;
}

.mobile-menu-toggle span {
  width: 26px !important;
  height: 3px !important;
  background: #ffffff !important;
  border-radius: 3px !important;
}

/* Mobile menu container */
.mobile-menu {
  display: none !important;
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - 70px) !important;
  background: #0f1114 !important;
  padding: 24px !important;
  overflow-y: auto !important;
  z-index: 9999 !important;
}

.mobile-menu.active {
  display: block !important;
}

.mobile-menu a,
.mobile-menu span {
  display: block !important;
  color: #ffffff !important;
  padding: 12px 0 !important;
  text-decoration: none !important;
  font-size: 16px !important;
}

.mobile-group span {
  font-weight: 600 !important;
  margin-top: 16px !important;
}

/* Register button — Updated to Brand Gradient */
.mobile-register {
  margin-top: 24px !important;
  padding: 12px !important;
  text-align: center !important;
  background: linear-gradient(90deg, #10c2ba, #0a8f88) !important;
  border-radius: 8px !important;
}

/* ======================
   SUBMENU
====================== */

.mobile-submenu {
  display: none !important;
  padding-left: 14px !important;
}

.mobile-submenu a {
  font-size: 15px !important;
  opacity: 0.9 !important;
}

.mobile-submenu.active {
  display: block !important;
}

.mobile-parent {
  cursor: pointer !important;
  position: relative !important;
}

.mobile-parent::after {
  content: "▾" !important;
  float: right !important;
  transition: transform 0.3s ease !important;
}

.mobile-parent.active::after {
  transform: rotate(180deg) !important;
}


/* ======================
   MOBILE HEADER OVERRIDE
====================== */

@media (max-width: 992px) {

  .com-header-links,
  .com-header__buttons-wrap {
    display: none !important;
  }

  .page__header .com-header__wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    position: relative !important;
  }

  .page__header .FvJ-85Xh7Y {
    justify-content: flex-start !important;
    position: relative !important;
  }

  .com-header__logo-link {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  .com-header__box {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    position: absolute !important;
    right: 20px !important;
    top: 22px !important;
  }

}


/* ======================================
   HERO TEXT FIX (USING ORIGINAL CLASSES)
====================================== */

.page-m-intro__title {
  color: #ffffff !important;
  font-size: 42px !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}

.page-m-intro__description {
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  max-width: 750px !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}


/* ======================================
   REMOVE ABSOLUTE BREAKING MOBILE
====================================== */

.page-m-intro__background {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
}

.page__container[style] {
  position: relative !important;
  z-index: 10 !important;
}


/* ======================================
   HERO SPACING FIX
====================================== */

.extr-hero {
  padding: 50px 20px !important;
}

.page-m-intro__content {
  padding: 0 !important;
  margin: 0 !important;
}


/* ======================================
   TABLET
====================================== */

@media (max-width: 992px) {

  .extr-hero {
    text-align: center !important;
    padding: 40px 20px !important;
  }

  .page-m-intro__title {
    font-size: 30px !important;
  }

}


/* ======================================
   MOBILE
====================================== */

@media (max-width: 576px) {

  .extr-hero {
    padding: 30px 20px !important;
    text-align: center !important;
  }

  .page-m-intro__title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .page-m-intro__description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

}

/* ======================================
   DESKTOP – FULL WIDTH DESCRIPTION
====================================== */

@media (min-width: 993px) {

  .page-m-intro__description {
    max-width: 100% !important;
    width: 100% !important;
  }

}

.page-m-intro__background {
  margin-top: -20px !important;
}

/* ======================================
   ABOUT SECTION – MOBILE RESPONSIVE FIX
====================================== */

@media (max-width: 992px) {

  .p-home-m-seo-become-a-trader__content {
    flex-direction: column !important;
    height: auto !important;
  }

  .p-home-m-seo-become-a-trader__item-wrap {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .p-home-m-seo-become-a-trader__content > div:last-child {
    width: 100% !important;
    height: 300px !important;
    margin-top: 30px !important;
    border-radius: 16px !important;
  }

  .p-home-m-seo-become-a-trader__item-wrap-content {
    padding: 0 !important;
  }

}

@media (max-width: 576px) {

  .p-home-m-seo-become-a-trader__title {
    text-align: center !important;
    font-size: 26px !important;
  }

  .p-home-m-seo-become-a-trader__item-head {
    font-size: 20px !important;
  }

  .p-home-m-seo-become-a-trader__item-text {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

}

/* ======================================
   ABOUT SECTION – MOBILE CLEAN FIX
====================================== */

@media (max-width: 992px) {

  /* Section spacing */
  .p-home__section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-top: 0 !important;
  }

  .page__container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Title spacing */
  .p-home-m-seo-become-a-trader__title {
    margin-bottom: 15px !important;
  }

  /* Remove fixed height + stack layout */
  .p-home-m-seo-become-a-trader__content {
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    margin-top: 0 !important;
  }

  /* Full width items */
  .p-home-m-seo-become-a-trader__item-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Remove inner spacing */
  .p-home-m-seo-become-a-trader__item-wrap-content {
    padding: 0 !important;
    margin-top: 0 !important;
  }

}

/* ======================================
   SMALL MOBILE POLISH
====================================== */

@media (max-width: 576px) {

  .p-home__section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .p-home-m-seo-become-a-trader__title {
    font-size: 24px !important;
  }

  .p-home-m-seo-become-a-trader__item-head {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  .p-home-m-seo-become-a-trader__item-text {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

}

/* ======================================
   ULTRA TIGHT MOBILE – CLOSE TITLE GAP
====================================== */

@media (max-width: 992px) {

  /* Kill section vertical padding more */
  .p-home__section {
    padding-top: 15px !important;
    padding-bottom: 20px !important;
  }

  /* Remove spacing under title completely */
  .p-home-m-seo-become-a-trader__title {
    margin-bottom: 8px !important;
  }

  /* Remove wrapper spacing */
  .p-home-m-seo-become-a-trader__content-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Pull content upward slightly */
  .p-home-m-seo-become-a-trader__content {
    margin-top: -5px !important;
  }

}

@media (max-width: 992px) {
  .p-home-m-seo-become-a-trader {
    margin-top: 0 !important;
  }
}

/* ======================================
   FINAL MOBILE GAP REMOVAL (FORCE)
====================================== */

@media (max-width: 992px) {

  /* Kill ALL section margin */
  .p-home-m-seo-become-a-trader {
    margin: 0 !important;
    padding-top: 10px !important;
  }

  /* Kill default h2 margin */
  .p-home-m-seo-become-a-trader__title,
  .com-c-title {
    margin-top: 40px !important;
    margin-bottom: 35px !important;
  }

  /* Remove wrapper spacing */
  .p-home-m-seo-become-a-trader__content-wrap {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove content spacing */
  .p-home-m-seo-become-a-trader__content {
    margin: 0 !important;
    padding: 0 !important;
  }

}

/* ======================================
   REMOVE SPACE ABOVE ITEM HEADINGS
====================================== */

.p-home-m-seo-become-a-trader__item-wrap-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.p-home-m-seo-become-a-trader__item-head,
.p-home-m-seo-become-a-trader__item-wrap-content h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ======================================
   FIX SPACE BETWEEN ITEM TITLE & TEXT
====================================== */

.p-home-m-seo-become-a-trader__item-head {
  margin-bottom: 10px !important;  /* controls space below H2 */
}

.p-home-m-seo-become-a-trader__item-text {
  margin-top: 0 !important;        /* removes default paragraph top space */
}

/* ======================================
   ADD SPACE BELOW ITEM PARAGRAPH
====================================== */

.p-home-m-seo-become-a-trader__item-text {
  margin-bottom: 20px !important;
}

/* ======================================
   MOBILE CARD HEIGHT FIX (STOP CUT OFF)
====================================== */

@media (max-width: 992px) {

  .p-home-m-seo-become-a-trader__item-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }

  .p-home-m-seo-become-a-trader__item-wrap-content {
    height: auto !important;
  }

  .p-home-m-seo-become-a-trader__item-text {
    overflow: visible !important;
  }

}