:root {
  --grey: #F7F7F7;
  --green: #1C9;
  --s-blue: #122033; 
}

.img-container {
    position: relative;
}

.img-container span.tag {
    position: absolute;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    border-radius: 800px;
    border: 2px solid var(--Green, #1C9);
    background: var(--Green, #1C9);
    padding: 0;
    margin: 0;
    color: var(--White-1, var(--colors-white, #FFF));
    text-align: center;
    font-family: Poppins;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 153.846% */
    letter-spacing: 1px;
    text-transform: uppercase;
    right: 8px;
    top: 8px;
    padding-inline: 12px;
}

.container-fluid {
  overflow-x: visible;
}


.featured-event-wrapper {
  position: relative;
  padding-block: 64px;
}

.featured-event-background {
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--grey);
  z-index: -1;
}

.featured-event {
  position: relative;
  z-index: 1;
}

section.featured-event h2, section.featured-event h3, section.featured-event p {
    margin: 0;
    margin-bottom: 8px;
}


section.featured-event h2 {
    font-family: Poppins;
    color: var(--s-blue);
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 50px;
}

section.featured-event h3 {
    font-family: Poppins;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 35px;
    text-transform: uppercase;
}

section.featured-event p {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 20px;
}

.featured-event__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-event__info-background {
  background: #11CC99;
}

.featured-event__promoted {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #000;
  padding-top: 10px;
  padding-bottom: 10px;
}

.featured-event__promoted .featured-event__promoted-text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
  text-transform: uppercase;
}

.featured-event__date {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 48px;
  color: #fff !important;
  text-align: center; 
  padding: 10px;
}

.featured-event__cta,
.upcoming-events__cta,
.past-events__cta {
  padding: 8px 0;
  text-align: center;
  background: #212529;
}

.featured-event__cta a,
.upcoming-events__cta a,
.past-events__cta a {
  margin-top: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 20px;
  color: #fff;
}

.upcoming-events {
  margin-top: 32px;
  margin-bottom: 32px;
}

.past-events {
  padding-top: 32px;
  padding-bottom: 32px;
}

.upcoming-events li {
  margin-bottom: 20px;
}

.upcoming-events-title-container h3,
.past-events-title-container h3 {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  line-height: 35px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.upcoming-events-title-container h4,
.past-events-title-container h4 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
  margin-bottom: 20px;
}

.upcoming-events-img-container,
.past-events-img-container {
  width: auto;
  height: 300px;
  margin-bottom: 8px;
}

.upcoming-events-img-container img,
.past-events-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

.upcoming-events-details-container,
.past-events-details-container {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 12px;
}

.upcoming-events-details-container h3,
.past-events-details-container h3 {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: #122033;
  word-wrap: break-word
}

.upcoming-events-details-container p,
.past-events-details-container p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  color: #383838;
  margin-top: 0;
}

.upcoming-events-details-container p img,
.past-events-details-container p img{
  margin-right: 8px;
  vertical-align: baseline;
}

.upcoming-events-details-container p:nth-child(3),
.past-events-details-container p:nth-child(3) {
  margin-bottom: 8px;
}

.upcoming-events-details-container .upcoming-events-details-paragraph-content,
.past-events-details-container .past-events-details-paragraph-content {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #22364C;
  margin-bottom: 12px;
  margin-top: 12px;
}

.upcoming-events__cta,
.past-events__cta {
  margin-top: auto;
}

.past-events-wrapper {
  position: relative
}

.past-events-background {
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: white;
  z-index: -1;
}

.tag-navigation {
    display: flex;
    column-gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tag-navigation a {
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    letter-spacing: 4.2px;
    text-transform: uppercase;
    margin: 0;
}

.tag-navigation a.active {
    border-bottom: 2px solid;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-pagination a {
    margin: 0;
}

.blog-pagination .blog-pagination__link--active {font-weight: 700;background: #8ee5cb;width: 22px;height: 22px;border-radius: 50%;justify-content: center;letter-spacing: 0;display: flex;justify-content: center;align-items: center;}

.blog-pagination span {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: inherit;
}

 .upcoming-events ul,
  .past-events ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /*align-items: center;*/
    /*align-items: self-end;*/
    gap: 24px;
  }



@media screen and (min-width: 1018px) {

  .tag-navigation a {
    font-size: 16px;
  }
  .featured-event {
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }
  
  section.featured-event .featured-event__title p {
    margin-bottom: 0 !important;
  }
  
  .featured-event__info {
    width: 100%;
    max-width: 310px;
    gap: 140px;
    justify-content: space-between;
  }
  
  section.featured-event h2 {
    font-size: 118px;
    line-height: 128px;
  }
  
  section.featured-event h3 {
    font-size: 48px;
    line-height: 60px;
  }
  
  /*.upcoming-events {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  
  .past-events {
    padding-top: 32px;
    padding-bottom: 32px;
  }*/
  
  .upcoming-events ul {
    align-items: unset;
  }
  
  .upcoming-events li,
  .past-events li {
    max-width: 414px;
    width: 100%;
    margin-bottom: 0;
  }
  
  .upcoming-events-img-container {
    height: 300px;
  }
  
  .upcoming-events-details-container {
    margin-bottom: 12px;
  }
  
  .upcoming-events__cta {
    margin-top: auto;
}
  
   .upcoming-events li, .past-events li {
     display: flex;
     flex-direction: column;
     max-width: unset;
     flex: 1;
     flex-basis: calc((100% / 3) - 24px);
      
  }
  
  .past-events li {
  max-width: calc(33.33% - 24px);
  }
  .upcoming-events-title-container h3,
  .past-events-title-container h3 {
    font-size: 48px;
    line-height: 60px;
  }
  
  .upcoming-events-title-container h4,
  .past-events-title-container h4 {
    font-size: 26px;
    line-height: 35px;
  }
  
  .blog-pagination {
    justify-content: flex-end;
  }
  
  .featured-event-wrapper {
    padding-bottom: 128px;
  }
  
  .upcoming-events {
    margin: 64px 0 128px;
  }
  
  .past-events {
    padding-bottom: 128px;
  }
  
   .past-events.more-events {
    padding-top 128px;
  }
}
