.card {
  font-family: NotoSansThai-Regular, NotoSansThai-Regular-mac, sans-serif;
  width: 100%;
  vertical-align: top;
  margin-bottom: 30px;
  background: rgb(255, 255, 255);
  border-radius: 3px;
  position: relative;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0px 2px 5px #ededed;
  padding: 5px;
}

.card:hover {
  cursor: pointer;
}

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

.card .thumbImg {
  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-weight: 65;
  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 .title:after {
  content: "";
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 1.2em;
}

.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;
  font-weight: 500;
  z-index: 2;
  color: #ff914d;
}

.card .oldprice,
.card .oldBath {
  float: right;
  font-size: 12px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 2;
  color: #b6b6b6;
}

.card .newprice {
  font-size: 16px;
  line-height: 1em;
  letter-spacing: 1px;
  z-index: 4;
  position: relative;
  top: 0.3em;
  color: #ff914d;
  font-weight: 500;
}

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

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

/*===== Course Card Overlay =======*/
.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 {
  min-height: 50px;
}

.course-name span {
  font-size: 16px;
  font-weight: 500;
  color: black;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
}

.course-detail {
  min-height: 60px;
}

.course-detail p {
  font-size: 20px;
  font-weight: 65;
}

.course-detail p.inst-name {
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 5px;
}

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

.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;
}

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

.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;
}

.bottom {
  display: grid;
  min-height: 75px;
}

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

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

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

.slick-track {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.slick-prev:before, .slick-next:before {
  color: #ff914d !important;
}