/********************** Mobile and up view **********************/

/* Hide Specializations yellow box copy on Mobile */
#item4 .mobile-nav-header {
  display: none;
}

.continuity-bar-nav {
  width: 100%;
  color: var(--brand-color-dark);
  top: 0;
  /* z-index: 1000; */
  /* background: url(/images/nasmlibraries/template/continuitybar_bg2-mobile.jpg) top left no-repeat;
      background-size: cover; */
  background-color: var(--brand-color-highlight);
  min-height: 73px;
  position: relative;
  cursor: pointer;
}

.continuity-bar-nav .continuity-need-help h2 a{
  text-transform: uppercase;
  color: var(--brand-color-dark);
}

.continuity-bar-outage a {
  color: white;
  text-decoration: underline;
}

.continuity-bar-outage a:hover {
  color: var(--brand-color-highlight);
  text-decoration: underline;
}

.slideout--highlight-padding div:not(:empty) {
  padding: 0 5px;
}

.continuity-bar-close-button {
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 9999999;
  color: var(--brand-color-dark);
  /* Remove display none to show close button on Continuity Bar */
  display: none;
}

.continuity-bar-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.continuity-countdown.hideOnDesktop {
  display: flex;
  gap: 11px;
}

.continuity-mobile-copy {
  flex-basis: 68%;
}

.continuity-bar-outage {
  z-index: 900;
  background: var(--brand-color-dark);
  color: var(--ui-color-light);
  width: 100%;
  font-size: 1rem;
  padding: 10px;
  text-align: center;
  position: relative;
}

.continuity-mobile {
  display: block;
}

.continuity-desktop {
  display: none;
}

.continuity-bar-nav {
  text-align: center;
  padding: 10px;
}

.continuity-bar-nav h2 {
  margin: 0 0 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.continuity-bar-nav p {
  font-size: 0.85rem;
  text-transform: uppercase;
}

.continuity-countdown span p:first-of-type {
  /* numbers */
  background-color: white;
  padding: 5px;
  font-size: 1rem !important;
  display: inline-block;
  border-radius: 3px;
}

.continuity-countdown span p:nth-of-type(2) {
  /* hrs min sec text */
  text-transform: uppercase;
  font-size: 0.4rem;
}

.continuity-countdown-numbers {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#navWrapper {
  background-color: white;
  font-family: "Prompt", sans-serif;
}

.logo-menu-mobile {
  /* z-index needs to be higher than Continuity Bar on mobile or slideout menu does not work on Firefox */
  z-index: 1001;
}

.search-wrapper-mobile {
  z-index: 9999999;
}

.left-top-searches {
  background-color: white;
}

#search-dropdown {
  /* This class has the z-index set elsewhere and I'm not sure where - !important for now */
  z-index: 9999999 !important;
  position: absolute;
}

.nav__header {
  margin: 0;
  padding: 0;
  /* default dark blue font color */
  /* TODO: replace with var */
  color: #123257;
  font-family: "Prompt", sans-serif;
  font-size: 2vw;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 96vw;
  height: 83px;
  align-items: center;
}

.hideOnMobile {
  display: none;
}

#hideOnDesktop p tel {
  text-decoration: underline;
}

#search-dropdown-nav {
  display: none;
  z-index: 999999;
}

.nav__account--unauth {
  font-size: 12px;
  background: var(--brand-color-dark);
  padding: 10px 16px;
  color: white !important;
  border-radius: 114px;
  text-transform: uppercase;
  /* margin-right: 30.55px; */
  /* width: 83.346px; */
}

.nav__account--cart {
  position: relative;
}

.nav__account--cart span {
  position: absolute;
  top: -12px;
  left: 40%;
  font-size: 12px;
}

.nav__account--cart span::after {
  content: "•";
  color: red;
  position: absolute;
  top: -3px;
}

.nav__header ul {
  list-style-type: none;
  padding-left: 0;
}

.nav__header input {
  box-sizing: border-box;
}

.search-wrapper {
  display: none;
  position: relative;
}

.nav__header input::placeholder {
  font-weight: 400;
  color: #000;
}

.nav__logo {
  margin-right: 10px;
}

.nav__logo img {
  width: 20vw;
}

.nav__menu--mobile img {
  width: 10vw;
}

.nav__mobile--slideout--header h2 {
  margin-bottom: 0.33vh;
  margin-top: 2vh;
}

