:root {
    --new-border-color: #ededed;
    --new-btn-color: #a66eff;
    --new-btn-hover-color: #9565e3;
    --new-text-color: #303437;
}
/* Header style start */

/* Hide the top header menu  */
/* #nt_lnb .float-left{
    display: none
} */

.clearfix.sub-slide.sub-1div {
    top: 70px;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.15);
    z-index: 1;
    border-radius: 8px;
    border: 0px !important;
    color: var(--new-text-color);
    left: 0% !important;
    transform: translateX(-5%) !important;
}

#me-list-pc li.sub-1dli {
    margin: 0px !important;
    padding: 0 15px !important;
}

a.me-sh.sub-1da {
    color: var(--new-text-color);
    width: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    padding: 0 15px;
    background-color: #ffffff;
    font-size: 18px;
}

.sub-1dul .sub-1dli:hover,
.nt-menu .sub-1dli:hover .sub-1da:hover{
    color: var(--new-text-color) !important;
    background-color: #f7f9fa !important;
}
.nt-menu .sub-1da:hover{
    background-color: none !important;
    color: var(--new-text-color) !important;

}
#top_header_right_cnt{
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.header-search-wrap{
    padding: 0px 0px !important;
}
#top_search{
    height: 35px !important;
    padding: 0 20px !important;
    border: 1px solid var(--new-border-color) !important;
    border-radius: 8px !important;
    width: 280px !important;
    background: #fafafa !important;
    font-size: 13px !important;
}
#top_search:focus{
    box-shadow: none !important;
    border-color: var(--new-btn-color) !important;
}
.header-search-wrap .btn:focus {
    box-shadow: none !important;
}
#nt_lnb ul>li.header-search-wrap .header-search button[type=submit] {
    width: 35px !important;
    height: 35px !important;
}
#nt_lnb{
    height: 55px;
}
#nt_sticky_wrap,
#nt_lnb{
   border-bottom: 0px !important;
}
div#nt_sticky {
    border-bottom: 1px solid var(--new-border-color) !important;
    padding: 0px 15px;
    background-color: white !important;
}
#nt_menu .me-a {
    font-size: 18px !important;
    /* display: flex; */
    /* align-items: center; */
    margin-right: 15px !important;
    padding-left: 0px !important;
    color: var(--new-text-color);
    font-size: 15px;
    font-weight: bold;
}
.nt_menu_icon_hot{
    display: none !important;
}
#nt_menu #me-list-pc{
    padding-left: 0px !important;
}
#me-list-pc ul.clearfix.float-right.m-0.me-ul.nav-slide {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn_register,
#btn_ft_cscenter,
.custom_btn{
    background-color: var(--new-btn-color) !important;
    transition: 0.2s ease;
    border-radius: 8px !important;
    border: none;
    display: flex !important;
    height: 35px !important;
    align-items: center;
    justify-content: center;
    padding: 0 20px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.btn_register:hover,
#btn_ft_cscenter:hover,
.custom_btn:hover{
    background-color: var(--new-btn-hover-color) !important;
}
.btn_nt_lnb_01,
#btn_ft_device_change{
    background-color: white !important;
    transition: 0.2s ease;
    border-radius: 8px !important;
    border: 1px solid var(--new-btn-color) !important; 
    color: var(--new-btn-color) !important;
    display: flex !important;
    height: 35px !important;
    align-items: center;
    justify-content: center;
    padding: 0 20px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.btn_nt_lnb_01:hover,
#btn_ft_device_change:hover{
    background-color: var(--new-btn-color) !important; 
    color: white !important;
}
@media (min-width: 767px) and (max-width: 1199px) {
    /*
    #nt_header img#logo_img {
        width: auto !important;
    }
    */
}
/* Header style end */

