/*
Theme Name: ErgoDeskGuides Child
Description: Child theme for ErgoDeskGuides.com - Premium Ergonomic & WFH Office Setup Guides.
Author: Ryan Miller
Author URI: https://ergodeskguides.com/
Template: flatsome
Version: 1.0
*/

/*************** PREMIUM WFH & ERGONOMIC STYLING ***************/

/* 1. ĐỊNH NGHĨA BẢNG MÀU THƯƠNG HIỆU */
:root {
    --primary-color: #1a365d; /* Deep Navy - Uy tín, chuyên gia */
    --accent-color: #0d9488;  /* Modern Teal - Sức khỏe, công thái học */
    --text-dark: #2d3748;     /* Xám Slate - Đọc lâu không mỏi mắt */
    --bg-light: #f7fafc;      /* Nền sáng dịu */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. CHUẨN HÓA TOÀN TRANG (PREMIUM TOUCH) */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
}

/* Màu bôi đen chữ đồng bộ thương hiệu */
::selection {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Hiệu ứng cuộn trang mượt mà */
html {
    scroll-behavior: smooth;
}

/* Định dạng link căn lề trái */
a.align-left {
    text-align: left;
    padding-left: 15px !important;
    margin-right: 0;
    border: none !important;
    box-shadow: none !important;
}

/* 3. HỘP ĐĂNG KÝ NEWSLETTER (#dang-ky) */
#dang-ky {
    text-align: center;
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-width: 600px;
    margin: 30px auto;
}
#dang-ky span.wpcf7-spinner {
    display: none;
}
#dang-ky .title {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
#dang-ky .wpcf7-submit {
    margin: 15px auto 0;
    border: none;
    width: 100%;
    max-width: 250px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
    cursor: pointer;
}
#dang-ky .wpcf7-submit:hover {
    background: var(--primary-color);
    box-shadow: 0 6px 15px rgba(26, 54, 93, 0.4);
    transform: translateY(-2px);
}

/* 4. TIÊU ĐỀ GRADIENT (.txtMain) - ĐÃ THÊM FALLBACK CHỐNG LỖI HIỂN THỊ */
.txtMain {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--primary-color); /* Màu dự phòng cho trình duyệt cũ */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

/* 5. CÁC HỘP REVIEW SẢN PHẨM / DỊCH VỤ (.ss-services) */
.ss-services .box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.ss-services .box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.15);
    transform: translateY(-5px);
}

/* 6. ĐƯỜNG GẠCH PHÂN CÁCH TIÊU ĐỀ (.line-hg) */
.container.section-title-container {
    padding-bottom: 0;
    margin-bottom: 0;
}
.section-title.section-title-center b {
    background: transparent;
}
.line-hg {
    position: relative;
    height: 15px;
    width: 160px;
    margin: 15px auto 30px;
}
.line-hg span {
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 1;
    background-color: var(--accent-color);
    height: 10px;
    width: 10px;
    margin-left: -5px;
    border-radius: 100%;
}
.line-hg:before {
    position: absolute;
    top: 12px;
    left: 0;
    content: "";
    background-color: #cbd5e1;
    height: 1px;
    width: 65px;
}
.line-hg:after {
    position: absolute;
    top: 12px;
    right: 0;
    content: "";
    background-color: #cbd5e1;
    height: 1px;
    width: 65px;
}

/* 7. KHU VỰC HIỂN THỊ BRAND (.ttvn-slider) */
.ttvn-slider .col-inner {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    background: #ffffff;
    transition: var(--transition-smooth);
}
.ttvn-slider .col-inner:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.is-divider {
    background: transparent;
}

/* 8. TỐI ƯU SIDEBAR & RESET FLATSOME OVERRIDES */
.widget-title, span.widget-title {
    position: relative;
    width: 100%;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    height: auto !important;
    line-height: normal !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 15px !important;
    background: transparent !important; /* Xóa màu nền xanh thô cũ */
    text-align: left !important;
}
.widget-title::after, span.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--accent-color) !important;
}

.widget_categories .is-divider, .flatsome_recent_posts .is-divider {
    display: none !important;
}
.widget_categories ul, .widget.flatsome_recent_posts ul {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.widget_categories ul li, .widget.flatsome_recent_posts ul li {
    list-style: none !important;
    padding: 10px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    font-size: 14px !important;
    transition: var(--transition-smooth) !important;
    margin: 0 !important;
}
.widget_categories ul li:hover, .widget.flatsome_recent_posts ul li:hover {
    padding-left: 6px !important;
}
.widget_categories ul li a, .widget.flatsome_recent_posts ul li a {
    color: var(--text-dark) !important;
    box-shadow: none !important;
    border: none !important;
}
.widget_categories ul li a:hover, .widget.flatsome_recent_posts ul li a:hover {
    color: var(--accent-color) !important;
}

/* 9. TỐI ƯU FOOTER DARK MODE */
#footer {
    background-color: #0f172a !important;
}
#footer p, #footer a, #footer span, #footer li {
    color: #94a3b8 !important;
}
#footer a:hover {
    color: var(--accent-color) !important;
}

/* 10. TỐI ƯU HÓA NÚT TÌM KIẾM THEO TÔNG TEAL */
.search-wrapper button, 
button[type="submit"].ux-search-submit, 
.searchform .button,
.widget_search .button {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}
.search-wrapper button:hover, 
button[type="submit"].ux-search-submit:hover, 
.searchform .button:hover,
.widget_search .button:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* 11. ĐÁP ỨNG DI ĐỘNG (MOBILE LAYOUT) */
@media only screen and (max-width: 48em) {
    #masthead {
        background-image: none !important;
        background-color: #ffffff !important;
    }
    #dang-ky {
        max-width: 100% !important;
        padding: 25px 15px;
    }
    .txtMain {
        font-size: 26px;
    }
}


