/*
Theme Name: Flatsome Child
Description: NamKiem developed for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.13.1
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
    --primary-color: #1e73be; /* Xanh dương chủ đạo (nút, hover, viền, icon) */
    --heading-color: #00296b; /* Xanh navy đậm DÀNH RIÊNG cho Tiêu đề */
    --text-color: #333333;    /* Xám đậm cho chữ nội dung */
    --accent-color: #f58220;  /* Cam nhấn (cho giá tiền) */
    --white: #ffffff;
    --kt-font: "SVN-Gilroy", sans-serif;
}

body {
    font-family: var(--kt-font);
    color: var(--text-color);
}

/* Link mặc định */
a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Khi di chuột vào link */
a:hover {
    color: var(--primary-color);
}

/* Cấu hình màu cho toàn bộ Tiêu đề */
h1, h2, h3, h4, h5, h6, 
.entry-title, 
.section-title, 
.page-title,
.widget-title {
    color: var(--heading-color) !important;
    font-family: var(--kt-font) !important;
    font-weight: 700 !important;
}

p, li, div {
    font-family: var(--kt-font);
}

/* ---------------- MENU ---------------- */
.header-main .nav > li > a {
    color: var(--heading-color);
    font-weight: 500;
}
.header-main .nav > li > a:hover {
    color: var(--primary-color);
}

.nav-dropdown.nav-dropdown-default {
    padding: 0;
    border: none;
}

.nav-dropdown.nav-dropdown-default > li > a {
    padding: 8px 15px;
    color: var(--heading-color);
}

.nav-dropdown.nav-dropdown-default > li:hover {
    background: #f5f5f5;
    border-left: 5px solid var(--primary-color);
}

/* ---------------- CÁC KHỐI GIAO DIỆN ---------------- */
.dac-quyen-section ul li, 
.tieu-chuan-ban-giao-section ul li {
    background: rgba(0, 41, 107, 0.1); /* Nền xanh navy nhạt 10% */
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.tabbed-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-radius: 8px;
    background: var(--white);
}

.tabbed-content ul li.active a {
    background: var(--primary-color);
    color: var(--white);
}

.gioi-thieu .cot5 .block-gioi-thieu {
    background: var(--heading-color);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
}

/* ---------------- FOOTER ---------------- */
.bottom-footer, 
.footer-block,
.bottom-footer h1, .bottom-footer h2, .bottom-footer h3, .bottom-footer h4, .bottom-footer h5, .bottom-footer h6,
.footer-block h1, .footer-block h2, .footer-block h3, .footer-block h4, .footer-block h5, .footer-block h6,
.bottom-footer p, .bottom-footer li, .bottom-footer span, .bottom-footer a, .bottom-footer strong,
.footer-block p, .footer-block li, .footer-block span, .footer-block a, .footer-block strong {
    color: var(--white) !important;
}

.footer-block .form-tai-bao-gia input, 
.footer-block .form-tai-bao-gia textarea {
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #fff !important; /* Đổi lại thành #333 để khi người dùng gõ chữ vào form nền trắng có thể nhìn thấy chữ */
}

/* ---------------- NÚT & POPUP ---------------- */
a.back-to-top {
    background: var(--primary-color) !important;
    border-radius: 50%;
}

.sticky-popup .popup-header {
    background-color: var(--primary-color);
}
.title-location.text-uppercase.bold.color-blue0.margin-none {
    color: var(--white);
}

/* ---------------- FIX LỖI ĐỒNG BỘ ---------------- */

/* Đảm bảo giá tiền hiển thị màu Cam thương hiệu */
.price-wrapper .price, .price-wrapper .price span {
    color: var(--accent-color) !important;
    font-weight: bold;
}

/* Bắt buộc đoạn chữ trích dẫn tin tức luôn là màu xám */
.box-blog-post .from_the_blog_excerpt {
    color: var(--text-color) !important;
}

/* Khi người dùng di chuột (hover) vào bài viết -> Tiêu đề chuyển sang Xanh chủ đạo (#1e73be) */
a.plain:hover .box-blog-post .post-title,
.box-blog-post:hover .post-title,
.product-title a:hover {
    color: var(--primary-color) !important;
}

/* FIX LỖI: Bắt buộc màu Trắng cho tiêu đề và chữ nội dung nằm trong các khối nền tối (Dark mode) */
.section.dark h1, 
.section.dark h2, 
.section.dark h3, 
.section.dark h4, 
.section.dark h5, 
.section.dark h6, 
.section.dark p,
.banner .text-box-content h1,
.banner .text-box-content h2,
.banner .text-box-content h3,
.banner .text-box-content p {
    color: var(--white) !important;
}

/* ---------------- MOBILE RESPONSIVE ---------------- */
@media only screen and (max-width: 48em) {
    .footer-block .form-tai-bao-gia .row1 .cot-field {
        width: 100% !important;
        margin: 0 0 10px 0;
    }
}