/* safety-toto list_post */
.safety_toto .row>* {
    --bs-gutter-x: 2.5rem;
}


.safety_list_item .img_box img {
    max-width: 100%;
}

.safety_list_item {
    border-radius: 12px;
    border: 3px solid #dfd6f3;
    margin-bottom: 3rem;
}

.safety_toto .col-6:hover .safety_list_item {
    border-color: var(--primaryColor);
}

.safety_list_item .card_link {
    display: block;
}

.info_group {
    width: 100%;
    border-radius: 0 0 8px 8px;
    transition: all 200ms ease;
    background: #f4efff;
}

.safety_toto .col-6 .safety_list_item .title_name {
    border-radius: 8px 8px 0 0;
    background: #f4efff;
}

.safety_toto .col-6:hover .safety_list_item .title_name {
    background: var(--primaryColor);
}

.safety_list_item .title_name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.title_name .chk_box input[type="checkbox"] + label {
    padding-left: 0;   
}

.safety_list_item .title_name p {
    font-size: 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    font-weight: bold;
}

.safety_toto .col-6:hover .safety_list_item .title_name p {
    color: #fff;
}

.safety_toto .title_name .title_box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety_toto .title_name .title_box img {
    max-width: 20px;
    margin-left: 0.5rem;
}

.safety_list_item .btn_box {
    display: flex;
    align-items: center;
    padding: 15px;
}

.safety_list_item .btn_box .card_btn {
    width: 100%;
    border: 2px solid var(--primaryColor);
    padding: 7px 5px;
    text-align: center;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
}

.safety_list_item .btn_box .card_btn:nth-child(even){
    border-color: #fec214;
}

.safety_list_item .btn_box .card_btn:nth-child(odd) {
    margin-right: 0.5rem;
    color: var(--primaryColor);
    font-weight: bold;
}

.safety_list_item .btn_box .card_btn:nth-child(even) {
    margin-left: 0.5rem;
    color: #fec214;
    font-weight: bold;
}

.safety_list_item .btn_box .card_btn:nth-child(odd):hover {
    background: var(--primaryColor);
    color: #fff;
}

.safety_list_item .btn_box .card_btn:nth-child(even):hover {
    background: #fec214;
    color: #fff;
}

.bo_list .list_header {
    background: #f4efff;
    padding: 10px 5px 10px 15px;
    border-radius: 10px;
}

a.btn_b01,
.btn_b01 {
    color: #a0a0a0;
}

.list_banner {
    margin-bottom: 2rem;
}

.list_banner img {
    max-width: 100%;
}

.list_filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2.25rem 0;
}

.filter_select {
    display: flex;
    align-items: center;
}

.filter_select .comment_select {
    padding: 8px 10px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("/static/img/down_solid.webp") no-repeat #fff;
    background-position: right 10px center;
}

.filter_select .comment_select option {
    height: 25px;
}

.bo_view #article_react .btn_react {
    background: #f3effe;
    color: #a459e1;
    border: 2px solid #a459e1;
}

.bo_view #article_react .btn_react.react_nogood {
    background: transparent;
    color: #999999;
    border-color: #dadada;
}

.bo_view #article_react .btn_react:hover,
.bo_view #article_react .btn_react.active {
    color: #fff;
    border-color: #a459e1;
    background: #a459e1;
}

.bo_view #article_react .btn_react.react_nogood:hover,
.bo_view #article_react .btn_react.react_nogood.active {
    color: #999999;
    border-color: #a459e1;
    background: transparent;
}

/* safety-toto read_post */
.bo_view #view_header {
    border-bottom: none;
}

/* view_information */
.view_information {
    border-radius: 10px;
    display: flex;
    margin-top: 2.5rem;
}

.view_information>.row {
    width: 100%;
}

.view_image img {
    max-width: 100%;
}

.view_info_content {
    padding: 0 10px 0 20px;
}