.nav__mobile--slideout--header p {
  margin-bottom: 1.7vh;
}

#mySidenav {
  z-index: 1000001;
}

#mySidenav p {
  font-size: 0.85rem;
}

#mySidenav h2 {
  margin-top: 2vh;
  margin-bottom: 0;
}

.questions {
  margin-top: 4vh;
  margin-bottom: 4vh;
}

.help {
  display: flex;
}

.help img {
  height: 18px;
  width: 18px;
}

.help a {
  font-size: 0.875rem;
  margin-left: 0.775rem;
}

.menu-item7 {
  /* Italicize Special Offers */
  font-style: italic;
}

.logo-menu-mobile {
  display: flex;
}

.slideout-img {
  display: flex;
  align-items: center;
}

.slideout-img p {
  font-size: 0.85rem;
}

.slideout-img img {
  width: 23px;
  margin-right: 10px;
}

.slideout-search input {
  width: 100%;
  padding: 15px 10px;
  border: 1px solid var(--ui-color-mid-light);
  border-radius: 4px;
  font-size: 16px;
}

.search-wrapper-mobile {
  position: relative;
}

.search-wrapper-mobile img,
.search-input-wrapper img {
  background-color: white;
  position: absolute;
  top: 15px;
  right: 10px;
  height: 16.32px;
  width: 16.32px;
}

.search-input-wrapper button:hover {
  cursor: pointer;
}

section-card {
  display: block;
  /* Same as --brand-color-dark but need to set opacity */
  border: 1px solid rgba(18, 50, 87, 0.2);
  padding: 1.75vh;
  border-radius: 6px;
  margin-bottom: 3vh;
  color: var(--brand-color-dark);
}

section-card:hover {
  /* Same as --brand-color-dark but need to set opacity */
  border: 1px solid rgba(18, 50, 87, 1);
}

section-card .product {
  font-size: 0.813rem;
  border: 1px solid gray;
  padding: 2vw;
  border-radius: 6px;
}

section-card p {
  font-size: 12px;
}

#submenu-cards > a > section-card > div > h4 {
  font-weight: 500;
}

#all-courses-submenu-wrapper {
  width: 100%;
}

.all-courses-submenu #submenu-cards section-card {
  padding: 4vh 2.5vw;
}

#submenu-cards p {
  color: var(--brand-color-dark);
}

#all-courses-submenu-wrapper h2 {
  margin-left: 45.6px;
}

#all-courses-submenu-wrapper h4 {
  margin-top: 0;
}

a.more-courses-link {
  text-decoration: underline;
  font-size: 1rem;
}

.more-courses-link-wrapper {
  margin-top: 6vh;
}

#submenu-links p {
  font-size: 1rem;
}

#submenu-links h2 {
  margin-bottom: 2vh;
}

.submenu-panels h2 {
  color: var(--brand-color-dark);
}

.submenu-panels a {
  color: var(--brand-color-dark);
}

#submenu-cards h2 {
  margin-bottom: 1vh;
  margin-top: 6vh;
}

#personal-training,
#nutrition,
#wellness {
  display: none;
}

#submenu-image {
  display: none;
  max-width: 380px !important;
}

#submenu-image img {
  max-width: 482px;
}

#item4, #item5, #item6, #item7 {
    max-height: 540px;
}

.item5-image, .item7-image {
    /* apologies for the negative margin */
    margin-top: -80px;
}

#submenu-links p {
  margin-bottom: 2vh;
}

.nav__mobile--slideout--header .submenu-banner {
  display: none;
}

.submenu-banner {
  background-color: var(--brand-color-highlight);
  display: inline-block;
  padding: 0 10px;
  margin-bottom: 39px !important;
}

.nav__mobile--slideout--header--bottom {
  display: none;
}

.resources-links {
  display: none;
}

/* Quick fix to hide 'Learn' on Specializations submenu */
.item4-links {
  display: none;
}

#item6 {
  /* Resources submenu needs different styling */
  width: 90%;
}

#item6 > section.nav__mobile--slideout--header > h2 {
  margin-bottom: 70px;
}

.item6-sections h2 {
  font-style: normal !important;
  font-size: 15.5px;
}

.resources-dropdown:after {
  background-image: url(/images/nasmlibraries/template/arrow-down.png);
  background-size: 20px 20px;
  display: inline-block;
  width: 20px;
  height: 20px;
  content: "";
}

