body {
    color: #939393;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter';
    font-weight: 500;
}
a{color: #9A0000;}
a:hover{color: #9A0000;}
a.disabled{
    pointer-events: none;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter';
}

h1{
    text-align:center;
    font-size: 3em;
    color: #000;
}

h2{
    text-align:center;
    font-size: 2em;
    color: #000;
    text-decoration: underline;
    text-decoration-color: #9a0000;
    -webkit-text-decoration-color: #9a0000;
    text-transform: uppercase;
}
h3{
    font-size: 1.5em;
    color: #000;
    text-transform: uppercase;
}
h4{
    font-size: 1.2em;
    color: #000;
    text-transform: uppercase;
}
.mainnav{
    padding: 0.5em 0;
    box-shadow: 0px 4px 10px rgb(0 0 0 / 10%);
}
.navbar-brand img{
    max-height: 4em;
}
.shaded-bg{
    background-color: #f5f5f5;
    padding: 2em 1em;
}

.center-cols > div{
    text-align: center;
}
img{max-width:100%;}
#bottombar{
    background: #9a0000;
    padding: 0.5em 0;
    color: #fff;
    text-align:center;
}
#bottombar a{
    color:#fff;
}
.cursor-pointer{
    cursor: pointer;
}

.footer-sub a{
    font-size: 16px;
    line-height: 35px;
    color: #939393;
}

.custom-red-button {
    width: fit-content;
    background: #9A0000;
    color: #fff;
    padding: 10px;
    cursor: pointer;
}
.custom-red-button:hover {
    background: #740202;
}

.newsletter-input-wrapper{
    background: #F0F1F2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 10px;
}
.newsletter-input-wrapper input{
    color: #939393;
    background-color: transparent;
    border: none;
    width: 100%;
    margin-left: 5px;
}
.newsletter-input-wrapper input:focus-visible{
    outline: 0;
    border: solid 1px;
}
.newsletter-btn {
    width: 100%;
    padding: 10px;
    text-transform: uppercase;
}

#custom-header-navbar {
    align-items: center;
}
.header-login{
    margin-left: 10px;
    color: #474747;
}
.header-search{
    padding-left: 15px;
    padding-right: 15px;
}
.header-cart{
    border-left: solid 1px #D9D9D9;
    padding-left: 15px;
    padding-right: 15px;
}

