﻿.btn-fs-text-voice {
    padding: 0px 8px;
    background: #f6f4f4;
    border-radius: 15px;
    margin-left: 8px;
    margin-right: 8px;
}

.btn-fs-text-voice a {
    font-size: 18px;
    color: #1192e2;
    margin: 5px;
}

.clampline {
    overflow: hidden;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.line2 {
    -webkit-line-clamp: 2;
}

.line3 {
    -webkit-line-clamp: 3;
}

.line4 {
    -webkit-line-clamp: 4;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #fa8a0a;
    text-decoration: none;
}

.list-items-category h6 a:hover {
    color: #fa8a0a;
}


/*---------TAB CONTROL------------------------*/

.mainsubnav {
    margin-top: 5px;
}

.mainsubnav ul {
    background: transparent;
    list-style: none;
    padding: 0px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0,0,0,.125);
}

.mainsubnav ul li {
    position: relative;
    width: 100%;
    height: auto;
    line-height: 40px;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.mainsubnav ul .thefirst {
}

.mainsubnav ul li a {
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    line-height: 1.5;
}

.mainsubnav li:hover {
    background: transparent;
}

.mainsubnav .sub-menu {
    position: absolute;
    left: 100%;
    top: 0px;
    min-width: 200px;
    display: none;
    text-align: left;
    border-left: 1px solid rgba(0,0,0,.125);
    background: #fff;
    box-shadow: 5px 5px 15px 0px #bbbbbb75;
    z-index: 9;
}

.mainsubnav li:hover .sub-menu {
    display: block;
    color: red;
}

.mainsubnav .sub-menu2 {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    border-left: 1px solid rgba(0,0,0,.125);
    display: none;
    background-color: #fff;
    z-index: 9;
}

.mainsubnav .sub-menu li:hover .sub-menu2 {
    display: block;
}

.mainsubnav .sub-menu3 {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    border-left: 1px solid rgba(0,0,0,.125);
    display: none;
    max-width: 350px;
    background-color: #fff;
    z-index: 9;
}

.mainsubnav .sub-menu2 li:hover .sub-menu3 {
    display: block;
}

.toggle-right > a {
    position: relative;
}

.toggle-right > a::after {
    content: '\f105';
    display: block;
    position: absolute;
    text-align: right;
    right: 5px;
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-weight: 600;
    top: 20%;
    color: #a3a3a3;
}

.content-meta-content .fancybox-content {
    display: inline;
    padding: 0;
}
/*Cau hinh control in banner*/

.accordion-button:not(.collapsed) {
    color: unset !important;
}

.navbar-desktop-banner {
    position: absolute;
    width: 100%;
    z-index: 2;
}

.navbar-desktop-banner .container {
    position: relative;
}

.navbar-desktop-banner .header_banner_body {
    float: right;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px 0px;
}

.navbar-desktop-banner .header_banner_body .header_banner_search {
    order: 3;
    margin: 10px 0px;
}

.navbar-desktop-banner .header_banner_body .nav-item {
    order: 0;
    position: absolute;
    right: 0;
}

.navbar-desktop-banner .header_banner_body .header_banner_login {
    order: 1;
    position: relative;
    left: 0;
    margin-top: 2px;
    text-align: right;
    margin-right: 35px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.navbar-desktop-banner .nav-item img {
    height: 23px;
    margin-top: 5px;
    margin-right: 5px;
    border-radius: 3px;
    border: 1px solid #4783ff;
}

.navbar-desktop-banner .form-search-header {
}

.navbar-desktop-banner .nav-item {
}

.navbar-desktop-banner .box-search-nav {
    display: block !important;
}

.layout-wd-5 .navbar-desktop-banner .box-search-nav input,
.layout-wd-5 .navbar-desktop-banner button.btn {
    background-color: #fbfbfbc5 !important;
    border: 1px solid #4783ff;
}

.navbar-desktop-banner .box-search-nav input::placeholder {
    color: #333;
}

.navbar-desktop-banner .box-search-nav input::-ms-input-placeholder {
    color: #333;
}

.navbar-desktop-banner .btn-outline-secondary i {
    display: block;
    color: #333;
}

.navbar-desktop-banner .btn-outline-secondary {
    display: block;
    border: 1px solid #4783ff;
    margin-left: 2px;
    background: #4783ff !important;
    padding: 8px;
}

.navbar-desktop-banner .login-sign-in-users,
.navbar-desktop-banner .login-sign-out-users {
    color: #4783ff;
    font-weight: bold;
    border: 1px solid #4783ff;
    border-radius: 4px;
    padding: 1px 8px;
    width: auto;
    display: inline-block;
    text-align: center;
    min-width: 110px;
    margin-right: 5px;
}


@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation:portrait) {
    .navbar-desktop-banner .form-search-header {
        display: none !important;
    }

    .navbar-desktop-banner .login-sign-in-users,
    .navbar-desktop-banner .login-sign-out-users {
        margin-right: 5px;
        width: auto;
    }

    #nav_header .btn-login-sign-in-users {
        display: none !important;
    }
}