.resources-dropdown-toggled:after {
  background-image: url(/images/nasmlibraries/template/arrow-up.png);
  background-size: 20px 20px;
  display: inline-block;
  width: 20px;
  height: 20px;
  content: "";
}

.resources-dropdown,
.resources-dropdown-toggled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Prompt", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
}

.resources-dropdown-toggled ~ a {
  /* ~ combinator selects all adjacent siblings of resources-dropdown-toggled of type a */
  display: block !important;
}

.nav__mobile--slideout--header {
  color: var(--brand-color-dark);
}

p.slideout--highlight {
  margin-bottom: 0;
  padding-bottom: 0;
}

p.slideout-close-button {
  text-transform: uppercase;
  color: var(--brand-color-dark);
}

p.slideout-close-button::before {
  background-image: url(/images/nasmlibraries/template/chevron-reverse.png);
  background-size: 16px 16px;
  display: inline-block;
  width: 16px;
  height: 16px;
  content: "";
  margin-right: 5px;
  vertical-align: top;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  /* max-width: 80%; */
  width: max-content;
}

.product-badges .product-badge {
  border: 1px solid gray;
  padding: 5px 6px;
  height: 24px;
  line-height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  margin-bottom: 5px;
}

.nav__desktop {
  display: none;
}

.nav__desktop a {
  font-size: 20px;
}

.nav__menu--mobile {
  display: block;
}

.nav__mobile--slideout .account {
  display: flex;
  align-items: center;
}

.nav__mobile--slideout .account img {
  padding-right: 1vw;
  height: 4vh;
}

.nav__mobile--slideout--italic {
  font-style: italic;
}

.nav__mobile--slideout--cardHeader {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.nav__mobile--slideout--cardHeader h4 {
  margin-top: 0;
}

.slideout--highlight {
  background-color: #e9f250;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
}

.slideout--highlight p {
  margin: 0;
  padding: 0 3px;
  width: max-content;
}

.nav__menu > ul {
  display: flex;
  width: 33vw;
  justify-content: space-between;
}

.nav__account {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.nav__account ul a {
  position: relative;
}

.nav__account--mag {
  display: none;
}

/* Pure css hamburger menu icon */
#menuToggle {
  padding-top: 5%;
}

#menuToggle span {
  display: block;
  width: 20px;
  height: 3px;
  margin-bottom: 10px;
  position: relative;
  background: #123257;
  border-radius: 1px;
  z-index: 1;
  transform-origin: 4px 0px;
  /* transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.55s ease; */
}

#menuToggle span:first-child {
  width: 45px;
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* End hamburger menu icon CSS */
/* CSS for magnifying glass in search field */
.fg--search {
  background: white;
  position: relative;
  font-size: 0.75rem;
}

.fg--search input {
  width: 100%;
  padding: 0.25rem;
  display: block;
  border-radius: 3px;
}

.fg--search button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 20px;
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5rem;
  z-index: 2;
}

.fg--search input:focus + button .fa-search {
  color: red;
}

/* End CSS for magnifying glass in search field */

/* Overlay to blur backdrop, z-index half of menu so menu is on top */
#nav_bg_overlay {
  animation: changeWidth 8s ease-in-out infinite;
  background: rgba(140, 140, 140, 0.5);
  backdrop-filter: blur(5px);
  width: 100%;
  position: fixed;
  top: 0;
  height: 100%;
  z-index: 1100;
  height: 0;
  width: 0;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 999;
  background: white;
}

.sidenav a {
  text-decoration: none;
  display: block;
  transition: 0.3s;
  color: #123257;
  font-weight: 600;
}

.sidenav .questions a {
  display: inline-block;
}

.sidenav .closebtn {
  font-size: 1rem;
}

.account-close {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.icon img {
  width: 7vw;
}

.nav__account--mag {
  display: none;
}

#mySidenav {
  width: 90%;
  padding: 20px;
  left: -90%;
}

#mySidenav > ul {
  display: block;
  line-height: 48px;
}

#mySidenav > ul > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Prompt", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
}

#mySidenav > ul > li > a::after {
  background-image: url(/images/nasmlibraries/template/chevron.png);
  background-size: 20px 20px;
  display: inline-block;
  width: 20px;
  height: 20px;
  content: "";
}

#all-courses-submenu-wrapper h2 {
  display: none;
}