.view_info_content .info_content_wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 6px 0 10px rgb(50 60 70 / 10%);
    border-radius: 10px;
}

.view_info_content .content_list {
    display: flex;
    align-items: center;
    flex: 1;
    border-bottom: var(--border);
}

.content_list .list_comment {
    padding: 10px 15px;
}

.content_list .list_comment p,
.content_list .list_comment a {
    font-size: 14px;
}

.content_list .list_comment img {
    max-width: 23px;
    margin-left: 0.5rem;
}

.content_list .list_comment p.highlight {
    color: #dc3545;
    font-weight: bold;
}

.list_comment .fa-up-right-from-square {
    color: #dc3545;
}

.list_comment .fa-circle-info {
    color: #494949;
    font-size: 15px;
    margin-left: 0.5rem;
}

.list_comment .category_tag {
    padding: 0.25rem 0.5rem;
    background: #edeef0;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.list_comment .category_tag p {
    font-size: 12px;
}

.content_list .list_start {
    flex: 1;
    background: #540c95;
    height: 100%;
}

.content_list:first-child .list_start {
    border-radius: 10px 0 0 0;
}

.content_list:last-child .list_start {
    border-radius: 0 0 0 10px;
}

.list_start .flex_box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.list_start .flex_box p {
    font-size: 14px;
    color: #fff;
}

.content_list .list_end {
    flex: 2;
    background: #fff;
    display: flex;
    align-items: center;
    height: 100%;
}

.content_list:first-child .list_end {
    border-radius: 0 10px 0 0;
}

.content_list:last-child .list_end {
    border-radius: 0 0 10px 0;
}

.list_filter .check_box_all {
    display: flex;
}

.list_filter .check_box_all p {
    margin: 0 2rem 0 0.5rem;
}

.header_info>div>span {
    margin-right: 0.75rem;
}

/* tooltip */
.read_tooltip {
    position: relative;
    border-bottom: 1px dotted black;
}

.read_tooltip:before {
    content: attr(tooltip-data);
    position: absolute;
    width: 250px;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    text-align: center;
    line-height: 1.3;
    border-radius: 5px;
    z-index: 1;
    opacity: 0;
    transition: opacity .5s;
    bottom: 155%;
    left: 50%;
    font-size: 0.70em;
    visibility: hidden;
    padding: 12px;
    font-size: 12px;
    transform: translateX(-50%);
    text-align: start;
}

.read_tooltip:after {
    content: "";
    position: absolute;
    bottom: 75%;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    opacity: 0;
    transition: opacity .5s;
    border-color: rgba(0, 0, 0, .7) transparent transparent transparent;
    visibility: hidden;
}

.read_tooltip:hover:before,
.read_tooltip:hover:after {
    opacity: 1;
    visibility: visible;
}
/* write */
.write_subject_wrap {
    display: flex;
}

.write_subject_text {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.write_subject,
.write_link {
    flex: 7;
}

.write_subject_text p {
    font-weight: bold;
}

.view_buttons .btn.btn_border {
    border: var(--border);
    margin-right: 0.5rem;
    font-size: 14px;
}

.bo_view #view_header .buttons_more .more {
    width: 120px;
}

.bo_view #view_subject {
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.bo_common .buttons_more .more a {
    padding: 12px;
}

.bo_view #view_header .member {
    font-size: 14px;
}

.bo_view #view_header {
    display: flex;
    flex-direction: column;
}

.view_header_top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view_header_top .header_info_name {
    display: flex;
    align-items: center;
}

.bo_view #view_header .header_profile_img img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

.bo_view #view_header .header_info {
    align-items: center;
    flex-direction: unset;
    justify-content: space-between;
}

.bo_view #article_react {
    margin-top: 30px;
}

.story_head_wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.65rem;
}

.story_buttons_more .delete_button {
    line-height: 35px;
    height: 35px;
    padding: 0 10px;
    text-align: center;
    border: var(--border);
    border-radius: 5px;
}