/* Footer style start */
#nt_footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}
.footer_cnt {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background-color: #ffffff;
}
.footer_cnt .footer-menu-list {
    display: flex;
}
.footer_cnt .footer-menu-list>div {
    margin-right: 20px;
    padding-right: 20px;
    position: relative;
    font-weight: bold;
    margin-bottom: 20px;
}
.footer_cnt .footer-menu-list>div:after {
    content: "";
    position: absolute;
    width: 1px;
    height: 12px;
    background: #d4d6d7;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}
.footer_cnt .footer-menu-list > div:last-child:after {
    content: none;
}
.footer_cnt .footer-menu-list>div a {
    transition: 0.2s ease;
    font-size: 14px !important;
}
.footer_cnt .footer-menu-list>div a:hover{
    color: var(--new-btn-color) !important;
}
.footer_cnt .footer_warning {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 20px;
    font-size: 13px;
}
.footer_cnt .footer_warning span {
    display: flex;
    justify-content: center;
}

.footer_cnt .footer_reserved {
    font-size: 13px;
    opacity: 0.8;
    text-align: center;
}
/* @media (min-width: 320px) and (max-width: 767px) {
    .footer_cnt{
        min-height: 300px;
        padding: 15px;
        padding-bottom: 30px !important;
    }
    .footer-menu-list {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 3px;
    }
    
    .footer-menu-list div {
        width: calc(50% - 10px) !important;
        text-align: center !important;
    }
    
    .footer_cnt .footer-menu-list>div {
        margin-right: 0px !important;
        padding-right: 10px !important;
    }
    
    .footer_cnt .footer-menu-list>div:after {
        content: none !important;
    }

    .footer_warning span{
        text-align: center;
    }
}
@media (min-width: 500px) and (max-width: 600px) {
    .footer_cnt{
        min-height: 400px !important;
    }
}
@media (min-width: 320px) and (max-width: 500px) {
    .footer_cnt{
        min-height: 450px !important;
    }
}
@media (min-width: 600px) and (max-width: 767px) {
    .footer-menu-list div {
        width: calc(34% - 10px) !important;
    }
}
@media (min-width: 320px) and (max-width: 420px){
    .footer-menu-list div {
        width: calc(100% - 10px) !important;
        text-align: left !important;
    }
    .footer_cnt{
        min-height: 550px !important;
    }
} */
/* Footer style end */

/* Mobile Header style start */
#nt_menu_mobile .bg-primary.shadow-sm.pr-2 {
    background: var(--new-btn-color) !important;
}

#nt_menu_mobile .gra.gra-left-primary {
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, var(--new-btn-color) 60%);
}

#nt_menu_mobile .gra.gra-right-primary {
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, var(--new-btn-color) 60%);
}

#nt_menu_mobile .d-block.on{
    background: #f2eaff2e !important;
}

#header_mo_search a.ml-3 {
    color: var(--new-btn-color) !important;
}

#search_mo button.btn.btn-primary {
    background: var(--new-btn-color) !important;
    border-color: var(--new-btn-color) !important;
}

input#mo_top_search:focus{
    box-shadow: none !important;
    border-color: var(--new-btn-color) !important;
}

.nt_sidebar_m_header {
    color: var(--new-btn-color) !important;
    border-bottom-color: var(--new-btn-color) !important;
}

/* Mobile Header style end  */

/* Content Session style start */

div#main_con_7,
div#main_con_6,
div#main_con_5{
    /* margin-bottom: 20px; */
    box-shadow: none !important;
}

div#main_con_7_1,
div#main_con_6_1 .main_explain_con{
    background: none !important;
    padding: 0px !important;
}

.main_explain_con {
    color: #303437 !important;
    font-size: 15px;
    font-weight: bold;
    padding: 0px !important;
}

#main_con_7_1 .main_explain_con {
    text-align: left !important;
}
.main-contentbox-wrap{
    margin-bottom: 20px !important;
}
/* Pormotion page style */

#list_edit_div{
    display: flex;
    justify-content: center;
    align-items: center;
}
#list_edit_div .btn_b01:hover, 
#list_edit_div .btn_b01:hover{
    color: var(--new-btn-hover-color) !important;
}
.tbl_content .tbl_list_content{
    border-top: 2px solid var(--new-btn-color) !important;
    height: 40px;
    border-bottom: 1px solid var(--new-border-color) !important;
}
.na-table-head.border-primary.d-md-table-row.tbl_list_content > div{
    font-size: 12px !important;
}
/* #bo_list_total b {
    color: var(--new-btn-color) !important;
} */
.list_cnt_hover a:hover{
    color: var(--new-text-color) !important;
}
.tbl_content ul li{
    font-size: 14px !important;
}
.tbl_content ul li:hover {
    background-color: #f7f9fa;
}
.tbl_content .na-item a.na-subject:hover {
    color: var(--new-btn-color);
}
.cnt_sub_head,
#bo_list #mttip_price{
    color: var(--new-btn-color) !important;
}

