/**
 * This file should get overwritten if Method 1 is used. If Method 2 is chosen,
 * remove this comment and start adding your styles to this file.
 */

/* --- Custom Footer Styles --- */
.footer-wrapper {
  background: #111;
  color: #fff;
  padding: 0;
  margin: 0;
}
.footer.container {
  max-width: 100vw;
  padding: 0 40px 0 40px;
}
.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px 0 20px 0;
  flex-wrap: wrap;
}
.footer-left {
  max-width: 700px;
}
.footer-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 0;
  padding-top: 2%;
}
.footer-section-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #AAFF33;
}
.footer-section-subtitle {
  font-size: 1.1em;
  margin-bottom: 0;
}
.footer-address {
  font-size: 1.15em;
  margin-bottom: 40px;
  line-height: 1.6;
  padding-top: 10%;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 220px;
  margin-top: 0;
}
.footer-social {
  margin-bottom: 32px;
}
.footer-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-left: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.footer-icon:first-child {
  margin-left: 0;
}
.footer-icon.facebook {
  background: url(/sites/all/themes/custom/mit/images/social/facebook.svg) center center no-repeat;
  background-size: 100%;
}
.footer-icon.instagram {
  background: url(/sites/all/themes/custom/mit/images/social/instagram.svg) center center no-repeat;
  background-size: 99%;
  filter: invert(0.3);
}
.footer-icon.mit {
  background: url(/sites/all/themes/custom/mit/images/social/MIT.svg) center center no-repeat;
  background-size: 100%;
}
.footer-privacy {
  margin-top: auto;
}
.footer-privacy a {
  color: #fff;
  font-size: 1em;
  text-decoration: none;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px 0 10px 0;
}
.footer-links {
  font-size: 1.15em;
  margin-bottom: 0;
  float: none;
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
}
.footer-links-mobile {
  display: none;
}
.footer-copyright {
  color: #fff;
  font-size: 14px;
  float: none;
  text-align: right;
  span br {
    display: none;
  }
}
@media (max-width: 900px) {
  .footer-main-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-left: unset;
  }
  .footer-copyright {
    text-align: left;
    width: 100%;
    margin-top: 10px;
    span {
      font-size: 14px;
      font-family: 'neue-roman';
      font-weight: normal;
      br {
        display: block;
      }
    }
  }
  .footer-links {
    width: 100%;
    margin-bottom: 0;
    display: none;
  }
  .footer-links-mobile {
    width: 100%;
    display: block;
    a {
      padding-right: 5%;
    }
  }
  .footer-logo-row {
    flex-direction: column;
    gap: 10px;
  }
  .footer-address,
  .footer-social {
    margin-bottom: 10px;
  }
  .footer-section-title {
    font-size: 16px;
    margin-top: 5%;
  }
  .footer-section-subtitle,
  .footer-address,
  .footer-privacy a,
  .footer-links-mobile a {
    font-size: 14px;
    font-family: 'neue-roman';
    font-weight: normal;
  }
}
/* --- Custom Header Styles --- */
section.header-second-row {
    background-color: black;
}

.active-trail, .active-trail > a, li.active-trail, li.active-trail > a {
  background-color: transparent !important;
}

/* Main menu links */
.sf-menu > li > a,
.sf-menu > li > span,
.sf-menu li li > a,
.sf-menu li li > span {
  color: #fff;
  transition: color 0.2s;
}

/* Active and hovered menu items */
.sf-menu > li.active > a,
.sf-menu > li.active-trail > a,
.sf-menu > li > a:hover,
.sf-menu > li.sfHover > a,
.sf-menu li li.active > a,
.sf-menu li li.active-trail > a,
.sf-menu li li > a:hover,
.sf-menu li li.sfHover > a {
  color: #AAFF33 !important;
}

/* Remove color from inactive .active-trail children */
.sf-menu li li > a {
  color: #fff;
}

/* Ensure only active/hovered are green */
.sf-menu li li.active > a,
.sf-menu li li.active-trail > a,
.sf-menu li li > a:hover,
.sf-menu li li.sfHover > a {
  color: #AAFF33 !important;
}

/* Add minus sign to parent menu items */
.sf-menu li.sf-parent-children-0 > a::after,
.sf-menu li.active-trail.sf-parent-children-2 > a::after,
.sf-menu li.sf-total-children-16 > a::after,
.sf-menu li.sf-total-children-14 > a::after {
  content: "";
  display: inline-block;
  width: 24px;   /* or your icon size */
  height: 24px;
  background: url(/sites/all/themes/custom/mit/images/icon-plus.png) no-repeat center center;
  background-size: 16px 16px;
  float: right;
  vertical-align: middle;
  background-position: right 10px center;
}

/* Change minus to plus on hover (open) */
.sf-menu li.sf-parent-children-0.sfHover > a::after,
.sf-menu li.sf-parent-children-2.sfHover > a::after,
.sf-menu li.sf-total-children-16.sfHover > a::after,
.sf-menu li.sf-total-children-14.sfHover > a::after{
  content: "";
  display: inline-block;
  width: 24px;   /* or your icon size */
  height: 24px;
  background: url(/sites/all/themes/custom/mit/images/icon-minus.png) no-repeat center center;
  background-size: 16px 16px;
  float: right;
  vertical-align: middle;
  background-position: right 10px center;
}

.sf-menu li.sf-parent-children-0.sf-depth-1 > a::after,
.sf-menu li.active-trail.sf-parent-children-2 > a::after,
.sf-menu li.sf-total-children-8.sfHover > a::after,
.sf-menu li.sf-depth-1.sf-total-children-4.sfHover > a::after,
.sf-menu li.sf-total-children-9.sfHover > a::after  {
  content: none !important;
}