.list-article h4,
.list-article .desc-title {
    text-align: center;
}

/*Wd15,16*/
.card-box-items {
    position: relative;
    overflow: hidden;
}

.card-body-box {
    position: absolute;
    margin: 0 auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    display: flex;
    text-align: center;
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 9;
    padding: 20px 10px;
    cursor: pointer;
}

.card-body-box .desc {
    display: none;
    transition-duration: .2s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    bottom: -100%;
}

.card-body-box:before {
    content: "";
    height: 40%;
    left: 0;
    position: absolute;
    bottom: 0%;
    transition-duration: .5s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    width: 100%;
    z-index: 2;
}

.card-body-box:before {
    background: linear-gradient(180deg, transparent, #26492ac9);
    opacity: .7;
}

.card-body-box h5 {
    position: absolute;
    bottom: 10%;
    transition-duration: .2s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    padding: 10px 20px;
    z-index: 9;
}

.card-box-items:hover .card-body-box h5 {
    bottom: 40%;
    font-size: 20px;
    text-shadow: 0 2px #333;
}

.card-box-items:hover .card-body-box::before {
    background: linear-gradient(180deg, transparent, #427a48c9);
    height: 100%;
    left: 0;
    position: absolute;
    bottom: 0%;
}

.card-box-items:hover .card-body-box .desc {
    position: absolute;
    bottom: 0%;
    display: block;
    z-index: 9;
    padding: 10px;
}


/*------------------ITEM SLIDER Box--------------*/

.header-title-box-f {
    position: absolute;
    top: 10px;
    background: #850404c7;
    padding: 8px 15px;
    border-radius: 0px 8px 8px 0px;
    z-index: 9;
}

.header-title-box-f h4 {
    font-size: 1.0rem;
    font-weight: bold;
    position: relative;
    margin-bottom: 2px;
}

.header-title-box-f h4 a::after,
.header-title-box-f h4 a::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    background-color: #fff;
    height: 100%;
    width: 2px;
}

.header-title-box-f h4 a::after {
    left: -1px;
    top: 0px;
}

.header-title-box-f h4 a::before {
}

.header-title-box-f h4 a {
    color: #fff;
    text-transform: uppercase;
    list-style: none;
    text-decoration: none;
    padding-left: 15px;
    padding-right: 15px;
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    background: #f1f1f1;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    display: block;
}

.article-thumbnail img {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.5s ease-in-out;
}

.page-content h5 {
    font-weight: bold;
    font-size: 30px;
    line-height: 39px;
}

.content-meta-desc {
    font-weight: bold;
    margin: 20px 0px !important;
}

.nav-top .navbar-nav .nav-link {
    font-size: 15px !important;
}

.wd-section-menu-body.sticky,
.wd-section-menu.sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 0 5px #232121;
}

.iframe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 tỷ lệ (9/16 = 0.5625) */ /* Nếu bạn muốn tỷ lệ khác, thay đổi giá trị padding-top */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/*========== Chat ==========*/
#chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

#chat .icon-chatbot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chat > span {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat > span i {
    color: #ba1531;
    font-size: 24px;
}

#chat.animate-ripple::before,
#chat.animate-ripple::after {
    top: 0;
    left: 0;
    border-radius: 50%;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    animation: ripple 3s infinite;
}

#chat.animate-ripple::before {
    animation-delay: 0.9s;
}

#chat.animate-ripple::after {
    animation-delay: 0.5s;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgb(1, 119, 255, 0.6)
    }

    50% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

#chat ul {
    list-style: none;
    margin: 0;
    position: absolute;
    bottom: calc(100% + 30px);
    right: 0;
    min-width: 235px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    background-color: #fff;
    display: none;
}

#chat ul.show {
    display: block;
}

#chat ul::after {
    position: absolute;
    bottom: -7px;
    right: 22px;
    left: auto;
    display: inline-block !important;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
    content: ""
}

#chat ul li,
#chat ul li a {
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
}

#chat ul li a {
    padding: 0;
}

