.box_header {
    background-color: #2e2c7c;
    padding: 1.5em 1.5em;
    border-radius: 1rem;
}

/*---- dropdown_news_type ------*/
.dropdown_news_type {
    max-width: 100%;
}

.dropdown_news_type .btn_news_type {
    font-family: 'Noto Sans Thai', sans-serif;
    width: 100%;
    border: none;
    background-color: #ffffff;
    color: #666666;
    font-size: 1.105em;
    text-indent: 20px;
    border-radius: .6rem;

}

.dropdown_news_type .btn_news_type i.fa-caret-down {
    margin-top: 6px;
    margin-right: 15px;
    /* color: red; */
}

.dropdown_news_type .menu_news_type {
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 0px;
    list-style: none;
    position: absolute;
    background-color: white;
    display: none;
    top: 45px;
    left: 0;
    right: 0;
    box-shadow: 0 3px 3px 5px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    border-radius: 1rem;
    z-index: 1;
}

.dropdown_news_type .menu_news_type a {
    line-height: 40px;
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    text-indent: 32px;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #4d4d4d;
    font-size: 1.1em;
    letter-spacing: 0.2px;
    transition: all .2s ease;
}

.dropdown_news_type .menu_news_type a:hover {
    background-color: #E90E8B;
    color: white;
}

.dropdown_news_type .menu_news_type a:nth-child(1):hover {
    border-radius: 12px 12px 0px 0px;
}

.dropdown_news_type .menu_news_type a:nth-child(4):hover {
    border-radius: 0px 0px 12px 12px;
}

/*---- form-search ------*/
.news_search .form-search {
    font-family: 'Noto Sans Thai', sans-serif;
    width: 100%;
    border: none;
    background-color: #ffffff;
    color: #666666;
    /* color: #c4c5c6; */
    font-size: 1.105em !important;
    text-indent: 20px;
    border-radius: .6rem !important;
    height: auto !important;
}

.news_search i.fa-search {
    /* position: absolute; */
    margin-top: -29px;
    margin-right: 20px;
    color: #666666;

}

/*---- box-content-news ------*/
.box_content_news {
    width: 100%;
    max-width: 1024px;
    display: block;
    margin: auto;
}

.box_content_news .card {
    border: none;
    border-radius: 20px;
    box-shadow: 2.6px 0.9px 4.3px 0 rgba(0, 0, 0, 0.4);
    transition: all .4s ease;
}

.box_content_news .card:hover {
    transform: translate(0px, -5px);
}

.box_content_news .card .card-img-top {
    height: auto;
}

.box_content_news .card .card-img-top img {
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0px 0px;
}

.box_content_news .card .card-body {
    padding: 1.25em 1.25em 1.25em 1.25em;
    border-radius: 0px 0px 20px 20px;
    color: white;
}

.box_content_news .col-md-6:nth-child(3n+1) .card .card-body {
    background-color: #E90E8B;
}

.box_content_news .col-md-6:nth-child(3n+2) .card .card-body {
    background-color: #74BE45;
}

.box_content_news .col-md-6:nth-child(3n+3) .card .card-body {
    background-color: #F69321;
}

.box_content_news .card .card-body .sm-card-body {
    height: 120px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

}

.box_content_news .card .card-body .card-title {
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box_content_news .card .card-text {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box_content_news .card .card-body .date {
    font-size: .8em;
    font-weight: 400;
    color: white;
}

.box_content_news .card .card-body .btn-readmore {
    font-size: 0.9em;
    letter-spacing: 0.5px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.box_content_news .card .card-body .btn-readmore:hover {
    color: #2e2f7a;
}

#pagination {
    cursor: pointer;
}

#pagination .page-num {
    color: #868585;
    font-size: 1.1rem;
}

#pagination .page-num.this-page {
    color: #E90E8B;
    font-weight: bold;
}

#pagination .page-num:hover {
    text-decoration: underline;
}

#pagination a.left-arrow img,
#pagination a.right-arrow img{
    max-width: 30px;
}

/*------ News Detail -------*/
.box_detail_news .topic_detail_news {
    color: #2e2f7a;
    font-size: 1.9em;
    font-weight: 600;
    line-height: 1.2em;
    text-align: left;
}

.box_detail_news .date {
    font-size: .95em;
    color: #2e2f7a;
}

/* .box_detail_news .detail_news img{
    display: block;
    margin:auto ;
    width: 100%;
} */
.box_detail_news .detail_news .txt {
    font-size: 1.25em;
    padding: 2rem 0px;
    line-height: 1.45em;
    color: #666666;
    margin: 1em 0px;
}

/*----- more picture -----*/
.box_more_pic .topic {
    font-weight: 500;
    color: #2e2f7a;
    font-size: 1.8em;
}

.box_more_pic .box_img {
    height: auto;
}

.box_more_pic .box_img img {
    width: 100%;
    height: 100%;
}

/*----- more news -----*/
.box_content_news .topic_more {
    font-weight: 500;
    color: #2e2f7a;
    font-size: 1.8em;
}


@media only screen and (max-width: 1200px) {

    .box_header {
        padding: 1.5em 1.8em;
    }

}

@media only screen and (max-width: 992px) {

    .box_detail_news .topic_detail_news {
        font-size: 1.6em;
    }

    .box_detail_news .date {
        font-size: 1.15em;
    }

    .box_detail_news .date i.fa-calendar-alt {
        font-size: 1.1em;
    }

    .box_detail_news .detail_news .txt {
        font-size: 1.2em;
    }

    .box_more_pic .topic {
        font-size: 1.8em;
        text-align: center;
    }

}

@media only screen and (max-width: 767px) {

    /*------ landing page news -----*/
    .box_content_news {
        max-width: 380px;
    }

    /*------- detail news ----*/
    .box_detail_news .topic_detail_news {
        font-size: 1.3em;
    }

    .box_detail_news .detail_news .txt {
        font-size: 1.1em;
    }

    .container-detail-news {
        padding: 0em 2.8em;
    }

}

@media only screen and (max-width: 576px) {}

@media only screen and (max-width: 430px) {

    .box_header {
        padding: 1.5em 1em;

    }


}
