/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
footer.entry-meta {font-size: 16px;}
.text-center { text-align: justify;}

.absolute-footer {
    background-color: #f2f2f2;
    padding: 12px 0px 0px;
}

/* -? thường gặp- */

.sc_card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #eeffffc9;
    border-radius: 0px 8px 8px 0px;
    margin: 0em 0em 1.3em 0em;
    padding: 0.9em 0.9em 0.2em 1.2em;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-left: 3.2px solid #00bafd;
    color: #333;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sc_card:hover {
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15), 0 3px 5px rgba(0, 0, 0, 0.1);
}

.sc_card p:first-child {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em !important;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5em !important;
}

.sc_card p:last-child {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em !important;
    margin-bottom: 0.9em !important;
    font-weight: normal;
}

@media (max-width: 468px) {
    .sc_card p:first-child {
        margin-bottom: -0.6em !important
    }
    .sc_card {
        padding: 0.9em 0.1em 0.4em 0.1em;
    }
    .sc_card p:last-child {
        margin-bottom: -5px;
    }
}

/* -- */
.tablepress-1_wrapper {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    background: #fff;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.tablepress-1_wrapper th {
    background: linear-gradient(to right, #ddffffc9, #eeffffc9);
    color: #6b6b6b;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tablepress-1_wrapper td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    transition: all 0.3s ease;
}
.tablepress-1_wrapper tr:nth-child(even) {
    background: #f9f9f9;
}
.tablepress-1_wrapper tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}
.tablepress-1_wrapper td:nth-child(2) {
    text-align: center;
}
.tablepress-1_wrapper td:nth-child(1) {
    padding-left: 20px;
    width: 70%;
}
.tablepress-1_wrapper td:hover {
    background-color: #c4f8f8c9;
    color: #333;
    transform: scale(1.05);
}
.tablepress-1_wrapper tr:last-child td {
    border-bottom: none;
}
.tablepress-1_wrapper tr:last-child td {
    border-radius: 0 0 8px 8px;
}
.tablepress-1_wrapper td {
    letter-spacing: 0.5px;
}
.tablepress-1_wrapper th,
.tablepress-1_wrapper td {
    border: 1px solid #e5e5e5;
    font-size: 16px;
}

@media (max-width: 767px) {
    .tablepress-1_wrapper th,
    .tablepress-1_wrapper td {
        padding: 10px;
        font-size: 14px;
        letter-spacing: 0.2px;
    }
    .tablepress-1_wrapper td:nth-child(1) {
        padding-left: 10px;
        width: auto;
        width: 75%;
    }
    .tablepress-1_wrapper {
        width: 98%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .tablepress-1_wrapper td:hover {
        transform: translateY(-4px);
    }
}

/*--- bảng nhỏ ---*/
table.table-data {
    background: #fff;
    width: 100%;
    margin: 30px 0px 35px 0px;
    border-collapse: collapse;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
}
table.table-data td {
    padding: 12px 15px 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s ease;
}
table.table-data tr:nth-child(even) {
    background-color: #f9f9f9;
}
table.table-data td:nth-child(1) {
    width: 50% !important;
}
table.table-data td:hover {
    background-color: #d6ffffc9;
    transform: scale(1.03);
}
table.table-data caption {
    caption-side: top;
    text-align: center;
    padding: 10px;
    font-size: 1.05em;
    font-weight: bold;
    background-color: #eaeaeaa8;
    color: #6d6d6d;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
}

@media (max-width: 550px) {
    table.table-data caption {
        font-size: 1em;
    }
    table.table-data td {
        padding: 8px 4px 8px 11px;
        font-size: 0.85em;
    }
}
/* -- */

#toggle-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 9px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 1.5s ease;
}
#toggle-container.show {
    opacity: 1;
    max-height: 500px;
}
.toggle-label {
    color: #333;
    font-size: 16px;
    font-weight: normal;
    margin-left: 10px;
    cursor: pointer;
}
.cf7-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.cf7-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cf7-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d6d6d6;
    transition: .4s;
    border-radius: 24px;
}
.cf7-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked+.cf7-slider {
    background-color: #2f8ea5;
}
input:checked+.cf7-slider:before {
    transform: translateX(26px);
}

/* -- */
.messenger-icon {
    position: fixed;
    bottom: 119px;
    right: 26px;
    width: 51px;
    height: 51px;
    cursor: pointer;
    z-index: 9999;
}
.zalo-chat-widget {
    bottom: 40px !important;
    right: 22px !important;
}

.bottom-contact {
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 500;
    position: fixed;
    opacity: 0;
    transform: translateY(100%);
}

@media (max-width: 850px) {
    .zalo-chat-widget {
        display: none !important;
    }
    .messenger-icon {
        display: none !important;
    }
    .absolute-footer {
        padding-bottom: 58px;
    }
    .bottom-contact span {
        opacity: 1;
        max-height: 100px;
        display: block;
        color: #737373;
        transform: translateY(0);
        transition: opacity 0.4s ease-out, transform 0.4s ease-out, max-height 0.55s ease-out;
    }
    .bottom-contact.hide-spans span {
        opacity: 0;
        max-height: 2px;
        overflow: hidden;
        transform: translateY(100%);
        transition: opacity 0.3s ease-out, transform 0.4s ease-out, max-height 0.4s ease-out;
    }
    .bottom-contact.hide-spans {
        background: rgba(245, 245, 247, 0.66);
    }
}

/*--google new--*/
.follow-google:hover {
    transform: scale(1.02);
    border-color: #8DEEEE;
}

/* -- */
#breadcrumbs a {
    color: #393939;
    font-weight: normal;
    font-family: 'Roboto', sans-serif !important;
}
#breadcrumbs span {
    white-space: nowrap;
    padding: 8px;
}
#breadcrumbs::-webkit-scrollbar {
    display: none;
}

