#deck:after {
    content: "";
    display: inline-block;
    width: 100%;
}

/*=========== card structure =============*/
.card {
    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-family: db_helvethaicamon_x55_regular, monospace;
    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 .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 .bath {
    color: #000000;
    font-size: 24px;
    line-height: 1em;
    letter-spacing: 1px;
    font-weight: 65;
    z-index: 2;
    font-family: db_helvethaicamon_x55_regular, monospace;
}

.card .price {
    font-size: 24px;
    line-height: 1em;
    letter-spacing: 1px;
    font-weight: 65;
    z-index: 2;
    color: #FFC600;
    font-family: db_helvethaicamon_x55_regular, monospace;
}

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

.card .newprice {
    font-family: db_helvethaicamon_x55_regular, monospace;
    font-size: 24px;
    line-height: 1em;
    letter-spacing: 1px;
    z-index: 4;
    position: relative;
    top: 0.3em;
    color: #FFC600;
    font-weight: 65;
}

.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 {
    opacity: 0.85 !important;
    height: 18px !important;
}

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

.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-family: db_helvethaicamon_x55_regular, monospace;
    font-size: 24px;
    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-size: 18px;
    margin-bottom: 5px;
}

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

.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 {
    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: #FFC600;
}

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

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

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

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

.slick-prev {
    left: -15px !important;
    z-index: 1 !important;
}

.slick-next {
    right: -15px !important;
}

.slick-next,
.slick-prev {
    color: #fff !important;
    width: 30px !important;
    height: 30px !important;
}

.slick-prev:before,
.slick-next:before {
    color: #fff !important;
    font-size: 28px !important;
}

.tfac-hours {
    display: inline-block;
}