.header__mega-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
  padding: 25px 0 !important;
  background: #018758;
}
.header__mega-menu a {
  text-decoration: none;
}

.header__hamburger {
  margin: 11px 8px 11px 0;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}
.header__logo {
  width: 40%;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-grid-column-align: left;
  justify-self: left;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.header__logo a {
  width: 100%;
}
.header__logo img {
  -o-object-fit: contain;
  object-fit: contain;
  max-width: 100%;
}
.header-container .header__logo .hs_cos_wrapper_type_logo a img {
  margin-top: 0;
  display: block;
}
.header__cta {
  font-size: 8px;
  max-width: 30%;
}
.header__cta .btn {
  background-color: #00B1E2;
  padding: 6px 8px;
  color: #fff;
}

.header__menu {
  height: 100%;
  display: none;
  width: 100%;
}
.header__menu ul {
  list-style: none;
  padding: 0;
}
.header__menu > nav > ul {
  margin: 0;
}
.header__menu > nav > ul > li {
  width: 100%;
}
.header__menu > nav > ul > li a {
  transition: all 0.3s ease;
}
.header__menu > nav > ul > li a:hover {
  opacity: 0.6;
}
.header__menu > nav > ul > li > a, .header__menu > nav > ul > li .header__link-wrapper {
  background: none;
  /*width: calc(100% - 32px);*/
  padding: 29px 14px 33px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #fff;
}
.header__menu > nav > ul > li .header__link-wrapper__sublist {
  padding: 0;
  background-color: transparent;
}
.header__menu > nav > ul > li .no-headline .header__link-wrapper__sublist {
  display: none !important;
}
.header__link-wrapper {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.header__link-wrapper a, .header__link-wrapper .expand-trigger {
  display: block;
  color: #fff;
}
.header__link-wrapper .expand-trigger {
  position: relative;
  top: 3px;
  font-size: 6px;
  right: -5px;
}
.header__link-wrapper .expand-trigger i {
  display: block;
  text-align: right;
  font-size: 24px;
}
.header__item-content {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  display: none;
}
.header__item-content.open {
  max-height: 99rem;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.header__subitem {
  padding: 1rem 1rem 0;
}
.header__subitem:last-child {
  padding-bottom: 1rem;
}
.header__subitem.no-headline {
  padding: 0 !important;
  margin: -27px -4px -33px;
}
.header__subitem * {
  color: #fff;
}
.header__subitem a {
  color: #00B1E2;
}
.header__subitem.no-headline a {
  padding: 14px 20px;
  display: inline-block;
  opacity: 1;
  width: 100%;
  font-size: 13px;
}
.header__subitem.no-headline li {
  margin: 0;
}
.header__subitem h4 {
  font-size: 14px;
  margin-bottom: 1.2em;
}
.header__subitem h3 {
  font-size: 16px;
  margin-bottom: 0;
}
.header__subitem p {
  font-size: 12px;
  margin-top: 0;
}
.header__subitem__copy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  max-width: calc(100% - 62px);
  -ms-flex-item-align: center;
  align-self: center;
  margin: 0 auto;
  padding-top: 32px;
}
.header__subitem__copy p:last-child {
  margin-bottom: 0;
}
.header__subitem__copy img {
  margin-bottom: 20px;
}
.header__subitem__menu ul {
  display: none;
  line-height: 1.2;
  margin-top: 10px;
}
.header__subitem__menu.no-headline ul {
  display: block !important;
  margin-bottom: 0;
}
.header__subitem__menu ul li {
  margin-bottom: 0.46666em;
}
.header__subitem__resource h6 {
  margin: 8px 0 0;
  text-transform: uppercase;
  color: #00B1E2;
}
.header__subitem__resource h4 {
  margin: 11px 0 15px;
}
.header__subitem__resource h4 a {
  color: #fff;
  transition: all 0.3s ease;
}
.header__subitem__resource h4 a:hover {
  opacity: 0.6;
}
.header__subitem__resource img {
  max-height: 140px;
  margin: 8px 0 18px;
  object-fit: contain;
}
.header__subitem__resource a img {
  transition: all 0.3s ease;
}
.header__subitem__resource a img:hover {
  opacity: 0.6;
}
.header__mega-menu .header__cta .button {
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: none;
  border-radius: 25px;
  border: 1.35432px solid #FFFFFF;
  padding: 9px 17px;
  display: inline-block;
}

.header__find-a-community__popup {
  position: absolute;
  background: #fff;
  width: max-content;
  max-width: 300px;
  padding: 30px 25px;
  filter: drop-shadow(3px 4px 12px rgba(0,0,0,0.18));
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  bottom: -23px;
  transform: translate(0, 100%);
  opacity: 0;
  visibility: hidden;
  transition: .3s all;
}
.header__find-a-community-wrap.active .header__find-a-community__popup {
  opacity: 1;
  visibility: visible;
}
.header__find-a-community__popup h3 {
  text-align: left;
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  line-height: 21px;
  letter-spacing: -0.543636px;
  text-transform: uppercase;
  color: #000000;
}
.header__find-a-community__popup-links {
  margin: 25px 0 0 0;
}
.header__find-a-community__popup-links a:not(.button) {
  display: block;
  width: fit-content;
  margin: 12px 0 0 0;
  text-transform: none;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.54px;
  color: #3A3A3A;
}
.header__find-a-community__popup form {
  position: relative;
}
.header__find-a-community__popup input[type="text"] {
  box-shadow: none;
  background: #FFFFFF;
  border: 2px solid #E9E9E9;
  border-radius: 20px;
  height: 40px;
  line-height: 40px;
  min-height: 40px;
}
.header__find-a-community__popup ::-webkit-input-placeholder {
  font-size: 14px;
}
.header__find-a-community__popup ::placeholder {
  font-size: 14px;
}
.header__find-a-community__popup ::-moz-placeholder {
  font-size: 14px;
}
.header__find-a-community__popup button[type="submit"] {
  font-size: 20px;
  background: none;
  border: none;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}
@media screen and (min-width: 1075px) {
  .header__mega-menu {
    padding: 0;
    justify-content: center;
  }
  .header__hamburger {
    display: none;
  }
  .header__logo {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    width: auto;
  }
  .header__menu {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    width: auto;
    flex: auto 1 1;
    justify-content: flex-end;
    margin: 0;
  }
  .header__menu > nav > ul {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-color: transparent;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: flex-end;
  }
  .header__menu nav > ul > li {
    width: auto;
    cursor: pointer;
  }
  .header__menu nav > ul > li.active .header__item-content {
    visibility: visible;
    opacity: 1;
  }
  .saas-theme .header__menu > nav > ul > li.active > .header__link-wrapper {
    position: relative;
    z-index: 1;
    opacity: .6;
  }

  .header__menu > nav > ul > li.active > .header__link-wrapper > a {
    opacity: .6;
  }
  .header__menu nav > ul > li.active .expand-trigger i {
    -webkit-transform: translateX(6px) rotate(-180deg);
    -ms-transform: translateX(6px) rotate(-180deg);
    transform: translateX(6px) rotate(-180deg);
    opacity: 0.6;
  }
  .header__menu nav > ul > li > a, .header__menu nav > ul > li > .header__link-wrapper {
    background-color: transparent;
    color: #00558C;
  }
  .header__menu nav > ul > li > a a, .header__menu nav > ul > li > a i, .header__menu nav > ul > li > .header__link-wrapper a, .header__menu nav > ul > li > .header__link-wrapper i {
    color: #00558C;
  }
  .header__menu nav ul li .header__link-wrapper__sublist {
    width: 100%;
  }
  .header__cta {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    margin: 0;
  }
  .header__cta .btn {
    font-size: 18px;
    padding: 7px 30px 8px;
  }
  .header__link-wrapper .expand-trigger i {
    -webkit-transform: translateX(6px);
    -ms-transform: translateX(6px);
    transform: translateX(6px);
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .header__link-wrapper__sublist .expand-trigger {
    display: none;
  }
  .header__item-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    cursor: initial;
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    visibility: hidden;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    position: absolute;
    -webkit-transform: translate(0, 100%);
    -ms-transform: translate(0, 100%);
    transform: translate(0, 100%);
    padding: 0;
    bottom: 0;
  }

  .header__subitem {
    max-width: 280px;
    padding: 0 18px 5px;
    flex: 280px 1 1;
  }
  .header__subitem h6 {
    font-size: 10px;
  }
  .header__subitem h4 {
    font-size: 16px;
  }
  .header__subitem h3 {
    font-size: 16px;
    margin-bottom: 6px;
    margin-top: 0;
  }
  .header__subitem p {
    font-size: 14px;
    padding: 0 12px;
  }
  .header__subitem li {
    font-size: 14px;
  }
  .header__subitem__menu > *,
  .header__subitem__copy > * {
    max-width: 280px;
  }
  .header__subitem__copy:not(:last-child) {
    border-right: 1px solid #ccc;
  }
  .header__subitem__menu ul {
    margin-top: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .header__subitem__menu ul li a {
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .header__subitem__menu ul li a:hover {
    opacity: 0.6;
  }
  .header__subitem__resource img {
    display: none;
  }
}
@media screen and (min-width: 1200px) {
  .header__menu {
    padding-left: 20px;
  }
  .header__menu > nav > ul > li {
    font-size: 16px;
  }
  .header__subitem {
    max-width: 280px;
    padding: 0 36px 10px;
  }
  .header__subitem h6 {
    font-size: 14px;
  }
  .header__subitem h4 {
    font-size: 18px;
  }
  .header__subitem h3 {
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
  }
  .header__subitem p {
    font-size: 16px;
    padding: 0 24px;
  }
  .header__subitem li {
    font-size: 18px;
  }
  .header__subitem__resource {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 2fr 3fr;
    grid-template-columns: 2fr 3fr;
    grid-gap: 16px;
    max-width: 560px;
    min-width: 500px;
  }
  .header__subitem__resource + .header__subitem{
    min-width: 270px;
  }
  .header__subitem__resource > a {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
  }
  .header__subitem__resource > .header__subitem__inner-content {
    -ms-grid-column: 2;
    -ms-grid-row: 1;
  }
  .header__subitem__resource img {
    display: block;
    max-height: none;
    max-width: 100%;
    margin: initial;
  }
}


.header__menu .fa-angle-down:before {
  content: "";
  background: url(https://cdn2.hubspot.net/hubfs/142915/chevron-down-saas.svg) no-repeat center center;
  background-size: contain;
  width: 11px;
  height: 9px;
  display: inline-block;33
  margin-top: 1px;
}
ul.header__submenu {
  margin: 0;
  padding: 0;
}
ul.header__submenu li {
  margin: 0 0 12px;
}
ul.header__submenu li:last-of-type {
  margin: 0;
}
ul.header__submenu li a {
  text-transform: none;
  display: inline-flex;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.54px;
  color: #000;
  align-items: center;
}
ul.header__submenu li a img {
  width: 40px;
  margin-right: 17px;
}

.header__resource-item-wrapper {
  width: max-content;
  max-width: 300px;
  padding: 25px 30px;
  background: #fafafa;
}

.header__resource-item-wrapper h3 {
  margin: 15px 0 0 0;
}


.header__mega-menu h3 {
  font-style: normal;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -1.20588px;
  font-weight: 600;
  color: #018758;
  text-transform: none;
}

span.header__find-a-community-wrap {
  position: relative;
}

@media(min-width: 1075px) {
  .header__cta > span {
    display: inline-block;
    margin: 0 0 0 15px;
    vertical-align: middle;
  }
  .header__menu nav > ul > li {
    position: relative;
  }
  .header__item-content .header__submenu-wrapper {
    width: max-content;
    max-width: 300px;
    padding: 30px 25px;
  }

}

@media(max-width: 1230px) {
  .header__menu nav > ul > li > a, 
  .header__menu nav > ul > li > .header__link-wrapper {
    font-size: 14px;
  }
  .header__mega-menu .header__cta .button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .header__logo {
    max-width: 186px;
  }
  .header__menu > nav > ul > li > a, 
  .header__menu > nav > ul > li .header__link-wrapper {
    padding: 29px 9px 33px;
  }
  .header__cta > span {
    display: inline-block;
    margin: 0 0 0 9px;
  }
}

@media(max-width: 1074px) {
  .header__link-wrapper .expand-trigger {
    display: none;
  }
  .header__mega-menu {
    justify-content: center;
  }
  .header__menu {
    max-height: 500px;
    overflow: scroll;
    order: 2;
    background: #fff;
    margin: 0 -20px;
    width: calc(100% + 40px);
    color: #000;
  }
  .header__subitem.header__subitem__menu ul {
    display: block !important;
  }
  .header__subitem.header__subitem__menu .expand-trigger {
    display: none !important;
  }
  .header__hamburger {
    order: 1;
    flex: auto 1 1;
    text-align: right;
  }
  .header__cta {
    order: 0;
    max-width: none;
  }
  .header__mega-menu .header__cta a.button-wide {
    font-size: 14px;
    padding: 20px;
  }
  .header__subitem__menu ul li:last-of-type,
  .header__subitem__menu.no-headline ul,
  .header__subitem.no-headline {
    margin: 0 !important;
  }
  .header__subitem__menu ul li:last-of-type {
    padding-bottom: 30px;
  }
  .header__menu > nav > ul > li > a, 
  .header__menu > nav > ul > li .header__link-wrapper {
    padding: 24px 14px 24px;
    justify-content: flex-start;
  }
  .header__subitem__copy {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  .header__link-wrapper.header__link-wrapper__sublist {
    padding: 14px 0 18px !important;
  }
  .header__item-content {
    background: #fff !important;
    filter: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 10px 30px !important;
  }
  .header__resource-item-wrapper {
    max-width: none;
    padding: 24px 0;
    background: #fff;
    width: 100%;
    margin: 0 0 24px;
    border-bottom: 1px solid #F3F3F3;
  }
  .header__resource-item-wrapper > a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
  }
  .header__resource-item-wrapper img {
    max-width: 200px;
    width: 100%;
    border-radius: 12px;
  }
  .header__mega-menu .header__resource-item-wrapper h3 {
    max-width: 300px;
    margin: 0 0px 0 24px;
    text-align: left;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 29px;
    letter-spacing: -0.378182px;
    color: #000000;
  }
  .header__cta > span {
    display: inline-block;
    margin: 0 15px 0px 0;
    text-align: center;
    vertical-align: top;
    position: static;
  }
  .header__find-a-community-wrap .header__find-a-community__popup {
    transform: none;
    border-radius: 12px;
    width: 100%;
    max-width: none;
    margin-top: 15px;
    transition: none;
    margin-bottom: 15px;
    left: 0;
  }
  .header__find-a-community-wrap.active .header__find-a-community__popup {
    transition: .3s all;
    position: absolute;
    top: 50px;
    bottom: auto;
    width: 100%;
    left: 0;
    z-index: 1;
  }
  .header__menu > nav > ul > li {
    border-top: 1px solid #f3f3f3;
    position: relative;
    width: calc(100% - 40px);
    margin: 0 auto;
  }
  .header__menu nav > ul > li > a.has-children::after {
    content: "";
    background: url(https://www.cedarhurstliving.com/hubfs/Cedarhurst%202021%20Theme/Images/menu-plus.svg) no-repeat center center;
    background-size: contain;
    width: 25px;
    height: 25px;
    position: absolute;
    right: 14px;
    top: 24px;
  }
  .header__menu nav > ul > li > a.has-children.open::after {
    background: url(https://www.cedarhurstliving.com/hubfs/Cedarhurst%202021%20Theme/Images/menu-minus.svg) no-repeat center center;
  }
  .header__menu nav > ul > li > a, .header__menu nav > ul > li > .header__link-wrapper,
  .header__menu nav > ul > li > a a, .header__menu nav > ul > li > a i, .header__menu nav > ul > li > .header__link-wrapper a, .header__menu nav > ul > li > .header__link-wrapper i { 
    font-weight: bold !important;
  }
}

@media(max-width: 550px) {
  .header__cta {
    display: none;
    order: 3;
    padding-bottom: 25px;
    max-width: none;
    width: calc(100% + 40px);
    margin: 0 -20px;
    text-align: center;
    background: #fff;
  }
  .header__mega-menu .header__cta .button {
    padding: 15px 10px;
    width: 100%;
    font-weight: bold;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    letter-spacing: 0.22px;
    text-transform: uppercase;
    color: #BA4800;
    border-color: #BA4800;
    border: 1.35432px solid #BA4800;
  }
  .header__mega-menu .header__cta .button:hover,
  .header__mega-menu .header__cta .button:focus {
    background: #000;
  }
  .header__cta > span {
    display: inline-block;
    margin: 15px 15px 0px 0;
    text-align: center;
    vertical-align: top;
    width: calc(50% - 15px);
    padding-left: 20px;
  }
  .header__cta > span:last-of-type {
    margin: 15px 0 0px 0;
    width: 49%;
    padding-left: 0;
    padding-right: 20px;
  }
  .header__item-content {
    padding: 10px 0 !important;
  }
  .header__menu > nav > ul > li > a, 
  .header__menu > nav > ul > li .header__link-wrapper {
    padding: 24px 0;
  }
}

@media(max-width: 500px) {
  .header__resource-item-wrapper img {
    max-width: 115px;
  }
/*   .header__mega-menu .header__resource-item-wrapper h3 {
    max-width: 300px;
    margin: 25px 0px 0 0px;
  } */
}