/*---toc---*/

#chuyenvienit-toc-container {
    text-align: left;
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: #defdf9 0px 3px 6px 0px inset, rgb(216 208 253 / 50%) -3px -3px 6px 1px inset;
    width: 65%;
    margin-left: 0;
}
.chuyenvienit-toc-title-container p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;

    font-size: 20px;
    font-weight: bold;
    color: #4c4c4c;
    margin: 0;
}

#chuyenvienit-toc-container nav {
    margin-top: 10px;
}

#chuyenvienit-toc-container .chuyenvienit-toc-list {
    list-style-type: none;
    padding: 0px 0px 5px 0px;
    margin: 0px 0px 0px -8px;
}

#chuyenvienit-toc-container .chuyenvienit-toc-list li {
    margin-bottom: 4.5px;
    line-height: 1.2em;
}

#chuyenvienit-toc-container .chuyenvienit-toc-list li a {
    text-decoration: none;
    font-size: 16px;
    color: #106c98;
    margin-left: -10px;
    padding-left: 0px;
    font-weight: normal !important;
    font-family: 'Roboto', sans-serif !important;
}

#chuyenvienit-toc-container .chuyenvienit-toc-list li a:hover {
    color: #0b6174;
    border-bottom: 1px solid #00abd2;
}

#chuyenvienit-toc-container .chuyenvienit-toc-list li a:before {
    content: "• ";
    color: #106c98;
    font-weight: bold;
}

@media (max-width: 1000px) {
    #chuyenvienit-toc-container {
        width: 85% !important;
    }
}

@media (max-width: 550px) {
    #chuyenvienit-toc-container {
        padding: 10px 8px 0px 10px;
        width: 100% !important;
    }
    #chuyenvienit-toc-container .chuyenvienit-toc-title {
        font-size: 15px;
    }
    #chuyenvienit-toc-container .chuyenvienit-toc-list li a {
        font-size: 14px;
    }
} 

/* -- */

.post .wp-caption-text {
    background: none;
    color: #737373;
    font-size: 1.05em;
    padding: 5px 0px 0px;
    text-transform: capitalize;
}

/*---hình ảnh---*/

img {
    max-width: 100%;
    height: auto;
}

.post img {
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.05);
    border-radius: 7px;
}

/* ---- Chỉnh bài viết ---- */
#comments {
    display: none;
}

/* căn sidebar*/
.post-sidebar {
    margin-top: 40px;
}

/* căn bài*/
.post ul {
    margin-top: -0.37em;
}

.post ul li {
    line-height: 1.4em;
    margin-bottom: 0.45em;
}

.post ul li,
ol li {
    font-size: 0.95em;
}

.post li {
    text-align: left;
}

/* menu */
.header-wrapper.stuck {
    box-shadow: none;
}

.header-main .nav>li>a {
    line-height: 5px !important;
}

body.home #breadcrumbs {
    display: none !important;
}

.tooltip {
    color: white !important;
}

/*---sudmenu--*/
.menu-item-has-children:hover>.sub-menu a,
.menu-item-has-children:hover>.sub-menu .sub-menu a {
    color: black;
}

/*menu 1*/
.header-nav .sub-menu>li>a:hover {
    background-color: #b1e0da;

}

/*menu 2*/
.header-nav .sub-menu .sub-menu li a:hover {
    background-color: #b1e0da;
}

/*--- ^^ sud menu ^^---*/
div.flex-col>ul.nav>li>ul.sub-menu {
    visibility: visible;
}

.is-outline.primary {
    color: black !important;
    border-radius: 15px;
}

/* nav-next-back */

.flex-row.next-prev-nav.bt.bb {
    border-top: none;
    border-bottom: none;
    border-left: 2px solid #00000026;
    border-right: 2px solid #00000026;
    border-radius: 0px;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 12%);
}

.next-prev-nav .flex-col {
    padding: 0px;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 10px 20px;
    color: #060606;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #009ecb;
    transform: translateY(-3px);
}

.nav-previous a span.hide-for-small i,
.nav-next a span.hide-for-small i {
    font-size: 20px;
}

@media (max-width: 767px) {
    .nav-previous a,
    .nav-next a {
        font-size: 13.5px;
    }
}

img.suutapanh {
    border-radius: 30px 0px 30px 0px !important;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .entry-category {
        display: none;
    }

    .hide_on_mobile {
        display: none !important;
    }
}

.video-facebook {
    text-align: center;
    margin-bottom: 8px;
}

@media (max-width: 605px) {
    .video-facebook {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        max-width: 100%;
        background: #000;
    }
}

/* author-box */
.author-box {
    border-radius: 4px;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.author-box-wrapper {
    display: flex;
    align-items: center;
}

.author-avatar {
    margin-left: 23px;
    margin-right: 5px;
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border: 2px solid #ddf6ff3b;
    box-shadow: 2px 5px 10px rgb(95 153 155 / 41%);
}

.author-info {
    flex: 1;
    margin: -10px 18px -25px 18px;
}

.author-name {
    text-align: center;
    font-size: 1.4em;
    color: #007e7d;
    font-weight: bold;
}

.author-desc {
    font-size: 0.9em;
    color: #565656;
    font-style: italic;
    padding-bottom: 5px;
}

@media (max-width: 767px) {
    .author-box-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar {
        margin: -5px 0px 25px 0px;
    }

    .author-info {
        text-align: center;
        font-size: 0.95em;
    }
}

/*  nút sidebar */
.wpcf7-popup-contact-form-7-2:hover {
    color: #511212 !important;
}