.story_buttons_more .delete_button .btn_border {
    font-weight: bold;
    color: #a0a0a0;
    font-size: 14px;
}

.story_buttons_more .delete_button .btn_border .fa-trash-can {
    margin-right: 0.35rem;
}

.btn_confirm.btn_confirm_story {
    display: flex;
    justify-content: flex-end;
}

.btn_confirm_story .btn_preview {
    padding: 0 1.5rem;
    height: 35px;
    line-height: 35px;
    font-size: 14px;
    color: var(--primaryColor);
    font-weight: bold;
    background: #f4efff;
    border-radius: 5px;
    margin: 0 10px;
    border: 1px solid var(--primaryColor);
    cursor: pointer;
}

.btn_confirm_story .btn_preview:hover {
    background: var(--primaryColor);
    color: #fff;
}

.content_list .list_comment.list_end #rating svg{
    color: var(--primaryColor);
    margin-right: 3px;
}
.content_list .list_comment.list_end #rating + p{
    color: var(--primaryColor);
    font-size: 16px;
    font-weight: bold;
}

/* tag */
.safety_list_item > .img_box {
    position: relative;
}

.post_icon_image {
    width: 60px;
    height: 66px;
    position: absolute;
    top: 0;
    right: 1vw;
    background: url(/static/img/safety/ins_tag.png);
    background-size: cover;
    filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.7));
}

.post_icon_image > .text_wrap {
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 1rem;
}

.post_icon_image > .text_wrap > p {
    font-size: 14px;
    font-weight: bold;
    font-family: 'Black Han Sans', sans-serif !important;
    text-shadow: 
    -1px -1px 0 #fcf5c1,
    1px -1px 0 #fcf5c1,
    -1px  1px 0 #fcf5c1,
    1px  1px 0 #fcf5c1;
}

.post_icon_image  p > span {
    font-size: 18px;
}





@media screen and (max-width: 900px) {
    .read_tooltip:before {
        left: auto;
        transform: translateX(0);
        right: -130%;
    }
}

@media screen and (max-width: 768px) {
    .safety_toto .title_name .title_box {
        padding: 0;
    }
    .write_subject_text{
        flex: 2;
    }
    .write_subject,.write_link{
        flex: 6;
    }
    .safety_toto .row>* {
        --bs-gutter-x: 1rem;
    }
    .safety_list_item {
        margin-bottom: 2rem;
    }
    .safety_list_item .title_name p {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .view_information .view_image {
        margin-bottom: 1.5rem;
    }

    .view_info_content {
        padding: 0 5px;
    }
}

@media screen and (max-width: 560px) {
    .safety_list_item .title_name {
        padding: 8px;
    }    
    .safety_list_item .title_name p {
        font-size: 15px;
        max-width: 130px;
    }
}

@media screen and (max-width: 525px) {
    .post_icon_image > .text_wrap {
        padding-top: 0.5rem;
    }

    .post_icon_image > .text_wrap > p {
        font-size: 11px;
    }

    .post_icon_image p > span {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .safety_list_item .btn_box .card_btn .fa-plus,
    .safety_list_item .btn_box .card_btn .fa-up-right-from-square {
        display: none;
    }

    .post_icon_image {
        width: 40px;
        height: 46px;
        right: 2vw;
    }
}

@media screen and (max-width: 375px) {
    .safety_list_item .title_name p {
        font-size: 13px;
        max-width: 120px;
    }

    .safety_list_item {
        border: 2px solid #dfd6f3;
    }

    .safety_list_item .btn_box {
        padding: 10px 6px;
    }

    .safety_list_item .btn_box .card_btn {
        padding: 5px;
        font-size: 12px;
    }
}

@media screen and (max-width: 350px) {
    .safety_list_item .title_name p {
        max-width: 100px;
    }
}