/* Community Page */

.custom_top_nav_div {
    /* display: flex; */
    /* flex-direction: column; */
    padding-bottom: 20px !important;
}

.custom_top_nav_div .header-top {
    display: flex;
    align-items: center;
    width: 100%;
}

.custom_top_nav_div .board-title {
    display: flex;
}

span.custom_top_nav_head {
    font-size: 22px;
    font-weight: bold;
    color: var(--new-btn-color);
    line-height: 1.5;
}

span.custom_top_nav_active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-left: 10px;
    font-weight: bold;
}

.custom_top_nav_btn{
    display: flex;
}

a.write-btn {
    background-color: #ffffff;
    border: 1px solid #ededed;
    padding: 0 20px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: 0.2s ease;
    color: var(--new-text-color) !important;
    font-size: 15px !important;
}

.custom_top_nav_bills {
    display: flex;
    height: 40px;
    align-items: center;
    margin-top: 20px;
}

.custom_top_nav_bills>a.active {
    background-color: var(--new-btn-color);
    color: #ffffff !important;
    font-weight: bold;
    border: 0 !important;
}
.custom_top_nav_div .custom_top_nav_bills > a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    height: 36px;
    border-radius: 100px;
    padding: 0 10px;
    border: 1px solid #d4d6d7;
    color: var(--new-text-color);
}

.companies-widget-sec div a.na-subject:hover {
    color: var(--new-btn-color) !important;
}

/* Eat & run company Image Grid style start */
.list-item-div {
    background: transparent !important;
    box-shadow: none !important;
    padding-bottom: 20px !important;
    border-radius: 8px !important;
}

.list-item-wrap {
    padding: 0px !important;
}

.list-safety-info {
    border-radius: 0px 0px 8px 8px;
    border: 1px solid #d4d6d7;
    border-top: 0 !important;
    padding: 0 10px;
    margin-top: 0px !important;
}

.img-wrap.bg-light {
    border-radius: 0px !important;
    box-shadow: none !important;
}

#bo_gallery .list-safety-info table tbody tr th {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #d4d6d7 !important;
    color: #303437;
    font-size: 14px;
    height: 40px;
    align-items: center;
}

#bo_gallery .list-safety-info table tbody tr td {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #d4d6d7 !important;
    color: #303437;
    font-size: 14px;
    height: 40px;
}
#bo_gallery .list-safety-info table tbody tr:last-child td{
    border: none !important;
}
#bo_gallery .list-safety-info table tbody tr:last-child th{
    border: none !important;
}
#bo_gallery .list-safety-info table tr td.site_code {
    color: #a66eff;
}

.list-safety-item-btn-wrap {
    width: 100%;
    margin: 10px 0px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.btn_safety_view {
    width: 100%;
    height: 100%;
    background-color: #a66eff;
    border-radius: 8px;
    transition: 0.2s ease;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

a.btn_safety_view:hover {
    background-color: #9565e3 !important;
}

.list-safety-info {
    background: white !important;
}

#bo_gallery img.img-render {
    padding: 0px;
}

#bo_gallery .list-item:hover .list-item-div {
    border: none !important;
    border-radius: 8px !important;
}

.tbl_content ul li:hover {
    background: none !important;
}

#bo_gallery .list-item:hover .list-item-div .list-item-wrap {
    margin: auto !important;
}