/* Quick fix while I work on a bug */
#all-courses-submenu-wrapper .more-courses-link-wrapper:nth-of-type(2),
#all-courses-submenu-wrapper .nav__mobile--slideout--header--bottom:nth-of-type(2) {
  display: none;
}

section.nav__mobile--slideout--header > h2 {
  text-transform: uppercase;
}

.questions h2 {
  text-transform: uppercase;
  font-weight: 800;
}

.nav__mobile--slideout--pt {
  position: absolute;
  z-index: 1000002;
  display: none;
  top: 50px;
  width: 90%;
  padding: 3vw;
  color: var(--brand-color-dark);
}

h2.mobile-nav-header {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.nav__mobile--slideout--pt.fade-in {
  /* If it has the fade-in class, it's the submenu */
  top: 10px;
}

.mobile-close-controls {
  display: flex;
  justify-content: space-between;
}

  .close-nav-desktop {
  color: var(--brand-color-dark);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

#item4 .submenu-panels {
width: 100%;
}

.sideNavDesktop {
  /* height: 600px !important; */
  align-items: flex-start !important;
}

.product-badge {
  border-radius: 30px;
}

.submenu-panels h2 {
  text-transform: uppercase;
  font-style: italic;
}

#submenu-sections a {
  font-size: 1rem;
}

.more-courses-link:hover,
#submenu-links > p > a:hover,
.resources-links:hover {
  font-weight: 600;
}

/* Fade animations */

/* Fade In */
.fade-in {
  animation: fadeIn ease 0.5s;
  -webkit-animation: fadeIn ease 0.5s;
  -moz-animation: fadeIn ease 0.5s;
  -o-animation: fadeIn ease 0.5s;
  -ms-animation: fadeIn ease 0.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Fade out */
.fade-out {
  animation: fadeOut ease 0.5s;
  -webkit-animation: fadeOut ease 0.5s;
  -moz-animation: fadeOut ease 0.5s;
  -o-animation: fadeOut ease 0.5s;
  -ms-animation: fadeOut ease 0.5s;
}

@keyframes fadeOut {
  100% {
    opacity: 0;
  }

  0% {
    opacity: 1;
  }
}

@-moz-keyframes fadeOut {
  100% {
    opacity: 0;
  }

  0% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeOut {
  100% {
    opacity: 0;
  }

  0% {
    opacity: 1;
  }
}

@-o-keyframes fadeOut {
  100% {
    opacity: 0;
  }

  0% {
    opacity: 1;
  }
}

@-ms-keyframes fadeOut {
  100% {
    opacity: 0;
  }

  0% {
    opacity: 1;
  }
}

/* Accessibility */
#navWrapper a:focus-visible {
  border: 2px solid var(--brand-color-dark);
  border-radius: 0.5rem;
}

#navWrapper a:focus-visible section-card {
  border: 2px solid var(--brand-color-dark);
  border-radius: 6px;
}

 /* Styling overrides for submenu rearrangement */
 .submenu-panels {
  height: 540px;
}

#submenu-image {
  transform: scaleX(-1);
}

#submenu-image > img, #submenu-image img {
  height: 540px;
}

#item5 section > h2:first-of-type, #item7 section > h2:first-of-type {
  display: none;
}

@media only screen and (min-width: 430px) {
  .continuity-bar-mobile {
    flex-direction: row;
    align-items: flex-start;
  }

  .continuity-mobile-copy {
    text-align: left;
  }
}

