.upcoming-events {
  display: flex;
  gap: 40px;
}

.container .calendars {
  width: 600px;
  height: 527px;
  background-color: #fff;
  box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.2);
  font-family: "Roboto", sans-serif;
  overflow: hidden;
  margin-bottom: 80px;
}
.upcoming-event {
  width: 740px;
  height: 527px;
  background-color: #fff;
  box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-radius: 12px;
}
.upcoming-event h2 {
  text-align: center;
  padding-top: 20px;
  color:var(--primary);
}

.calendars .month {
  width: 100%;
  background-color: #008184;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 30px 30px;
  text-align: center;
  height: 210px;
}

.month h2 {
  font-size: 32px;
  margin-top: 25px;
}

.month p {
  margin-top: 5px;
  font-size: 17px;
}

.month .arrow {
  width: 40px;
  height: 40px;
  display: inline-block;
  background-color: #016d6f;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.month .arrow:hover {
  background-color: #005758;
}

.container .week {
  display: flex;
  background-color: #016d6f;
  color: #fff;
}

.week div {
  width: 14.22%;
  text-align: center;
  padding: 10px 0px;
  transition: 0.4s;
}

.week .active {
  background-color: #005758;
}

.week div:hover {
  background-color: #005758;
}

.container .dates {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0;
}

.dates div {
  width: 81px;
  height: 50px;
  margin: 2px;
  margin-top: 1.7px;
  text-align: center;
  line-height: 53px;
  border: 3px solid #e9e9e9;
}

.dates .today {
  background-color: #008184;
  color: #fff;
}

.dates .today:hover {
  background-color: #016d6f;
  font-size: 20px;
  font-weight: 600;
}

.dates div:hover:not(.today) {
  border: 3px dashed #111;
  background-color: #f0f0f0;
  color: #008184;
  font-size: 600;
  cursor: pointer;
  -webkit-box-reflect: below 4px linear-gradient(transparent, #0000004d);
}

.dates div:nth-child(n + 36):hover {
  -webkit-box-reflect: above 4px linear-gradient(transparent, #0000004d);
}

.calendars .dates div:nth-child(n + 43) {
  border: none !important;
  cursor: auto !important;
  background: none !important;
}

.dates .prev,
.dates .next {
  opacity: 0.5;
}

.dates .prev:hover,
.dates .next:hover {
  opacity: 1;
}

.header-date-container div {
  margin-right: 20px;
}

.header-date-container #date {
  font-size: 3em;
  font-weight: 900;
  padding-bottom: 40px;
}

.header-date-container #month {
  font-size: 2.4rem;
}

#year {
  font-size: 3.0em;
  font-weight: 700;
}

@media screen and (max-width: 576px) {
  .upcoming-events {
    flex-direction: column;
    gap: 20px;
  }

  .upcoming-event {
    width: 100%;
    height: 150px;
  }

  .container .calendars {
    width: 100%;
  }

  .month {
    padding: 20px 15px;
  }

  .dates div {
    width: calc(100% / 7 - 4px);
    height: 40px;
    font-size: 14px;
  }
  .header-date-container #date {
    font-size: 1.5em;
    font-weight: 900;
    margin-bottom: 15px;
  }
  
  .header-date-container #month {
    font-size: 1em;
  }
  
  #year {
    font-size: 1.5em;
    font-weight: 700;
  }
  .title{
    font-size: 20px;
  }
}
