/*-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-*/
/* ----------------------Newsletter----------------------------*/
/*-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-*/
.single-newsletter #main,
.single-newsletter #wrapper{
  overflow: initial;
}

.newsletter__wrapper {
  border: 1px solid #000000;
}

.newsletter-dark-bg {
  background-image: url('/wp-content/themes/efax-new/assets/images/bg-newsletter-hero.jpg');
  background-repeat: no-repeat;
  background-size: 220%;
}

@media only screen and (min-width: 992px) {
  .newsletter-dark-bg {
    background-size: contain;
  }
}
.newsletter-header {
  background-image: url('/wp-content/themes/efax-new/assets/images/bg-efax-newsletter-dark-blue.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.newsletter-footer {
  background-image: url('/wp-content/themes/efax-new/assets/images/bg-newsletter-footer.png');
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: -1px;
  border-top-left-radius: 50px;
  border-bottom-right-radius: 25px;
  border-bottom-left-radius: 25px;
  font-family: var(--primary-font-family);
  font-weight: var(--primary-font-weight-light);
  font-size: 12px;
  line-height: 18px;
  text-align: left;
  color: #DCDDE6;
}

.newsletter-footer .ef-social-media li {
  margin: 0 10px 10px 0;
}

.newsletter__sticky {
  top: 150px;
  position: sticky;
  padding: 40px 30px;
  border: 1px solid #000000;
  width: auto;
}


@media only screen and (min-width: 992px) {
  .newsletter__sticky.overflow-scroll-height {
      height: 625px;
      overflow-y: scroll;
  }
}
.sidebar {
  /*position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: auto*/; /* Or a specific height */
}

/* When the JS detects the sidebar is too tall: */
.newsletter__sticky.is-unfixed {
  position: absolute; /* Allows the sidebar to scroll with the page */
  top: 0;
  width: 40%;
}

.newsletter {
}

.newsletter-content::after {
  content: "";
  width: calc(100% - 4rem);
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 2rem;
  border-bottom: 1px solid #9D9D9D;
}

.newsletter__link-underline {
  border-bottom: 1px solid #212529;
  width: 100%;
}

.newsletter__month {
  font-size: 20px;
  text-transform: uppercase;
  min-width: 160px;
  min-height: 45px;
  background: #ffffff;
  border: 3px solid var(--vibrant-blue);
  border-radius: 20px;
  cursor: pointer;
  color: #202020;
  transition: all 0.3s ease-in-out;
}

.newsletter__month--active {
  color: #fff;
  background: var(--vibrant-blue);
}
.newsletter__month--active:hover{
  color: #fff !important;
  text-decoration: none !important;
}
.newsletter__month:hover{
  color: #fff;
  text-decoration: underline;
  background: var(--vibrant-blue);
}
.newsletter__month-list {
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease;
  height: 0;
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
}

.newsletter__month-list.open {
  height: auto;
  opacity: 1;
}


.newsletter__month-list.current-year{
  display: flex; 
}
.newsletter__month-list.year-passed{
  display: none;

}

.newsletter__month-list.year-passed {
  height: auto;
  opacity: 1;
}
.newsletter__arrow {
  transform-origin: center; 
  transition:all;
  transition-duration: .1s;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 14px 8px 0;
  border-color: transparent #212529 transparent transparent;
}

.newsletter__arrow.arrow-open {
  transform: rotate(270deg);
}

.newsletter__arrow:hover {
  cursor: pointer;
}

.newsletter__sticky .icon-linkedin {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  color: var(--primary-palette-blue-300);
  position: relative;
}

.newsletter__sticky .circle-icon {
  width: 21px;
  height: 21px;
  background-color: #fff;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  content: "";
}

.newsletter__sticky .invert_blue__cta--link:hover .circle-icon {
  background-color: var(--primary-palette-blue-100);;
}

.newsletter__sticky .invert_blue__cta--link:hover .icon-linkedin {
  color: #fff;
}


.top-stories-list {
  counter-reset: item;
}

.top-stories-list li::marker {
  display: none;
  content: "";
}

.top-stories-list li::before {
  font-size: 48px;
  font-family: var(--primary-font-family);
  font-weight: var(--primary-font-weight-bold);
  content: "0" counter(item);
  width: 78px;
  height: 72px;
  line-height: 64px;
  display: inline-block;
  position: absolute;
  margin: auto auto auto 0;
  position: absolute;
  top: 0; left: -50px; bottom: 0; right: 0;
}

.top-stories-list li {
  counter-increment: item;
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0 0 0 35px;
  font-weight: var(--primary-font-weight-regular);
  color: #000;
}

.top-stories-list li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: auto;
  margin: auto 0;
  height: 100%;
  border-left: 1px solid #000;
}

.newsletter .tertiary-slim__cta--link {
  font-size: 16px;
}