/********************** Tablet and up view **********************/
@media only screen and (min-width: 768px) {
  .nav__account--cart span {
    left: 50%;
  }

  .nav__logo img {
    width: 17.21vw;
  }

  #menuToggle {
    padding-top: 8%;
  }

  .nav__menu--mobile img {
    width: 9.51vw;
  }

  .nav__account {
    justify-content: flex-end;
    align-items: end;
  }

  .icon img {
    width: 4vw;
  }
}
/********************** Tablet Landscape and up view **********************/
@media only screen and (min-width: 1024px) {
  #navWrapper {
    position: relative;
    z-index: 600;
  }

  #hideOnDesktop {
    display: none;
  }

  .hideOnDesktop {
    display: none;
  }

  .hideOnMobile {
    display: block;
  }

  #nav_bg_overlay {
    z-index: 500;
  }

  .continuity-bar-outage {
    z-index: 10005;
  }

  .continuity-bar-nav {
    display: flex;
    justify-content: space-between;
    /* background: url(/images/nasmlibraries/template/continuitybar_bg1.jpg) top left no-repeat;
        background-size: cover; */
    min-height: 53px;
    /* position: fixed; */
    top: 0;
    width: 100%;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    z-index: 1000;
    cursor: pointer;
  }

  .continuity-bar-nav div {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .continuity-bar-nav h2 {
    margin: 0 0 2px;
    font-size: 15.5px;
  }

  .continuity-bar-nav p {
    cursor: pointer;
  }

  .continuity-countdown.hideOnMobile {
    margin-left: 20px;
  }

  .continuity-countdown span p:first-of-type {
    /* numbers */
    background-color: white;
    padding: 5px;

    font-size: 16px;
    display: inline-block;
    border-radius: 3px;
  }

  .continuity-countdown span p:nth-of-type(2) {
    /* hrs min sec text */
    text-transform: uppercase;
    font-size: 6px;
    font-weight: 600;
  }

  .close-nav-desktop {
    position: absolute;
    right: 20.24px;
    top: 19.77px;
    color: var(--brand-color-dark);
    font-size: 1.1875rem;
  }

  .continuity-bar-outage {
    font-size: 16px;
  }

  .account-close {
    display: none;
  }

  .resources-links {
    display: block;
  }

  .specializations-submenu {
    display: flex;
  }

  .specializations-submenu #submenu-links {
    display: flex;
    flex-direction: column;
    height: 400px;
    width: 100%;
    flex-wrap: wrap;
  }

  #item6 {
    /* Resources submenu needs different styling */
    width: 100%;
  }

  .resources-dropdown:after {
    background-image: none;
    content: "";
  }

  .resources-dropdown {
    display: block;
    /* !important to override some default SiteFinity(?) styling */
    margin-top: 0 !important;
  }

  .submenu-banner {
    margin-left: 45.6px;
    text-transform: uppercase;
    font-size: 13px;
  }

  #submenu-sections {
    /* This is the Resources submenu */
    display: flex;
    width: 100%;
    margin: 32.2px 86.47px;
  }

  #submenu-sections a {
    font-size: 16px;
    margin-bottom: 35px;

    /* !important necessary to override inline styling from jquery toggle */
    display: block !important;
  }

  #submenu-sections div {
    width: 25%;
  }

  #submenu-links h2 {
    margin-bottom: 35px;
  }

  .more-courses-link-wrapper {
    margin-top: 0;
    padding: 15px 0 0;
  }

  .all-courses-submenu #submenu-cards section-card h4 {
    padding-top: 0;
    margin-top: 0;
  }

  #all-courses-submenu-wrapper {
    width: unset;
  }

  #all-courses-submenu-wrapper h2 {
    display: block;
  }

  .all-courses-submenu #submenu-cards {
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    height: 280px;
    flex-direction: row;
    width: 100%;
  }

  .all-courses-submenu #submenu-cards section-card {
    padding: 16px 8px;
    width: 426.667px;
    margin-right: 33.31px;
  }

  .item6-sections h2 {
    font-style: italic !important;
  }

  .sidenav {
    position: relative;
  }

  .nav__account--cart span {
    position: absolute;
    top: -12px;
    left: 40%;
    font-size: 12px;
  }

  .nav__mobile--slideout--header {
    background: var(--brand-color-highlight);
    width: 427px;
    position: absolute;
    top: 518.19px;
    left: 24.33px;
    padding: 21.84px 22.08px;
    border-radius: 10px;
  }

  .nav__mobile--slideout--header h2 {
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .nav__mobile--slideout--header p,
  .nav__mobile--slideout--header a {
    font-size: 16px;
  }

  .nav__mobile--slideout--header p {
    margin-bottom: 11.76px;
  }

  .nav__mobile--slideout--header a {
    color: var(--brand-color-dark);
    text-decoration: underline;
  }

  section.nav__mobile--slideout--header {
    display: none;
  }

  .nav__mobile--slideout--header--bottom {
    display: block;
  }

  section.nav__mobile--slideout--header--bottom {
    display: none;
  }

  .nav__mobile--slideout--pt {
    width: 100%;
    background: white;
    top: unset;
    max-width: 100vw;
    height: unset;
    overflow: hidden;
    padding: 0;
  }

  .nav__logo {
    margin-right: 0;
  }

  .nav__account {
    order: 1;
  }

  .icon img {
    width: 23px;
  }

  p.slideout-close-button {
    display: none;
  }

  .submenu-panels {
    display: flex;
    /* Commented out for testing */
    /* height: 671px; */
  }

  .submenu-banner {
    display: inline-block;
    padding: 10px;
    margin-top: 28px;
  }

  #specializations-wrapper .submenu-banner-bottom {
    font-size: 16px;
    margin-left: 45.6px;
  }

  #all-courses-submenu-wrapper > section {
    background-color: transparent;
    padding: 0;
    margin: 0;
  }

  .nav__mobile--slideout--header--bottom > section > h2 {
    padding-bottom: 0;
  }

  .submenu-panels > div {
    width: 100%;
  }

  #submenu-cards,
  #submenu-links,
  .specializations-submenu h2 {
    margin-left: 45.6px;
  }

  #submenu-cards h2 {
    margin-bottom: 17px;
    margin-top: 35px;
  }

  section-card {
    padding: 0.75vh;
    margin-bottom: 1vh;
  }

  section-card .product {
    height: 20px;
    width: 20px;
  }

  #submenu-cards section-card h4 {
    margin-top: 5px;
    font-size: 16px;
    line-height: 24px;
  }

  p.product {
    margin: 0;
    padding: 0;
  }

  #specializations-wrapper a.more-courses-link,
  #all-courses-submenu-wrapper a.more-courses-link {
    margin-left: 45.6px;
    margin-top: 0;
  }

  .all-courses-submenu #submenu-cards > a.more-courses-link {
    margin-left: 0;
  }

  /* Style for menu */
  /* Because of the structure of the side menu vs main menu, it doesn't behave properly with Flexbox */
  #mySidenav {
    width: 88%;
    left: 0;
    margin-top: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center !important;
    /* Overflow hidden to avoid temporary scroll bar */
    overflow: hidden;
  }

  .nav__header {
    max-width: unset;
    justify-content: space-around;
  }

  #mySidenav ul {
    margin: 0;
  }

  #mySidenav > ul > li > a::after {
    display: none;
  }

  #mySidenav > ul {
    display: flex;
    justify-content: flex-start;
    line-height: 1em;
    gap: 20px;
  }

  #mySidenav > ul > li > a {
    font-size: 12px;
    font-weight: 500;
    /* Transparent border-bottom to offset blue border-bottom on hover */
    border-bottom: 3px solid transparent;
    line-height: 75px;
  }

  #mySidenav > ul > li > a:hover {
    border-bottom: 3px solid transparent;
  }

  .menu-highlight {
    border-bottom: 3px solid var(--brand-color-dark) !important;
  }

  .sidenav {
    background: transparent;
    padding: 0;
  }

  .sidenav .closebtn {
    display: none;
  }

  #main-menu {
    font-size: 0.6em;
  }

  .nav__mobile--slideout .account {
    display: none;
  }

  .slideout-img,
  .slideout-search {
    display: none;
  }

  .nav__account--mag {
    display: block;
  }

  .nav__desktop {
    display: flex;
  }

  .nav__desktop a {
    color: #123257;
  }

  .nav__logo {
    width: 101px;
  }

  .nav__menu--mobile {
    display: none;
  }

  nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    margin: 0;
    width: 100%;
  }

  .header__banner {
    background-color: yellow;
    color: darkblue;
    padding: 10px;
  }

  .nav__menu {
    display: flex;
    font-size: 15px;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .nav__account button {
    background-color: lightgray;
    border-radius: 20px;
    padding: 10px 20px;
    border: 0;
  }

  #submenu-cards {
    font-size: 16px;
  }

  #submenu-cards p {
    font-style: normal;
  }

  #submenu-sections a {
    margin-bottom: 2.1875rem;
  }

  #submenu-links p {
    line-height: 24px;
    font-size: 16px;
   
  }



    /* Quick fix for Specializations cards width */
    .item4-cards section-card{
      width: 60%;
    }

  .item4-links p {
    width: 33%;
  }

  #submenu-links > p {
    margin-bottom: 35px;
  }

    /* Fix for all-courses mouseover issues */
    #all-courses-submenu-wrapper #submenu-cards > a {	       
      height: 100px;	
      margin-bottom: 20px;
    }
    
    #all-courses-submenu-wrapper .all-courses-submenu #submenu-cards section-card {
        height: 100px;
    }

    /* Style overrides for submenu rearrangement */
    #item5 section > h2:first-of-type, #item7 section > h2:first-of-type {
      display: block;
    }
      #specializations-wrapper #submenu-links>p {
        min-width: 400px;
    }
      
      #item5 > section > h2:first-of-type, #item7 > section > h2:first-of-type {
        text-transform: uppercase;
        font-style: italic;
        margin-bottom: 17px;
        margin-top: 35px;
        margin-left: 45.6px;
        display: block;
    
      }
      .specializations-submenu #submenu-links {
        display: flex;
        flex-direction: column;
        height: 200px;
        width: 100%;
        flex-wrap: wrap;
    }
      
    /* Load-bearing empty CSS block (workaround for a Chrome display bug */
      .menu-highlight {
        
      }
      /* End empty block */
      
      .specializations-submenu-content {
        display: flex;
      }
      
        #specializations-wrapper {
        width: 800px;
      }
      
      .all-courses-submenu #submenu-cards section-card {
      margin-bottom: 0;
            /* height: 100%; */
      }
      
      #submenu-cards {
        gap: 10px;
      }
      
      .nav__mobile--slideout--pt.fade-in {
        top: unset;
      }
}

