@media only screen and (min-width: 992px) {
  .mobile {
    display: none;
  }
  .navbar-toggler {
    display: none;
  }
}
.top-bar {
  height: 45px;
  color: white;
  display: flex;
}
.top-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33.3%;
  height: 100%;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.22em;
}
.top-bar a:hover {
  text-decoration: underline;
}
header.member-area #header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.75rem;
}
#header-wrapper {
  position: fixed;
  top: 45px;
  width: 100%;
  transition: all 0.3s;
  z-index: 1000;
  background-color: white;
  color: white;
}
#header-wrapper.sticky {
  top: 0;
}
#header-wrapper .header-desktop-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 3rem;
}
#header-wrapper .brand-logo {
  width: 188px;
}
#header-wrapper .navbar {
  margin-left: auto;
}
#header-wrapper .navbar-nav {
  width: 100%;
  justify-content: space-between;
  gap: 2rem;
}
#header-wrapper .header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
a.nav-link {
  font-weight: 600;
}
.member-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.member-icon span {
  font-size: 0.89em;
  opacity: 0.73;
}
.member-icon:hover .btn-icon {
  border-color: #0E9896;
  background-color: #0E9896;
}
.member-icon:hover span {
  text-decoration: underline;
  opacity: 1;
}
.navbar .nav-item .dropdown-menu {
  background-color: #0c3766;
  border: none;
}

.dropdown-item {
  color: white;
  font-weight: 400;
  position: relative;
  padding-block: 8px;
}
.dropdown-item:hover,
.dropdown-item.active {
  color: white;
  color: white;
  background-color: unset;
  font-weight: 600;
}
/*.dropdown-item:not(:last-child)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  height: 1px;
  background-color: white;
  opacity: 0.25;
} */
@media all and (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: none;
  }
  .navbar .nav-item .dropdown-menu.show {
    display: block;
  }
  
    .navbar #nav_programs.nav-item .dropdown-menu.show {
        display: grid;
        grid-template-columns: 1fr 1fr;
        
/*    grid-auto-flow: column;*/
/*    grid-template-rows: repeat(8, auto);*/
    }
  .navbar .nav-item .dropdown-menu {
    margin-top: 0;
  }
}
header .nav-item.active .nav-link {
  text-decoration: underline;
}
.nav-link:focus,
.dropdown-item:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}
.socials a, .social-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
}
.socials a img, .social-buttons a img {
    width: auto;
    height: 32px;
}
footer .f-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 3rem;
/*  padding-bottom: 3rem;*/
  gap: 5rem;
}
footer .f-left {
  width: 260px;
}
footer .brand-logo {
    width: 100%;
/*  width: 215px;*/
}
footer .f-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
/*  margin-top: 2rem;*/
}
footer .f-buttons a,
footer .f-buttons button {
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  font-size: 1.22em;
  font-weight: 800;
  padding-block: 10px;
}
footer .navbar-nav {
  flex-direction: column;
/*  flex-direction: row;*/
  flex-wrap: wrap;
  height: 150px;
  column-gap: 1rem;
  margin-right: auto;
}
footer .nav-item > .nav-link {
  font-weight: 700;
  color: #0c3766;
}
footer .nav-link {
  padding: 0.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}
footer .sub-menu {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 460px;
}
footer .sub-item {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding-block: 8px;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.1;
    max-width: 240px;
    
  font-weight: 400;
  font-size: 0.9em;
  max-width: 240px;
  line-height: 1.1;
}
footer .sub-item:hover {
  font-weight: 400;
  text-decoration: underline;
}
footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
footer .social-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}
footer .social-title {
  font-weight: 600;
}
.copyright {
  background-color: white;
  color: #2F4D3A;
  text-align: center;
  padding: 1rem;
  font-size: 0.78em;
}
@media only screen and (min-width: 992px) {
  #header-wrapper .navbar-collapse {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}
#header-wrapper .navbar-collapse .socials {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
#subscribe {
/*  margin-top: -3rem;*/
  order: 10;
  padding-bottom: 3rem;
}
#subscribe #contact_form {
  display: none;
}
#subscribe .subscribe-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
#subscribe input {
  padding: 11px 1rem;
}
@media only screen and (max-width: 1599px) {
  #header-wrapper .header-desktop-wrapper {
    gap: 1rem;
  }
  #header-wrapper .brand-logo {
