@import "~Breakpoints";
@import "~Colors";
@import "~FontSize";
@import "~Layout";

.headerRow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  @include media-breakpoint-up(md) {
    flex-direction: row;
    justify-content: space-between;
  }
}
.header {
  @include fontSizer(3.4, 1.8);
  font-weight: 700;
  line-height: 1.33;
  color: $gray;

}
.dropdown {
  background-image: linear-gradient(101deg, #f8cb64, #f06132);
  border: none;
  border-radius: 0;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 1;
  height: 4rem;
  width: 90%;
  margin: 0 auto;
  @include media-breakpoint-up(md) {
    width: 20rem;
    margin: 0;
  }
  &:after {
    content: '';
    height: 1rem;
    width: 1rem;
    border-color: white transparent transparent transparent;
    border-width: 1rem .75rem 0 .75rem;
    border-style: solid;
    transform:  translateY(-50%);
    position: absolute;
    right: 1.5rem;
    top: 50%;
    z-index: -1;
  }

  select {
    &, &:active, &:focus, &:hover {
      outline: none;
    }
    padding-left: 2rem;
    -webkit-appearance: none;
    font-size: 1.8rem;
    color: white;
    font-weight: 600;
    //line-height: 1.0;
    letter-spacing: .05rem;
    border: none;
    background-color: transparent;
    height: 100%;
    width: 120%;
    position: absolute;
    top: 0;
    left: 0;
  }
}

.events {
  @include media-breakpoint-up(lg) {
    width: 65%;
  }
}

.event {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  @include media-breakpoint-up(md) {
    flex-direction: row;
    align-items: flex-start;

    padding: 3rem 1rem;
    &:nth-of-type(even) {
      background-color: $gray-lightest;
    }

  }
}

.image {
  object-fit: cover;
  width: 100%;
  @include media-breakpoint-up(md) {
    width: 35%;
    margin-right: 3.5rem;
  }
}

.title {
  font-size: 24px;
  @include fontSizer(2.4, 1.8);
  font-weight: 700;
  line-height: 1.0;
  color: $gray;
  margin-top: 2rem;
  @include media-breakpoint-up(md) {
    margin-top: 0;
  }
}

.date, .location {
  @include fontSizer(1.6, 1.4);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.date {
  color: $gray;
}

.location {
  color: $brand-primary;
}
.description {
  @include fontSizer(1.6, 1.4);
  font-weight: 500;
  text-align: left;
  color: $gray;
  margin-top: 2rem;
}
.calendar {
  display: none;
  @include media-breakpoint-up(lg) {
    display: block;

  }
}
