/*
Theme Name: Child Theme cho dulichsacmaubinhduong
Description: Child Theme cho trang dulichsacmaubinhduong.com
Author: Tống Nhật Trường
Author URI: https://dulichsacmaubinhduong.com
Template: dulichsacmaubinhduong
Version: 1.5
Text Domain: child-theme-dulichsacmaubinhduong
*/

/* --- CSS BỔ SUNG CHO CHILD THEME --- */

.site-header .header-area.header-main {
    transition: background-color 0.3s ease;
}

.site-header .element-wrapper-main-menu .main-navigation {
    background-color: transparent !important;
}

.header-area.header-main .header-logo img {
    max-height: 60px;
    width: auto;
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/* --- FIX LỖI VỠ GIAO DIỆN DEMO WEB --- */
.theme-image-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 350px !important; /* Chiều cao khung nhìn demo */
    overflow: hidden !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.scrolling-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 6s ease-in-out !important; /* Cuộn mượt mà */
    transform: translateY(0);
}

.theme-image-wrapper:hover .scrolling-image {
    transform: translateY(calc(-100% + 350px)); /* Tự động tính toán khoảng cách cuộn */
}

/* Fix Card nội dung demo */
.demo-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.demo-card:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    border-color: #007bff;
}

/* --- FIX GIAO DIỆN LANDING PAGE PLUGIN --- */
.landing-page-section, 
.landing-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    overflow: hidden !important;
    z-index: 1;
}

/* Fix lỗi Bootstrap Grid bị theme mẹ đè */
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 auto !important; width: 33.33333333% !important; }
    .col-lg-3 { flex: 0 0 auto !important; width: 25% !important; }
    .col-lg-8 { flex: 0 0 auto !important; width: 66.66666667% !important; }
}

@media (max-width: 991px) {
    .theme-image-wrapper {
        height: 250px !important; /* Giảm chiều cao trên mobile */
    }
}
