.programs {
  position: relative;
  margin-top: 4.5em;
}

.programs-filter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.programs-filter-type {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 3em;
  margin-left: 1em;
  padding: 0 2em;
  border: 1px solid #dfb361;
  margin-top: -1em;
}

.programs-filter-type:first-of-type {
  margin-left: 0;
}

.programs-filter-type-active {
  background: #dfb361;
  color: #fff !important;
}

.programs-filter-type-active .arrow-holder {
  background-image: url(/wp-content/themes/hello-elementor-child/custom-widgets/programs/assets/icons/arrow_beige.svg);
  height: 3em;
  width: 1em;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 1.39em;
}

.programs-filter-mode {
  position: absolute;
  left: -10px;
  top: 6.9em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 100;
}

.programs-filter-mode-item {
  padding: 1em;
  border: 1px solid #dfb361;
}

.programs-filter-mode-item + .programs-filter-mode-item {
  margin-top: 10px;
}

.programs-filter-mode-item svg {
  pointer-events: none;
  width: 1.8em;
  height: 1.8em;
  fill: #dfb361;
}

.programs-filter-mode-item-active {
  background: #dfb361;
}

.programs-filter-mode-item-active svg {
  fill: #fff;
}

.programs-filter-calendar {
  display: none;
  width: 100%;
  max-width: 70%;
  margin: 62px auto 0;
  padding: 20px;
  border: 1px dashed #d3d2d2;
}

.programs-filter-calendar-active {
  display: block;
}

.programs-wrapper,
.programs-empty {
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
}

.programs-empty {
  min-height: 10em;
  text-align: center;
}

.programs-empty h2 {
  color: #000 !important;
}

.programs-item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 220px;
  padding: 20px 40px;
  border: 1px dashed #d3d2d2;
}

.programs-item + .programs-item {
  margin-top: 40px;
}

.programs-item-details {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.programs-item h3 {
  color: #000 !important;
}

.programs-item-thumbnail-and-date {
  position: relative;
  margin-left: 20px;
}

.programs-item-thumbnail {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
}

.programs-march-details {
  font-size: .8em;
}

.programs-delimiter {
  border-top: 1px dashed #d3d2d2;
  height: 1px;
  margin-bottom: .9rem;
}

.programs-item-date {
  position: absolute;
  top: -5px;
  right: -5px;
  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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #d3d2d2;
  border-radius: 50%;
  font-family: 'Lora', Sans-serif;
  font-size: 16px;
  color: #dfb361;
}

.programs-item-date span {
  line-height: 15px;
  margin: 0;
  padding: 0;
}

.programs-item-read-more {
  position: absolute;
  right: 2.5em;
  bottom: -.5em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 10em;
  height: 1em;
  background: #fff;
}

.programs-item-read-more .elementor-button-content-wrapper {
  min-width: 12em;
}

.programs-icon-holder {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.programs-icon-detail-text {
  color: #DFB361;
  font-size: 0.6rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5em 0;
  -webkit-box-align: stretch;
  -moz-box-align: stretch;
  -ms-flex-align: stretch;
  align-self: stretch;
}

@media only screen and (max-width: 767px) {
  .programs {
    margin-top: 11em;
  }

  .programs-filter-type {
    margin: 0;
    padding: 0 5px;
    border-left: none;
    font-size: .7em !important;
  }

  .programs-filter-type:first-of-type {
    border-left: 1px solid #dfb361;
  }

  .programs-filter-mode {
    left: 0;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: center;
    justify-content: center;
    width: 100%;
    margin-top: -.5em;
  }

  .programs-filter-mode-item + .programs-filter-mode-item {
    margin-top: 0;
    margin-left: 10px;
  }

  .programs-filter-calendar {
    margin-top: 7em;
    margin-bottom: -60px;
  }

  .programs-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px;
  }

  .programs-item-details {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
  }

  .programs-item-thumbnail-and-date {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    margin-bottom: 20px;
  }

  .programs-icon-holder {
    padding: 0 .5em;
  }

  .tavo-calendar__month-label {
    font-size: 1em !important;
    padding: 0 .5em !important;
  }

  .programs-filter-calendar {
    max-width: 100%;
  }

  .programs-wrapper,
  .programs-empty {
    max-width: 100%;
  }

  .programs-filter-type-active .arrow-holder {
    top: 2.4em;
  }
}

/**
 * Calendar overrides
 */

.tavo-calendar {
  font-family: 'Lora', Sans-serif;
  font-size: 1.4em;
}

.tavo-calendar__header {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 1em;
  padding: 0;
  background: none;
  color: #dfb361;
}

.tavo-calendar__nav {
  fill: #dfb361;
}

.tavo-calendar__nav_prev, .tavo-calendar__nav_next {
  padding: .5em;
  border: 1px solid #dfb361;
}

.tavo-calendar__month-label {
  font-size: 1.3em;
  padding: 0 2em;
  line-height: 1.1;
}

.tavo-calendar__week-names {
  background: none;
}

.tavo-calendar__weekday {
  text-transform: capitalize;
  font-size: 1.25em;
}

.tavo-calendar__day {
  padding-bottom: 1em;
}

.tavo-calendar__day span {
  font-size: .7em;
}

.tavo-calendar__day span:hover {
  background: #dfb361;
  color: #fff;
}

.tavo-calendar__day_highlight span,
.tavo-calendar__day_highlight span:hover {
  background: #004D7E;
  color: #fff;
}

.tavo-calendar__day_abs-today {
  background: none;
}

.tavo-calendar__day_abs-today span,
.tavo-calendar__day_abs-today span:hover {
  width: 1.8em;
  height: 1.8em;
  line-height: 1.6em;
  background: #fff;
  border: 1px solid #dfb361;
  border-radius: 50%;
  font-size: .7em;
  color: #dfb361;
}

.tavo-calendar__day_different-month {
  visibility: hidden;
}

.tavo-calendar__day_select span {
  background: #dfb361;
  border-radius: 50%;
  color: #fff;
}