.text-one-line{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    line-height: 1.5em;
    height: 1.5em;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.text-two-line{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    line-height: 1.5em;
    height: 3em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.text-three-line{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.text-four-line{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.text-five-line{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.header-resource-div{
    text-align: left;
}
.header-resource-cate{
    font-size: 14px;
    font-weight: 600;
    color: #000;
}
.header-resource-sub{

}
.header-resource-title{
    font-size: 12px;
    font-weight: 500;
    color: #939393;
}
.header-resource-title::before {
    content: "\2022";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
    color: #9a0000; /* Change the color */
    font-weight: bold; /* If you want it to be bold */
    display: inline-block; /* Needed to add space between the bullet and the text */
    width: 1em; /* Also needed for space (tweak if needed) */

}
/* text fontsize*/
.page-title-70{
    font-weight: 700;
    font-size: 70px;
    text-transform: uppercase;
    color: #000000;
}
.page-title-50{
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    text-transform: uppercase;
    color: #000000;
}
.page-title-16{
    font-weight: 500;
    font-size: 16px;
    color: #000000;
}
.page-title-30{
    font-weight: 500;
    font-size: 30px;
    color: #000000;
}

.page-txt-25{
    font-size: 25px;
    line-height: 35px;
    color: #000000;
}
.page-txt-24{
    font-size: 24px;
    line-height: 30px;
    color: #000000;
}
.page-txt-20{
    font-size: 20px;
    line-height: 27px;
    color: #000000;
}
.page-txt-16{
    font-size: 16px;
    color: #000000;
}
.page-txt-1\.5em{
    font-size: 1.5em;
}
.font-weight-500{
    font-weight: 500;
}

.custom-input{
    padding: 30px 20px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
}
.custom-input::placeholder{
    color: #939393;
}

.text-red{
    color: #9A0000;
}
.img-icon{
    max-width: 100%;
}
.search-btn{
    padding: .375rem .75rem;
}
.rounded-pill{
    border-radius: 25rem;
}

.title-div{
    margin-top: 50px;
    text-align: center;
    margin-bottom: 50px;
}
.title-txt{
    font-size: 3em;
    color: #000000;
    position: relative;
}
.title-txt-sm{
    font-size: 1.6em;
    color: #000000;
    position: relative;
}
.title-line{
    height: 5px;
    background: #9A0000;
    width: 15%;
    min-width: 150px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -100%);
}

/* Resources */
.resources-wrapper{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
}
.resource-div{
    width: 32%;
    margin-right: 2%;
    margin-bottom: 2em;
}
.resource-div:nth-child(3), .resource-div:nth-child(6), .resource-div:nth-child(9), .resource-div:nth-child(12), .resource-div:nth-child(15), .resource-div:nth-child(18), .resource-div:nth-child(21), .resource-div:nth-child(24) {
    margin-right: 0;
}
@media screen and (max-width: 991px){
    .resource-div{
        width: 47%;
        margin: 5px;
    }
}

@media screen and (max-width: 768px) {
    .resource-img div, .resource-img img{
        height: 250px;
    }
}
@media screen and (max-width: 575px) {
    .resource-img div, .resource-img img{
        height: 250px;
        width: 100%;
    }
    .resource-div{
        width: 100%;
        margin: 0;
        margin-top: 30px;
        padding: 20px;
    }
}

.resource-img{
    max-height: 350px;
    max-width: 100%;
}
.resource-img img{
    height: 350px;
    object-fit: cover;
    max-width: 100%;
}
.resource-img div{
    height: 350px;
    text-align: center;
    background: #dedede;
    color: #9A0000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}
.resource-title{
    margin-top: 25px;
    font-size: 24px;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    width: fit-content;
}
.resource-summary{
    margin-top: 20px;
    height: 75px;
    font-size: 16px;
    color: #939393;
}
.resource-link{
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-decoration-line: underline;
    text-transform: uppercase;
    color: #000000;
    margin-top: 25px;
    width: fit-content;
}

/* related post */

.rlp-img{
    height: 250px;
}
.rlp-img img{
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
.rlp-info-sub1{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-size: 13px;
    margin-top: 10px;
}
.rlp-info-sub2{

}
.rlp-title{
    min-height: 55px;
    max-height: 70px;
}
.rlp-title a{
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    color: #000000;
}
.rlp-summary{
    font-size: 15px;
    height: 70px;
    margin-top: 10px;
}
.rlp-link{
    font-weight: 700;
    font-size: 15px;
    text-decoration-line: underline;
    text-transform: uppercase;
    color: #000000;
    margin-top: 25px;
    width: fit-content;
}
/* recent posts */
.rp-calendar{
    color: #9A0000;
}
.rp-created_at{
    border-right: solid 1px #dedede;
    padding-right: 5px;
}
.rp-cate{
    padding-left: 10px;
}

/* Course List */
.course-div.slim{
    padding: 5px 14px;
}
.course-div{
    background-color: #FFFFFF;
    margin: 10px;
    padding: 20px 14px;
    text-align: center;
    width: 22%;
}

.course-title{
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    color: #000000;
    margin: 20px;
    height: 75px;
}
.course-price{
    font-size: 50px;
    font-weight: bolder;
    text-transform: uppercase;
    color: #000000;
    position: relative;
    width: fit-content;
    margin: auto;
    margin-bottom: 20px;
}
.course-price::before{
    content: 'THB';
    display: inline-block;
    position: absolute;
    left: -15px;
    top: -15px;
    font-size: 20px;
    color: #9A0000;
}
.course-button{
    background: #9A0000;
    border-radius: 3px;
    font-size: 18px;
    padding: 6px;
    color: #FFFFFF;
    margin-bottom: 25px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 50px;
}
.course-button:hover{
    background: #740202;
}
.course-button.draft{
    pointer-events: none;
    background: #9a0000b0;
}
.course-desc{
    font-size: 13px;
    line-height: 22px;
    color: #939393;
    margin-bottom: 10px;
    height: 90px;
    overflow:hidden;
    text-overflow: ellipsis;
}
.slimcourse .course-div{
    padding: 5px 1%;
    width: 23%;
}
.slimcourse .course-title{
    margin: 10px;
    height: 50px;
    line-height: 20px;
}
.slimcourse .course-button{
    margin-bottom: 10px;
    margin-top: 0px;
}
.slimcourse .course-price {
    font-size: 24px;
}
.slimcourse .course-desc {
    overflow: hidden;
    height: 65px;
    text-overflow: ellipsis;
}
.slimcourse .course-price::before{
    font-size: 12px;
}

#public_search-wrapper{
    position: fixed;
    height: 100%;
    width: 100%;
    background: #2e2b2b8a;
    z-index: 999;
}
#public_search-div{
    max-width: 50%;
    margin: auto;
    margin-top: 5em;
    background: #FFFFFF;
    padding: 11px;
    border: solid 2px #d9d9d9;
    border-radius: 6px;
}

@media screen and (max-width: 991px) {
    .course-div{
        width: 45%;
    }
}

@media screen and (max-width: 767px) {
    #custom-header-navbar{
        align-items: flex-start;
        padding: 20px;
    }
    .navbar-nav .nav-link.header-login{
        margin-left: 0px;
        margin-top: 10px;
        padding-right: 10px;
        padding-left: 10px;
    }
    .header-search{
        padding-left: 0px;
        padding-right: 0px;
    }
    .header-cart{
        border-left: none;
        padding-left: 0px;
        padding-right: 0px;
    }
    .mainnav.navbar-expand-md >.container, .mainnav.navbar-expand-md>.container-fluid {
        padding: 20px;
    }
    .course-div{
        width: 100%;
    }
}