/********************** Laptop and up view **********************/
@media only screen and (min-width: 1440px) {
  #mySidenav {
    justify-content: flex-start;
    width: 80%;
  }

  section.nav__mobile--slideout--header {
    display: block;
    z-index: 4000;
  }

  .nav__mobile--slideout--header--bottom,
  #item6 > section.nav__mobile--slideout--header {
    display: none;
    z-index: 4000;
  }

  .nav__account {
    align-items: center;
  }

  .nav__account--cart span {
    top: -3px;
  }

  .nav__account--cart span::after {
    top: -15px;
    font-size: 24px;
  }

  #mySidenav > ul {
    justify-content: flex-start;
  }

  .nav__header {
    margin: 0 20px;
  }

  .logo-menu-mobile {
    margin-right: 20px;
  }

  .nav__account--unauth {
    width: unset;
  }

  .close-nav-desktop {
    /* Override to hide close button (still in DOM and has functionality) */
    display: none !important;
  }

  #item4 .submenu-panels {
    width: 100%;
  }

  #submenu-image {
    display: block;
    width: 482px;
  }

  #submenu-image img {
    height: 100%;
    max-inline-size: unset;
  }

  #specializations-wrapper .submenu-banner-bottom {
    margin-left: 0;
  }

  .specializations-submenu .nav__mobile--slideout--header h2 {
    margin-left: 0;
  }

  section-card {
    padding: 8px;
    margin-bottom: 16px;
  }

  /* Style overrides for submenu rearrangement */
  #submenu-image {
    max-width: 390px !important;

    /*This height is a hacky quick fix. Need to redo CSS so it's unnecessary. */
    height: 550px;
  }
  
