#deck:after {
  content: "";
  display: inline-block;
  width: 100%;
  /*vertical-align: top;*/
}
/*=========== card structure =============*/
.card {
  width: 100%;
  vertical-align: top;
  margin-bottom: 40px;
  background: rgb(255, 255, 255);
  border-radius: 3px;
  position: relative;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0px 2px 5px #ededed;
}

.card:hover {
  cursor: pointer;
}

.card a:hover {
  text-decoration: none;
}

.card .thumbImg {
  /*max-height: 113px;*/
  width: 100%;
}

.card .textincard {
  margin-top: 10px;
  padding-left: 8px;
  padding-right: 8px;
  color: #000000;
}
.card .title,
.card .by,
.card .student {
  display: block;
  text-align: left;
  z-index: 2;
  color: #000000;
}
.card .title {
  font-family: "Kanit";
  font-weight: 400;
  font-size: 15px;
  height: 3.6em;
  margin-bottom: 7px;
  overflow: hidden;
  position: relative;
  padding: 0 5px;
  color: #3c2200;
  text-shadow: 0 1px 1px #cacaca;
}
.card .short-title {
  line-height: 1.2em;
  font-size: 16px;
  margin-bottom: 7px;
  overflow: hidden;
  position: relative;
}
.card .title:after {
  content: "";
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 1.2em;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1) 77%
  );
}

.card .by {
  margin-left: 3px;
  font-size: 12px;
  margin-bottom: 5px;

  border-bottom: #e9e9e9 1px solid;
  padding: 3px 0;
  display: flex;
  align-items: center;
}
.by .name,
.by .desc {
  margin-left: 35px;
}
.by .name,
.by .instname {
  margin-bottom: 0px;
  color: #888888;
}
.by .desc {
  font-size: 0.8em;
  color: #666666;
  line-height: 1em;
}
.card .student {
  margin-left: 3px;
  margin-bottom: 8px;
  font-size: 13px;
}
.card .price {
  font-size: 16px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 2;
  color: #ff0000;
  font-family: "Kanit";
}
.card .oldprice {
  float: right;
  font-size: 12px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 2;
  color: #b6b6b6;
}
.card .newprice {
  font-family: "Kanit";
  font-size: 16px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 4;
  position: relative;
  top: 0.3em;
  color: #ff0000;
}

.card .btn-enrollnow {
  margin-top: -4px;
  font-size: 13px;
  padding: 0px 10px 0px 10px;
  -moz-transition: 0.8s;
  -webkit-transition: 0.8s;
  -o-transition: 0.8s;
  transition: 0.8s;
  opacity: 0.85;
}

.card:hover .btn-wishlist {
  opacity: 0.85;
  height: 18px;
}

.card .btn-wishlist {
  margin-top: -4px;
  font-size: 13px;
  padding: 0px 10px 0px 10px;
  -moz-transition: 0.25s;
  -webkit-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  opacity: 0;
  height: 0px;
}

.card .bought-label {
  opacity: 0.5;
}

.card .btn-unwished {
  color: white;
}

.card .btn-wished {
  /*color: gold;*/
  opacity: 0.85 !important;
  height: 18px !important;
}

.card .btn-wished:hover {
  /*color: gold;*/
}

.card .btn-enrollnow {
  margin-top: -4px;
  font-size: 13px;
  padding: 0px 10px 0px 10px;
  opacity: 0.85;
  color: white;
}

.card .btn-studynow {
  margin-top: -4px;
  font-size: 13px;
  padding: 0px 10px 0px 10px;
  -moz-transition: 0.25s;
  -webkit-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  opacity: 0;
  color: white;
  height: 0px;
}

.card:hover .btn-studynow {
  height: 18px;
  opacity: 1;
}

.card .price,
.card .newprice {
  margin-bottom: 8px;
}

.card .countdown {
  float: left;
}
/*=========== ETC =============*/
.red {
  color: red;
}
img.small {
  width: 30px;
  height: 30px;
  float: left;
}

/*===== Course Card Overlay =======*/
.ctop {
  position: relative;
  overflow-y: clip;
}

.card .c-top:hover .courseoverlay {
  background: rgba(0, 0, 0, 0.816);
  opacity: 1;
  z-index: 5;
}