#chat ul li:hover {
    background-color: #eee;
}

#chat ul li .icon {
    width: 40px;
    height: 40px;
    background-color: #0177ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 50%;
}

#chat .icon.no-bg {
    background-color: unset;
}

#chat ul li .icon i {
    color: inherit;
    font-size: 20px;
}

#chat ul li .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chat .close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0177ff;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

#chat .close.show {
    display: flex;
}

#chat .close i {
    color: inherit;
    font-size: 24px;
}

.box-chatbot,
.chat-supporter,
.save-info-chat {
    background-color: #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 8px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: all 0.25s linear;
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden
}

.box-chatbot.show,
.chat-supporter.show,
.save-info-chat.show {
    width: calc(100% - 20px);
    height: 550px;
    opacity: 1;
    visibility: visible;
}


.box-chatbot .head,
.chat-supporter .head,
.save-info-chat .head {
    background-color: #0177ff;
    padding: 12px 18px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
}

.box-chatbot .head p,
.chat-supporter .head p,
.save-info-chat .head p {
    text-align: center;
    font-size: 26px;
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.box-chatbot .close-box,
.chat-supporter .close-box,
.save-info-chat .close-box {
    position: absolute;
    font-size: 16px;
    color: #fff;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 18px;
}

.box-chatbot .conversations,
.chat-supporter .conversations {
    flex-grow: 1;
}

.box-chatbot .form-group,
.chat-supporter .form-group {
    padding: 12px 18px;
    display: flex;
    border-top: 1px solid #e5e5e5;
    position: relative;
}

.box-chatbot .form-group input,
.chat-supporter .form-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.box-chatbot .form-group button[type="submit"],
.chat-supporter .form-group button[type="submit"] {
    background-color: #fff;
    padding: 8px 10px;
    transition: all 0.25s linear;
    border: 0;
    outline: 0;
}

.box-chatbot .form-group button[type="submit"]:hover,
.chat-supporter .form-group button[type="submit"]:hover {
    background-color: rgb(1, 119, 255, 0.15);
    border-radius: 50%;
    transition: all 0.25s linear;
}

.box-chatbot .form-group button[type="submit"] i,
.chat-supporter .form-group button[type="submit"] i {
    font-size: 20px;
    color: #0177ff;
}

.box-chatbot .conversations,
.chat-supporter .conversations {
    overflow-y: auto;
    padding: 12px 18px;
}

.conversations .conversation {
    display: flex;
    align-items: end;
    margin-bottom: 20px;
    font-size: 14px;
    gap: 6px;
}

.conversations .conversation .content {
    background-color: rgb(1, 119, 255, 0.15);
    text-wrap-mode: wrap;
    border-radius: 4px;
    padding: 6px;
    font-size: 15px;
}

.conversations .conversation .content p:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

.conversations .conversation span i {
    font-size: 24px;
    color: #0177ff;
}

.conversations .conversation.send {
    justify-content: flex-end;
}

.conversations .conversation.receive {
    justify-content: flex-start
}

.conversation .content .user-name,
.conversation .content .time {
    font-size: 10px;
}

.conversation .content .text {
    padding: 0 0 4px 0;
}

.loader-respone {
    width: 10px;
    height: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
    position: absolute;
    left: calc(20px + 5px);
    bottom: calc(100% + 5px);
    display: none;
}

.loader-respone.show {
    display: block
}

.save-info-chat .form-contact button[type="submit"] {
    border: 0;
    outline: 0;
    padding: 8px 32px;
    background-color: #0177ff;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.25s ease-in-out;
}

.save-info-chat .form-contact button[type="submit"]:hover {
    background-color: #0057bb;
}

.conversation p {
    margin: 0;
    padding: 0;
}

@keyframes l5 {
    0% {
        box-shadow: 15px 0 #000, -15px 0 #0002;
        background: #000
    }

    33% {
        box-shadow: 15px 0 #000, -15px 0 #0002;
        background: #0002
    }

    66% {
        box-shadow: 15px 0 #0002,-15px 0 #000;
        background: #0002
    }

    100% {
        box-shadow: 15px 0 #0002,-15px 0 #000;
        background: #000
    }
}

/*========== End chat ==========*/

@media (min-width: 576px) {
    /*========== Chat ==========*/
    .box-chatbot.show,
    .chat-supporter.show,
    .save-info-chat.show {
        width: 420px;
    }
    /*========== End Chat ==========*/
}



@media (min-width: 1400px) {
    #chat {
        width: 60px;
        height: 60px;
    }
}