#submenu-sections.item6-sections {
margin-left: 0;
}

.item6-sections div:nth-of-type(1) {
margin-left: 45.6px;
}

  
  #item4 > section {
    display: flex;
    justify-content: space-between;
  }
    .nav__mobile--slideout--header {
    background: var(--brand-color-highlight);
    width: 336px;
    position: absolute;
    top: 366px;
    left: unset;
    right: 24.33px !important;
    padding: 21.84px 22.08px;
    border-radius: 10px;
}
  
  .nav__mobile--slideout--pt section {
margin-left: 15%;
}
  
  #all-courses-submenu-wrapper {
    display: flex;
  }
  
  .all-courses-submenu #submenu-cards section-card {
width: 332px;
  }

}

/********************* Desktop view **********************/
@media only screen and (min-width: 1900px) {
      /* Fix for all-courses mouseover issues */
      #all-courses-submenu-wrapper #submenu-cards > a {	       
        height: 80px;	
        margin-bottom: 60px;
      }
      
      #all-courses-submenu-wrapper .all-courses-submenu #submenu-cards section-card {
          height: 80px;
      }

      .all-courses-submenu #submenu-cards section-card {
        width: 440px;
          }
          
            .nav__mobile--slideout--pt section {
        margin-left: 290px;
        }
          
          .item6-sections div:nth-of-type(1) {
        margin-left: 3%;
        }
}
