@media only screen and (max-width: 1521px) {
  .nav .menu {
    justify-content: flex-end !important;
  }
  .nav {
    display: flex;
    justify-content: space-between !important;
    align-items: center !important;
  }
  #mobile-menu {
    display: block !important;
  }
  #mobile-menu i {
    font-size: large !important;
  }
  #mobile-menu .submenu {
    text-align: left !important;
    left: -130px !important;
    width: 152px !important;
    height: auto !important;
    z-index: 99999 !important;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .profile .nav-item {
    padding: 10px 0 !important;
  }
  .profile .submenu li, .profile .submenu a {
    padding: 10px !important;
    font-size: 11px !important;
    text-align: left !important;
  }
  .profile .submenu a {
    text-decoration: none !important;
    color: #333 !important;
  }
}

@media only screen and (max-width: 641px) {
  /* Modal Start */
  #customDataModal .modal-content {
    width: 95% !important;
  }

  .modal {
    padding-top: 2% !important;
    padding-bottom: 2% !important;
  }
  .modal-content {
    width: 95% !important;
    min-width: unset;
  }
  #propertiesWrapper {
    padding: 10px !important;
    margin-top: 60px !important;
    /* padding-top: 70px !important; */
    height: calc(100% - 60px) !important;
  }
  #propertiesWrapper.full-modal-embeded {
    margin-top: 0 !important;
    height: 100% !important;
  }
  .remove {
    text-align: end !important;
    right: 15px !important;
    top: 10px !important;
  }
  #propertiesWrapper .map-news-container {
    overflow-y: initial !important;
    max-height: fit-content !important;
  }
  #propertiesWrapper .map-news-container .news-item {
    text-align: justify !important;
    margin-bottom: 20px !important;
  }
  #propertiesWrapper #stock-chart {
    flex-direction: column !important;
  }
  #propertiesWrapper #modal-nav-buttons {
    flex-wrap: wrap !important;
    justify-content: left !important;
  }
  #propertiesWrapper #modal-nav-buttons a {
    padding: 10px !important;
    font-size: 12px !important;
  }
  #propertiesWrapper #mainContent {
    flex-direction: column !important;
  }
  #propertiesWrapper #mainContent > table:first-child, #propertiesWrapper #mainContent #stock-chart-wrapper {
    width: 100% !important;
  }
  #propertiesWrapper #mainContent #stock-chart-wrapper {
    margin-top: 10px !important;
  }
  /* Modal End */

  /* Nav Menu Start */
  #logo-wrap {
    display: none !important;
  }
  .nav .logo {
    display: flex !important;
    width: 80px !important;
    margin-left: 0 !important;
  }
  .nav .logo img {
    width: 100% !important;
  }
  .nav .menu {
    justify-content: flex-end !important;
  }
  .nav {
    display: flex;
    /* z-index: 99999 !important; */
    justify-content: space-between !important;
    align-items: center !important;
    background: #192342 !important;
    width: 100% !important;
    height: 60px !important;
    padding-left: 0 !important;
    padding-right: 10px !important;
    box-shadow:0 .5rem 1rem rgba(0,0,0,.15);
  }
  #mobile-menu {
    display: block !important;
  }
  #mobile-menu i {
    font-size: inherit !important;
  }
  #text-logo {
    height: 45% !important;
  }
  .profile .nav-item, #account .nav-item {
    padding: 10px 0 !important;
  }
  /* .profile .nav-item {
    color: #444 !important;
  } */
  #account .cta-btn {
    padding: 8px 10px !important;
  }
  #profile .submenu {
    left: -45px !important;
    z-index: 99999 !important;
  }
  #mobile-menu .submenu {
    text-align: left !important;
    left: -130px !important;
    width: 152px !important;
    height: auto !important;
    z-index: 99999 !important;
  }
  .profile .submenu li, .profile .submenu a {
    padding: 10px !important;
    font-size: 11px !important;
    text-align: left !important;
  }
  .profile .submenu a {
    text-decoration: none !important;
    color: #333 !important;
  }
  .mt-60 {
    margin-top: 0 !important;
  }
  /* Nav Menu End */

  /* Main Page Start */
  .eleInfo {
    position: absolute !important;
    left: 0 !important;
    width: 70% !important;
    z-index: 9998 !important;
    transition: all .3s;
    width: 85% !important;
  }
  .eleInfo.left-panel-menu-closed {
    width: 0 !important;
  }
  #mapWrapper {
    width: 100%;
  }
  .autocomplete {
    right: 5px !important;
    width: 70% !important;
  }
  #customSearchautocomplete-list {
    width: 100% !important;
  }
  #viewMoreContent .search-result-item {
    padding: 0 !important;
  }
  #viewMoreContent .view-more-project {
    width: fit-content !important;
  }

  /* #markerLegends {
    margin-bottom: 65px !important;
    margin-right: 5px !important;
  } */
  /* Main Page End */
  
  .mobile-company-card {
    margin: 0 !important;
    padding: 15px !important;
  }

  /* Company Profile Start */
  #social-icons {
    margin-top: 20px !important;
  }
  #content {
    margin-top: 25px !important;
  }
  #company-projects-map {
    padding: 0 !important;
  }
  #companyPresentation, #companyManagement {
    padding: 10px 12px !important;
    font-size: 12px !important;
    height: 40px !important;
  }
  #stock-chart .company-page-chart #advChart div.qmodii-component-header.qmodii-modifiers > div > div > div.flex.xs12.sm12.md12.lg7 > div div.flex {
    flex-basis: 50% !important;
    flex-grow: 0 !important;
    max-width: 50% !important;
  }
  #stock-chart .company-page-chart #advChart div.qmodii-component-header.qmodii-component-symbolbar div.qmodii-advChart-addCompare > button {
    font-size: 12px !important;
    padding: 10px !important;
  }
  #stock-chart.stock-chart-company,
  #stock-chart .company-page-chart.qmodii,
  #stock-chart .company-page-chart.qmodii #advChart,
  #stock-chart .company-page-chart.qmodii .qmodii-content,
  #stock-chart .company-page-chart.qmodii .container.qmodii-cont.qmodii-advanced-chart,
  #stock-chart .company-page-chart.qmodii .qmod-component.qmodii-component-wrap.qmodii-component-advancedChart,
  #stock-chart .company-page-chart.qmodii .qmod-component-content,
  #stock-chart .company-page-chart.qmodii .qmodii-component-cont {
    height: 750px !important;
  }
  /* Company Profile End */

  /* Project Profile Start */
  #main-profile-container {
    flex-direction: column !important;
  }
  #main-profile-container #goBackBtn {
    margin: 0 !important;
  }
  #right-sider {
    /* order: 1 !important; */
    padding: 0 !important;
    width: 100% !important;
    /* margin-top: 30px !important; */
  }
  /* #download-links {
    margin: 25px auto !important;
  } */
  #profile-container {
    /* order: 2 !important; */
    width: 100% !important;
  }
  #request-access-container {
    flex-direction: column !important;
  }
  #request-access-container p:first-child {
    width: 100% !important;
  }
  #request-access-container div {
    justify-content: flex-end !important;
  }
  .card.company-card.bottom-card {
    margin: 0 !important;   
  }
  #additional-projects-wrapper {
    margin: 0 !important;
    padding: 15px !important;
  }
  #additional-projects {
    margin-bottom: 30px !important;
    overflow-x: auto !important;
  }
  /* Project Profile End */

  /* News Start */
  #full-page-wrapper .news-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  #quick-search-container {
    flex-wrap: wrap !important;
  }
  #filters-modal {
    z-index: 99999 !important;
  }
  /* News End */

  /* Article Start */
  #news-article-wrapper {
    flex-direction: column !important;
    padding: 10px !important;
    margin-top: 10px !important;
  }

  #news-article-wrapper #main-wrapper {
    flex-direction: column !important;
  }

  #news-article-wrapper .companies-wrapper #company-logo {
    max-height: 53px !important;
  }

  #news-article-wrapper .companies-wrapper #social-icons {
    margin-top: 0 !important;
  }

  #news-article-wrapper #companiesWrapper .news-item {
    padding: 0 !important;
  }

  #news-article-wrapper #companiesWrapper, #news-article-wrapper .companies-wrapper {
    margin: 0 !important;
    width: 100%;
  }
  /* Article End */

  /* Company Profile Content Start */
  #company-profile-content-wrapper {
    flex-direction: column !important;
    padding: 10px !important;
  }
  #company-profile-content-wrapper .profile-editor {
    order: 2 !important;
    width: 100% !important;
    padding: 10px !important;
  }
  #company-profile-content-wrapper .side-bar {
    order: 1 !important;
    width: 100% !important;
  }
  /* Company Profile Content End */

  /* Company Profile Content View Start */
  #company-profile-content-view-wrapper {
    flex-direction: column !important;
    padding: 10px !important;
  }
  #company-profile-content-view-wrapper #companyContent, #company-profile-content-view-wrapper #documents {
    width: 100% !important;
    padding: 10px !important;
  }
  /* Company Profile Content View End */

  /* Company Management Editor Start */
  #company-management-editor-wrapper {
    padding: 10px !important;
  }
  #company-management-editor-wrapper .profile-editor {
    width: 100% !important;
    padding: 10px !important;
  }
  #company-management-editor-wrapper .profile-editor .editor-save {
    width: 100% !important;
  }
  /* Company Management Editor End */

  /* Project Profile Content Start */
  #project-profile-content-wrapper {
    flex-direction: column !important;
    padding: 10px !important;
  }
  #project-profile-content-wrapper .profile-editor {
    order: 2 !important;
    width: 100% !important;
    padding: 10px !important;
  }
  #project-profile-content-wrapper .profile-editor .editor-save {
    width: 100% !important;
  }
  #project-profile-content-wrapper .side-bar {
    order: 1 !important;
    width: 100% !important;
  }
  /* Project Profile Content End */

  /* Project Profile Content View Start */
  #project-profile-content-view-wrapper {
    flex-direction: column !important;
    padding: 10px !important;
  }
  #project-profile-content-view-wrapper #profileContent, #project-profile-content-view-wrapper .side-bar {
    width: 100% !important;
    padding: 10px !important;
  }
  /* Company Profile Content View End */
  
  .hide-on-mobile {
    display: none !important;
  }

  figure {
    width: auto !important;
  }

  /* Mineral Belt Modal Style */
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent {
    padding: 0 10px 0 0 !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-properties {
    padding: 0 !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-properties div:last-of-type {
    flex-wrap: wrap !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-properties div:last-of-type input[type="button"] {
    flex-grow: 1 !important;
    width: 33% !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    margin: 0 5px 10px !important;
    height: 40px !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_mineralBeltProjects,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_newsTab,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_articlesTab,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_rankedDrillResultsTab,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_summaryTab {
    padding: 0 !important;
  }
  
  /* Top Navbar */
  #companies-search-autocomplete {
    width: 80px !important;
  }

  /* #wm-nav-btn {
    margin-right: 10px;
  } */
  
  #wm-nav-btn #tooltiptext {
    right: -5px !important;
  }

  .cta-btn-mobile {
    padding: 8px 10px !important;
  }
  .cta-btn-mobile:before {
    animation: none !important;
  }
  .cta-btn-mobile i {
    font-size: inherit !important;
  }

  #user-menu-item-unauth, #user-menu-item-auth {
    right: 0 !important;
    top: 29px !important;
  }

  div.nav > div.menu > div.nav-divider {
    height: 35px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  #static-menu-link {
    display: flex !important;
    padding: 0 10px !important;
    align-items: center !important;
  }
  #static-menu {
    z-index: 9999 !important;
  }

  #companies-searchbarautocomplete-list {
    z-index: 1000 !important;
  }
  
  /* Mineral Belt Modal Style */
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent {
    padding: 0 10px 0 0 !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-properties {
    padding: 0 !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-properties div:last-of-type {
    flex-wrap: wrap !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-properties div:last-of-type input[type="button"] {
    flex-grow: 1 !important;
    width: 33% !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    margin: 0 5px 10px !important;
    height: 40px !important;
  }
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_mineralBeltProjects,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_newsTab,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_articlesTab,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_rankedDrillResultsTab,
  #propertiesWrapper[data-type="mineral-belt"] #propertiesContent #mineral-belt-modal-wrapper-div #_summaryTab {
    padding: 0 !important;
  }

  /* Service Providers */
  #service-provider-autocomplete {
    width: 94% !important;
  }
  #service-provider-types-autocomplete, #service-provider-location-autocomplete {
    width: 100% !important;
  }

  /* serviceProviderDataModal */
  #serviceProviderDataModal .modal-header {
    padding: 8px !important;
  }
  #serviceProviderDataModal .modal-logo {
    width: 230px !important;
    padding: 10px 8px !important;
  }
  #serviceProviderDataModal #serviceProviderDataModalBody {
    padding: 8px !important;
  }
  #serviceProviderDataModal #service-providers-tabs-wrapper {
    flex-direction: column !important;
  }
  #serviceProviderDataModal #service-providers-tabs-wrapper .b-nav-tab {
    width: 100% !important;
    margin-bottom: 5px !important;
  }
  #serviceProviderDataModal #service-providers-tabs .b-tab {
    max-height: 438px !important;
  }
  
  #_footer {
    position: relative !important;
  }


  #registerModal .reg-type-wrapper {
    flex-wrap: wrap;
  }

  #registerModal .auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  #registerModal .auth-wrapper span {
    white-space: nowrap;
  }

  #registerModal .auth-wrapper > div {
    margin-top: 0;
  }

  #registerModal .modal-content {
    min-width: unset;
  }

  #registerModal .auth-div {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    height: 20px;
  }

  #registerModal .auth-div::after, #registerModal .auth-div::before {
    display: none;
  }

  #registerModal .user-details.form-wrapper {
    margin-top: 0;
  }

  #registerModal .group-field {
    flex-wrap: wrap;
  }

  #registerModal .group-field input, 
  #registerModal .group-field select {
    width: 100% !important;
  }

}

@media only screen and (max-width: 345px) {
  .cta-btn-mobile {
    padding: 5px !important;
  }
  .cta-btn-mobile i {
    font-size: small !important;
  }
}