.courseoverlay {
  height: 150px;
  opacity: 0;
  padding: 15px;
  position: absolute;
  border-radius: 5px;
  top: 2px;
  left: 0;
  bottom: 0;
  -moz-transition: 0.35s;
  -webkit-transition: 0.35s;
  -o-transition: 0.35s;
  transition: 0.35s;
  width: 100%;
}
.course-name {
  height: 50px;
}
.course-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
}

.courseoverlay p {
  color: #ffffff !important;
  margin-bottom: 10px;
  font-size: 12px;
}

.courseoverlay p.bigger {
  font-size: 15px;
}

.courseoverlay .btn-system {
  margin: 3px;
}

.courseoverlay .btn-system.border-btn.btn-white {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.courseoverlay .btn-system.border-btn.btn-white:hover {
  background-color: #444;
  border: 1px solid #444;
  color: #fff;
}

.buffetPeriod.text-center {
  font-size: 1.6em;
  margin-top: 5px;
  margin-bottom: 7px;
}

@media (max-width: 767px) {
  .ctop {
    height: auto;
  }
}

/*Mini Course Card*/
/*=========== Mini card structure =============*/
.card-mini {
  width: 100%;
  vertical-align: top;
  margin-bottom: 30px;
  padding: 5px;
  background: #fff;
  box-shadow: 0px 1px 2px #aaa;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.card-mini:hover {
  cursor: pointer;
  background-color: #f3f3f3;
}

.card-mini a:hover {
  text-decoration: none;
}

.card-mini .cLeft {
  width: 35%;
  float: left;
  display: block;
  vertical-align: middle;
}

.card-mini .cRight {
  width: 63%;
  float: right;
  position: relative;
}

.card-mini .thumbImg {
  /*max-height: 113px;*/
  width: 100%;
}

.card-mini .cRight {
  padding-left: 2%;
  color: #000000;
}
.card-mini .title,
.card-mini .by {
  display: block;
  text-align: left;
  z-index: 2;
}
.card-mini .title {
  color: #000000;
  line-height: 1.2em;
  font-size: 13px;
  margin-bottom: 7px;
  overflow: hidden;
  position: relative;
}
.card-mini .price {
  font-size: 13px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 2;
}
.card-mini .oldprice {
  font-size: 11px;
  line-height: 1em;
  letter-spacing: 1px;
  color: #888888;
}
.card-mini .newprice {
  font-size: 13px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 1000;
  position: relative;
  color: #ff0000;
}

.card-blocker {
  z-index: 100;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.card-blocker-text {
  text-align: center;
  color: white;
  font-weight: 900;
  font-size: 20px;
  margin-top: 112px;
  padding: 8px 0;
}

.card-blocker-text-mini {
  text-align: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  margin-top: 35px;
  padding: 4px 0;
}
.courseThumbnail {
  border-radius: 5px;
  box-shadow: 0px 2px 3px #dadada;
}
.c-top {
  padding: 10px;
}
.top {
  display: flex;
  align-items: center;
  min-height: 45px;
  flex-direction: row-reverse;
  justify-content: space-between;
}
.btn-card {
  font-family: "Kanit";
  border: 1px solid #eb8123;
  color: #eb8123;
  font-size: 12px;
}
.btn-card:hover {
  background-color: #000000;
  color: #fff;
  border: 1px solid #000000;
}
.profile-image {
  height: 30px;
  width: 30px;
  border-radius: 5px;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0px 1px 3px #dadada;
  margin-right: 3px;
}
.bottom {
  display: grid;
}
.timimg {
  font-family: "Kanit";
  background-color: #ff4f00;
  position: absolute;
  width: 100%;
  text-align: center;
  color: #ffffff;
  border-radius: 3px 3px 0 0;
  padding: 3px 0;
  font-size: 14px;
  left: 0;
  top: 0;
}
.timimg i {
  margin-right: 3px;
  font-size: 15px;
}

.courseThumbnail .img {
  text-align: center;
}

.courseThumbnail .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}


@media (min-width: 992px) {
  .courseThumbnail .img {
    height: 140px !important;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .courseThumbnail .img {
    height: 190px;
  }
}