#bo_gallery img.img-render {
    /*
    height: 100% !important;
    width: 100% !important;
    */
}
@media (min-width: 576px) and (max-width: 576px){
    #bo_gallery .img-wrap.bg-light {
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 420px) and (max-width: 575px){
    /* #bo_gallery .list-safety-info{
        border: 1px solid #d4d6d7 !important;
        border-radius: 8px !important;
    } */

    #bo_gallery li.list-item.col.px-2.pb-3 {
        max-width: 50% !important;
        min-width: 50% !important;
    }
    
    #bo_gallery .img-wrap {
        width: 100% !important;
        height: 150px !important;
    }
    
    #bo_gallery img.img-render {
        width: 100% !important;
        height: 100% !important;
    }
    
    #bo_gallery .img-item {
        width: 100% !important;
        height: 100% !important;
    }
    
    #bo_gallery .list-safety-info {
        width: 100% !important;
    }

}
@media (min-width: 320px) and (max-width: 419px){
    #bo_gallery .img-wrap.bg-light {
        width: 100% !important;
        height: auto !important;
    }

    #bo_gallery .list-safety-info {
        width: 100% !important;
    }

    #bo_gallery img.img-render {
      
    }
}
/* Eat & run company Image Grid style end */




/* Event Page style start */


.custom_event_board {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    /* padding-top: 5rem; */
}

.custom_event_content {
    position: relative;
    background-size: 100% 100%;
    background-position: center center;
    text-align: center;
    height: 200px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

/* This is for the custom_event_img, the child container for the image */
.custom_event_img {
    /* width: 100%;
    height: 150px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: auto; */
    /* width: 100%;
    height: 150px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    background-size: contain; */

    height:100%;
    background-repeat:no-repeat;
    width:100%;
    background-size: contain;
    background-position:center;
}

#event_titles {
    font-size: 25px;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    top: -10% !important;
    position: relative;
}


.event-content_list {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.event-image {
    display: flex;
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.event-image a {
    width: 100%;
    height: 100%;
    display: flex;
}

.event-image img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}


@media (max-width: 576px) {
    .custom_event_board{
        grid-template-columns: repeat(1, 1fr) !important;
        padding-top: 0 !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 576px) {
    .custom_event_board{
        grid-template-columns: repeat(1, 1fr) !important;
        padding-top: 20px !important;
        margin-top: 10px !important;
        width: 100% !important;
    }
}
/* Event Page style end */


/* Event Detail Page Start */



.event_detail_page .event_detail_btn>div{
    display: flex; 
}

.event_detail_page .event_detail_btn a{
    background-color: #ffffff;
    border: 1px solid #ededed;
    padding: 0 20px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: 0.2s ease;
}

.event_detail_page .event_page_info {
    margin-top: 20px;
    display: flex;
}

.event_detail_page .event_page_info .margin-horizontal-5 {
    margin-left: 5px !important;
    margin-right: 5px !important;
}

.event_detail_page #event_header {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d4d6d7;
}

.event_detail_page .subject span {
    font-size: 28px;
    font-weight: 600;
}

.event_detail_page .user-info-wrap {
    display: flex;
    color: #6c7072;
    margin-top: 20px;
}

.event_detail_page .user-info-wrap>div {
    display: flex;
    position: relative;
    margin-right: 15px;
    padding-right: 15px;
    align-items: center;
}

.event_detail_page .user-icon {
    display: flex;
    flex-shrink: 0;
    border-radius: 50%;
    width: 40px;
    margin-right: 10px;
}

.event_detail_page .user-icon img {
    border-radius: 50%;
    width: 100%;
}

.event_detail_page .user-nickname {
    font-weight: bold;
}
.event_detail_page .user-info-wrap>div:after {
    content: "";
    position: absolute;
    width: 1px;
    height: 12px;
    background: #d4d6d7;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}
.event_detail_page .user-info-wrap>div{
    display: flex;
    position: relative;
    margin-right: 15px;
    padding-right: 15px;
    align-items: center;
}

.event_detail_page .user-info-wrap>div:last-child:after {
    background: transparent;
}

/* Event Deatil Page End */

/* Event Comment Style Start */
.event_cmt_img{
    display: flex;
    width: 30px;
    margin-right: 10px;
}

.event_reviews .by-writer,
.event_bgs{
    background: none !important;
}

.cmt-wrap.position-relative.mb-2.event_reviews.event_replys {
    padding-left: 35px;
    padding-right: 20px;
    background-color: #f7f9fa;
}

.event_replys .by-writer {
    border-top: none !important;
}
.event_cmt_icon {
    margin-right: 10px;
    color: #ff6060 !important;
}

/* Event Comment Style End */

/* Home Sidebar Add Style Start */

#home_left_ad li,
#home_right_ad li{
    padding: 10px 0px !important;
}
#right_ads li{
    padding-top: 10px !important;
}

