/*
Theme Name: Bavor
Description: This is a child theme for Flatsome Theme
Author: KHOTHEME.COM
Template: flatsome
Version: 3.0
License: Version code by khotheme: 0963130997 - 0374054085
License URI: https://khotheme.com
Tags: Theme Bavor - Version code by khotheme: 0963130997 - 0374054085
Text Domain: Theme Bavor
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

:root{

    --bg-base:#FFFCF5;

    --shadow: 0px 1px 7px #0000004a;

    --color-base:#1A1A1A;

    --color-hover:#27dc61;

    --color-xam:#808080;

    --color-vang:#F8EFDE;

    --color-cam:#E9AD3D;

    --color-white:#fff;

    --color-black:#000;

    --color-brand:#164535;

    --color-gra:linear-gradient(19deg, #03d891 0%, #164535 100%);


}
/*custom scrool*/
/* width */
html::-webkit-scrollbar {
  width: 10px;
}
/* Track */
html::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
/* Handle */
html::-webkit-scrollbar-thumb {
  background: var(--color-gra); 
  border-radius: 10px;
}
/* Handle on hover */
html::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand); 
}
/*end custom scrool*/

body, #main, #wrapper{

    background-color: var(--bg-base);

}

h1{
    font-size: 36px;

    line-height: 1.3em;

}

h2{
    font-size: 24px;

    line-height: 1.3em;

}

h3{
    font-size: 20px;

    line-height: 1.3em;
}

h4{
    font-size: 16px;

    line-height: 1.3em;

}

h5{
    font-size: 14px;

    line-height: 1.3em;

}

div, p, span, a, li, option{

    font-size: 16px;

    line-height: 1.3em;

}

strong, b{

    font-size: 16px;

    line-height: 1.3em;

}

/* =====================================================
 * BACK TO TOP FLATSOME DÙNG SVG
 * Không sử dụng ảnh PNG
 * ===================================================== */

#top-link.back-to-top {
    /* SVG mũi tên do bạn cung cấp */
    --backtotop-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M19.9933 9.99158L20.0051 29.9909' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.9951 15.9902L19.9937 9.99161L26.0041 16.002' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    /* Kích thước nút */
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;

    /* Vị trí */
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 99999 !important;

    /* Căn giữa SVG */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Xóa giao diện cũ của Flatsome */
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;

    /* Màu mũi tên */
    color: #164535 !important;

    /* Nền nút */
    background: rgba(255, 255, 255, 0.96) !important;

    /* Viền và bo tròn */
    border: 1px solid rgba(22, 69, 53, 0.28) !important;
    border-radius: 50% !important;

    /* Giúp nút rõ trên cả nền sáng và tối */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.45),
        0 6px 18px rgba(22, 69, 53, 0.16),
        0 12px 32px rgba(0, 0, 0, 0.14) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    /* Trạng thái ẩn khi ở đầu trang */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(18px) scale(0.92) !important;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease !important;
}

/* Hiển thị nút khi Flatsome thêm class active */
#top-link.back-to-top.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* =====================================================
 * TẠO ICON TỪ SVG
 * ===================================================== */

#top-link.back-to-top::before {
    content: "" !important;
    display: block !important;

    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;

    /* Lấy màu theo thuộc tính color của button */
    background-color: currentColor !important;
    background-image: none !important;

    /* Mask SVG cho Chrome, Safari */
    -webkit-mask-image: var(--backtotop-svg) !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    -webkit-mask-size: contain !important;

    /* Mask SVG chuẩn */
    mask-image: var(--backtotop-svg) !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    mask-size: contain !important;

    pointer-events: none !important;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease !important;
}

/* Không sử dụng pseudo-element còn lại */
#top-link.back-to-top::after {
    display: none !important;
    content: none !important;
}

/* Ẩn icon mặc định của Flatsome */
#top-link.back-to-top > i,
#top-link.back-to-top > .icon-angle-up {
    display: none !important;
}

/* =====================================================
 * HOVER
 * Nền xanh, SVG chuyển sang trắng
 * ===================================================== */

#top-link.back-to-top.active:hover {
    color: #ffffff !important;
    background: #164535 !important;
    border-color: #164535 !important;

    transform: translateY(-5px) scale(1.03) !important;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28),
        0 10px 24px rgba(22, 69, 53, 0.28),
        0 18px 40px rgba(0, 0, 0, 0.18) !important;
}

#top-link.back-to-top.active:hover::before {
    transform: translateY(-2px) !important;
}

/* Trạng thái nhấn */
#top-link.back-to-top.active:active {
    color: #ffffff !important;
    background: #123a2d !important;

    transform: translateY(-1px) scale(0.96) !important;
}

/* Không cho Flatsome ghi đè màu */
#top-link.back-to-top:focus {
    color: #164535 !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

#top-link.back-to-top.active:hover:focus {
    color: #ffffff !important;
    background: #164535 !important;
}

/* Hỗ trợ điều hướng bằng bàn phím */
#top-link.back-to-top:focus-visible {
    outline: 3px solid rgba(22, 69, 53, 0.35) !important;
    outline-offset: 4px !important;
}

/* =====================================================
 * MÁY TÍNH BẢNG
 * ===================================================== */

@media screen and (max-width: 849px) {
    #top-link.back-to-top {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        max-width: 58px !important;

        right: 16px !important;
        bottom: 18px !important;
    }

    #top-link.back-to-top::before {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }
}

/* =====================================================
 * ĐIỆN THOẠI
 * ===================================================== */

@media screen and (max-width: 549px) {
    #top-link.back-to-top {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;

        right: 12px !important;
        bottom: 14px !important;

        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.4),
            0 6px 18px rgba(0, 0, 0, 0.16) !important;
    }

    #top-link.back-to-top::before {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }
}

/* Giảm chuyển động theo cài đặt thiết bị */
@media (prefers-reduced-motion: reduce) {
    #top-link.back-to-top,
    #top-link.back-to-top::before {
        transition: opacity 0.2s ease !important;
    }

    #top-link.back-to-top.active:hover,
    #top-link.back-to-top.active:active,
    #top-link.back-to-top.active:hover::before {
        transform: none !important;
    }
}