/*
 * Changes from original code
 */
.main-menu-btn,#nav-tools{
  margin: 20px 10px;
  order:1;
}
#nav-tools{
  order: 2;
}
#main-menu .nav-link{
    display: block;
}
.main-nav {
  border: none;
  background: #fff;
  -webkit-box-shadow: none;
  -moz-box-shadow: none
  box-shadow: none;
}
#main-menu {
  margin-top: 1%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
#main-menu .mega-menu ul{
  padding: 0;
}
#main-menu .featuredimage{
  border-radius: 0;
}
#main-menu .card{
  background: none;
}
#main-menu h2{
  font-size: 1.2rem;
}
#main-menu .card-title h3{
  color: #FFF;
  font-size: inherit;
}
#main-menu .card-title h3 a{
  text-decoration: none;
  font-weight: normal;
}
#main-menu .mega-menu .purple p{
  color: #FFF;
}
#main-menu hr{
  margin:1.75rem 0;
}
#main-menu .mega-menu ul li{
  list-style: none;
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 1.5rem; 
}
#main-menu .mega-menu ul li:last-child{
  margin-bottom: 0rem;
}
#main-menu .mega-menu ul li a{
  text-decoration: none;
  font-weight: normal;
  color:#2F2F2F;
  font-size: 1rem;
}
#main-menu .mega-menu ul li a:hover{
  color: #40008D;
}
#main-menu .mega-menu ul li::before {
  content: "\f054";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  color: #40008D;
  font-size: 1rem;
  /* The magic fix to prevent the long words from going under the icon */
  position: absolute;
  left: 0;
  top: 50%; /* You may need to adjust this depending on your font size */
  transform: translateY(-50%);
}
@media (min-width: 768px) {
  #nav-tools{
    order: 1;
  }
  #main-menu .nav-link{
    display: none;
  }
  .main-menu-btn{
    margin: 20px 10px;
    order:2;
  }
  #main-menu-state:not(:checked) ~ #main-menu {
    margin-top: 1%;
  }
  #main-menu .mega-menu{
    position: fixed;
  }
  .sm-simple a, .sm-simple a.highlighted, .sm-simple a:active, .sm-simple a:focus, .sm-simple a:hover{
    padding: 10px;
    font-weight: bold;
    color: #40008D;
  }
  .sm-simple a.has-submenu{
    padding-right: 28px;
  }
  .sm-simple a.highlighted,.sm-simple a:active,.sm-simple a:focus,.sm-simple a:hover {
    background: #FFF;
  }
}
.sm-simple .sm-nowrap>li>:not(ul) a, .sm-simple .sm-nowrap>li>a{
  white-space:pre-wrap;
}
.sm-simple a .sub-arrow {
  width: 20px;
  right: 10px;
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  content: "\f107";
  background: none;
}
.sm-simple a .sub-arrow::before {
  content: '';
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  content: "\f107";
}
.sm-simple a.highlighted .sub-arrow::before {
  content: '';
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  content: "\f106";
}
#main-menu .mega-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  bottom: 0;
  z-index: -1;
  background-image: url(https://smho-test.boreal321.com/wp-content/themes/School-Mental-Health-Ontario-V1/library/images/flower.png);
  background-color: #40008D;
  background-repeat: no-repeat;
  background-position: -120px -100px
}
#main-menu .mega-menu::after {
  background-color: #FFF;
}
.sm-rtl.sm-vertical ul,
.sm-rtl.sm-horizontal li ul,
.sm-horizontal ul,
.sm-vertical ul {
  max-width: 100%;
}
#main-menu .mega-menu {
  /*background: #effbff;*/
  box-shadow: 0 -.0625rem .125rem rgba(0, 0, 0, .2), 0 .0625rem .125rem rgba(0, 0, 0, .2);
  left: 0px;
}
.sm-simple > li {
  border-left: none;
}
#main-menu .mega-menu h2 {
  font-size: 1.25rem;
}
#main-menu .mega-menu ul {
  /*margin: 2.5rem 0;*/
}