/*    width: 200px;*/
  }
  #header-wrapper .navbar-nav {
    gap: 1rem;
  }
  .btn-icon {
    width: 42px;
    height: 42px;
  }
  footer .f-wrapper {
    gap: 2rem;
  }
  footer .f-left {
    width: 190px;
  }
  footer .brand-logo {
/*    width: 190px;*/
  }
  footer .navbar-nav {
/*    gap: 1rem;*/
  }
}
@media only screen and (max-width: 1199px) {
  #header-wrapper .header-desktop-wrapper {
    padding-block: 0;
  }
  #header-wrapper .brand-logo {
/*    width: 140px;*/
  }
  #header-wrapper .navbar-nav {
    gap: 0;
  }
  footer .f-wrapper {
    gap: 1rem;
  }
  footer .f-left {
    width: 160px;
  }
  footer .brand-logo {
/*    width: 140px;*/
  }
  footer .navbar-nav {
    column-gap: 0.5rem;
/*    height: 470px;*/
/*    order: 1;*/
  }
  footer .sub-item {
    max-width: 206px;
  }
  footer .footer-right {
    margin-left: auto;
  }
  #subscribe {
    margin-top: -2rem;
  }
}
.mobile .sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
@media only screen and (max-width: 991px) {
  .top-bar {
    justify-content: space-between;
  }
  .top-bar a {
    width: auto;
    flex-grow: 1;
  }
  .mobile-top {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .mobile-top .socials {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  #header-wrapper {
    position: relative;
    top: 0;
  }
  #header-wrapper .navbar {
    width: 100%;
  }
  #header-wrapper .header-buttons {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
  }
  .desktop {
    display: none !important;
  }
  .navbar {
    padding: 0;
  }
  #nav-wrapper {
    padding: 0.75rem;
  }
  .dropdown-menu {
    display: block;
  }
  footer .f-wrapper {
    padding-block: 2rem;
    column-gap: 3rem;
  }
  footer .f-left {
    width: 200px;
    display: flex;
    gap: 1rem;
  }
  footer .brand-logo {
/*    width: 200px;*/
  }
  footer .f-buttons {
    margin-top: 0;
  }
  footer .f-buttons a,
  footer .f-buttons button {
    padding-inline: 1rem;
  }
  footer .navbar-nav {
/*    order: 3;*/
/*    height: 813px;*/
    margin-right: unset;
  }
  footer .sub-menu {
    height: auto;
  }
  #subscribe {
    margin-top: -1rem;
    order: 1;
  }
  footer .f-right {
      order: 2;
  }
}
@media only screen and (max-width: 767px) {
  .top-bar {
    flex-direction: column;
    padding-block: 0;
    height: auto;
  }
  .top-bar .container {
    flex-wrap: wrap;
  }
  .top-bar a {
    width: 100%;
    padding-block: 0.5rem;
  }
  .top-bar span {
    display: none;
  }
  #header-wrapper .header-desktop-wrapper {
    justify-content: center;
  }
  #header-wrapper #nav-wrapper {
    padding: 0;
    padding-bottom: 0.5rem;
  }
  #header-wrapper .navbar-nav {
    gap: 0;
  }
  #header-wrapper .header-buttons {
    margin-block: 0.5rem;
  }
  footer .f-wrapper {
    padding-block: 1rem;
  }
  footer .f-left {
/*    width: 47%;*/
    flex-direction: column;
    gap: 0.5rem;
  }
  footer .brand-logo {
/*    width: 100%;*/
  }
  footer .f-buttons {
    gap: 0.5rem;
  }
  footer .f-buttons a,
  footer .f-buttons button {
    padding: 4px 6px;
  }
  footer .navbar-nav {
    height: 92px;
    column-gap: 4px;
  }
  footer .nav-link {
    font-size: 0.9em;
    margin-bottom: 0;
    padding: 0.3rem;
  }
  footer .sub-menu {
    margin-bottom: 0;
  }
  footer .sub-item {
    line-height: 1;
    margin-bottom: 0;
    width: 100%;
    max-width: unset;
  }
  footer .footer-right {
      align-items: flex-start;
      margin-left: unset;
  }
  footer .social-buttons {
      margin-bottom: 0.5rem;
  }
  #subscribe {
    width: 100%;
    margin-top: 0;
  }
  #subscribe .subscribe-wrapper {
    flex-direction: column;
    align-items: flex-end;
  }
  #subscribe input:not([type="submit"]) {
    width: 100%;
  }
}