#home_left_ad li img,
#home_right_ad li img,
#right_ads li img{
    border-radius: 10px !important;
}

/* #right_ads li:last-child{
    padding-bottom: 20px !important;
} */

#right_ads li:first-child{
    padding-top: 5px !important;
}

#home_left_ad_div,
#home_right_ad_div{
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

@media (max-width: 1200px) {
    #home_left_ad_div,
    #home_right_ad_div{
        display: none !important;
    }
}

.home_gift_points_ad{
    padding: 0px !important;
}

.home_gift_points_ad img{
    width: 100% !important;
    object-fit: contain !important;
}

/* Default image height (when <a> is not present or not directly before the image) */
.home_gift_points_ad img {
    
}

/* If <a> exists and is directly before the image, set height to 180px */
.home_gift_points_ad a + ul li img {
    
}


.safety_grid_list img {
    height: 120px !important;
    object-fit: fill;
    object-position: top center;
}
.safety_grid_list{
    padding-left: 0px !important;
}

.left-adsec,
.right-adsec{
    padding-top: 20px;
}

/* Add padding to .parent if it contains .home_left_admin */
.left-adsec:has(.home_left_admin),
.right-adsec:has(.home_right_admin)
{
    padding-top: 20px;
}


/* Home Sidebar Add Style End */


.totohot_bn_ca ul li{
    margin-left: 0px !important;
    margin-bottom: 0px !important;
}

.customadminclose {
    background: #a66eff !important;
    width: 100% !important;
    text-align: end;
    padding-right: 10px;
}

@media (max-width: 575px) {
    .home_gift_points_ad img,
    .custom-adbox{
        height: 300px !important;
    }
}
@media (min-width: 575px) and (max-width: 767px) {
    .home_gift_points_ad img,
    .custom-adbox{
        height:auto !important
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    #nt_menu .me-a{font-size: 14px !important;margin-right:0 !important;}
    /*
    #top_header_left_cnt img#logo_img{
        height:165px !important;left:25px !important;top:-50px !important;
    }
    */
    #top_search{width:200px !important;}
    #nt_menu .me-a{padding-right:7px !important;}
}
@media (min-width: 992px) and (max-width: 1199px) {
    /*
    #top_header_left_cnt img#logo_img{
        height:200px !important;left:25px !important;top:-65px !important;
    }
    */
    #nt_menu .me-a{padding-right:10px !important;margin-right:5px !important;}
    #top_search{width:240px !important;}
}
@media (min-width: 1200px) and (max-width: 1400px) {
    #top_header_left_cnt img#logo_img{
        left:0px !important;
    }
}
@media (min-width: 320px) and (max-width: 767px) {
    .mob-logimg img#logo_img{
        max-height: 165px !important;
        position: absolute;
        top: 0;
        transform: translate(-50%, -55px);
    }
    .tbl_content ul li{font-size: 11px !important;}
}
.home_gift_points_ad{padding-top:50px !important}
#nt_menu .d-flex{justify-content: flex-start;width:100%;}
.centerbtncls{background-color: #a66eff !important;border-color:#a66eff !important;color:#fff !important;}
.custom-event-button{
    background-color:#fff !important;
    color:#333 !important;
}
.header-search-wrap .header-search button[type=submit] {
    position: absolute;
    top: 0;
    right: 3px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    z-index: 3;
    width: 35px !important;
    height: 35px !important
}
.header-search-wrap .header-search button[type=submit] i {
    color: #626266 !important;
}
.cpadright5pxcls{padding-right:5px !important;}
.nonmemberimgcls{
    width: 24px;
    height: 24px;
    object-fit: contain;
    padding: 5px;
    background: #f1f1f1;
}
.nonmemberemojj{
    margin-right:3px;
}

.home_gift_img_sec{
    display: inline-flex;
    align-items: center;
    width: 100%;
}