.ag-format-container {
	width: 100%;
  margin: 0 auto;
}

.ag-courses_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  padding: 20px 0 0;
}

.ag-courses_item {
  -ms-flex-preferred-size: calc(100% - 40px);
  flex-basis: calc(100% - 40px);

  margin: 0 20px 30px;

  overflow: hidden;

  border-radius: 28px;
}

.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: var(--secondary-color);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.darkmode .ag-courses-item_link {
  background-color: var(--primary-color);
}

.ag-courses-item_link:hover,
.ag-courses-item_link:hover{
  text-decoration: none;
  color: #000000;
}

.ag-courses-item_link:hover .ag-courses-item_bg {
  -webkit-transform: scale(15);
  -ms-transform: scale(15);
  transform: scale(15);
}

.ag-courses-item_title {
  min-height:40px;
  margin: 15px 0 15px;

  overflow: hidden;

  font-weight: bold;
  font-size: 30px;
  color: #ffffff;

  z-index: 2;
  position: relative;
}

.ag-courses-item_date-box {
  font-size: 18px;
  color: #000000;

  z-index: 2;
  position: relative;
}

.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: var(--secondary-dark-color);

  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;

  border-radius: 50%;

  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}

.darkmode .ag-courses-item_bg {
  background-color: var(--button-dark-color);
}

@media only screen and (max-width: 979px) {
  .ag-courses_item {
	  -ms-flex-preferred-size: calc(50% - 30px);
	  flex-basis: calc(50% - 30px);
  }
  .ag-courses-item_title {
	  font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
	  width: 96%;
  }
}

@media only screen and (max-width: 639px) {
  .ag-courses_item {
	  -ms-flex-preferred-size: 100%;
	  flex-basis: 100%;
  }
  .ag-courses-item_title {
	  min-height: 72px;
	  line-height: 1;

	  font-size: 24px;
  }
  .ag-courses-item_link {
	  padding: 22px 40px;
  }
  .ag-courses-item_date-box {
	  font-size: 16px;
  }
}