/*woodhero*/
.khoinguonhero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    /* Thay đổi quan trọng: Bỏ padding cố định, dùng flex để căn giữa khối nội dung */
    padding: 0; 
    justify-content: center; 
    width: 100%;
}

.khoinguonhero-bg { position: absolute; inset: 0; z-index: -1; }

.khoinguonhero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2; /* Nằm trên ảnh */
    pointer-events: none;
}

.khoinguonhero-bg img { width: 100%; height: 100%; object-fit: cover; }

.khoinguonhero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); /* Khóa chặt ở 1650px */
    margin: 0 auto; /* Ép vào giữa màn hình */
    padding: 0 var(--side-padding); /* Trả lại đúng 55px padding để chữ đứng đúng vị trí cũ */
    margin-bottom: 48px;
    z-index: 2;
    text-align: left; /* Đảm bảo chữ vẫn canh trái bên trong cái lồng 1650px */
}
.khoinguonhero-text h1 { font-size: 60px; line-height: 1.1; margin-bottom: 40px; font-weight: 400; }
.khoinguonhero-text p { letter-spacing: 0px; font-size: 15px; margin-bottom: 35px; }




@media (max-width: 1024px) {
    .khoinguonhero {
        height: auto !important; 
        min-height: 120vw !important; 
        background-size: cover !important;
        background-position: center !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

    .khoinguonhero-text {
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        
        /* Đảm bảo căn giữa tuyệt đối */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important; /* Khoảng cách so với đáy section 20px */
    }

    .khoinguonhero-text h1 {
        font-size: 28px; 
        font-weight: 500;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .khoinguonhero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 0px;
    }
}

/* TABLET: Dàn ngang ra tối ưu */
@media (min-width: 768px) and (max-width: 1024px) {
    .khoinguonhero {
        min-height: 56vw !important; /* Tỉ lệ ngang cho Tablet [cite: 2026-02-07] */
    }
}







/*========================================================================================
INTEGRATED WOOD SLIDER CSS (4 TIERS)
==========================================================================================*/

.wood-img-col {
    position: relative;
    overflow: hidden; 
}

.wood-slider-track {
    display: flex; 
    width: 100%;
    height: 100% !important; /* ĐANG XỬ LÝ: Ép track cao bằng khung cha */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

.wood-slider-track img {
    min-width: 100%; 
    width: 100%;
    height: 100%;
    object-fit: cover; 
    flex-shrink: 0;
}

.wood-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-btn {
    border: 2px solid #ffffff !important;
    background: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(3px);
}

.nav-btn:hover {
    background: rgb(23, 26, 27);
}

.nav-btn svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
  }

.nav-btn:hover svg {
    color: var(--white);
}

.wood-progress {
    display: none;
}

/* TẦNG 1: MOBILE (Max: 767px) */
@media (max-width: 767px) {
    .wood-img-col {
        width: 100% !important;
        position: relative !important;
        height: 0 !important;
        padding-top: 80% !important; 
        overflow: hidden !important;
        background: #f0f0f0; /* Màu nền chờ cho sang */
    }

    /* 2. Ép đoàn tàu Slider phải nằm trọn trong cái "hố" vừa tạo */
    .wood-slider-track {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100% !important;
        display: flex !important;
    }

    /* 3. Ảnh con hít full 100% cái hố đó */
    .wood-slider-track img {
        min-width: 100%;
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .wood-nav {
        display: none !important;
    }

    .wood-progress {
    display: block !important;
    position: absolute !important;
    bottom: 25px !important; /* Đẩy lên cao hơn xíu cho thanh thoát */
    left: 60px !important;   /* Thu hẹp lề trái */
    right: 60px !important;  /* Thu hẹp lề phải */
    width: calc(100% - 120px) !important; /* Tổng cộng cụm vào 80px */
    height: 1px !important;  /* Mỏng như sợi chỉ */
    background-color: rgba(255, 255, 255, 0.2) !important; /* Đường ray mờ để làm nền */
    z-index: 10 !important;
    overflow: visible !important; /* Để con thoi trượt tự do */
}

.wood-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
    background-color: #ffffff !important; /* Trắng tinh */
    /* Quan trọng: Độ dài con thoi sẽ cố định, ví dụ 25% tổng chiều dài */
    width: 25% !important; 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 8px #ffffff; /* Thêm tí glow cho sang */
}
}

/* TẦNG 2 & 3 & 4 (Tablet/Desktop) */
@media (min-width: 768px) {
    .wood-progress {
        display: none !important;
    }
    
    .wood-nav {
        display: flex !important;
    }
}

/*============================================================================================
WOOD IMAGE' RANGE
============================================================================================*/





.wood-intro-section {
    padding-top: var(--section-gap);
    padding-bottom: 80px; 
    text-align: center;
}

.intro-content {
    max-width: 750px;
    margin: 0 auto 40px auto; 
}

.intro-content .sub-title {
    font-size: 13px;
    word-spacing: 5px;
    letter-spacing: 1px;
    color: #2b2929;
    font-weight: 300;
    width: 100%;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.intro-content .main-title {
    font-size: clamp(38px, 5vw, 50px);
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 1100px;
}

.intro-content .desc-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 680px;
    color: var(--color-black);
    margin: 0 auto; 
}

.wood-tabs-control {
    padding-top: 40px;
    display: flex;
    justify-content: center; 
    gap: 20px;
    flex-wrap: wrap;
}

.wood-tab-btn {
    padding: 10px 30px;
    border: 1px solid rgb(23, 26, 27);
    background: transparent;
    color: #000000;
    border-radius: 100px;
    font-family: var(--special-font);
    font-size: 23px;
    font-weight: 100;
    text-transform: none;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wood-tab-btn.active {
    background-color: rgb(23, 26, 27);
    border-color: #E6F3E6;
    color: var(--white);
}

.wood-visual-section {
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden; 
}

.wood-panel {
    display: none; 
    opacity: 0;
    width: 100%;
    position: relative; 
}

.wood-panel.active {
    display: block;
    opacity: 1;
    animation: woodFadeIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes woodFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wood-flex-row {
    display: flex;
    align-items: stretch;
    height: 680px;
    width: 100%; 
}

.wood-flex-row.reverse {
    flex-direction: row-reverse;
}

.wood-img-col, .wood-text-col {
    flex: 0 0 50%;
    width: 50%;
}

.wood-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wood-text-col {
    background-color: #fcfcfc;
    padding-left: var(--side-padding); 
    padding-right: 120px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wood-flex-row.reverse .wood-text-col {
    padding-left: 120px;
    padding-right: var(--side-padding);
}

.wood-tag {
    font-size: 11px;
    text-transform: uppercase;
    word-spacing: 5px;
    letter-spacing: 1px; 
    color: #2b2929;
    margin-bottom: 25px;
    display: block;
}

.wood-title {
    font-size: clamp(28px, 3.5vw, 42px); 
    line-height: 1.1;
    margin-bottom: 30px;
}

.wood-desc {
    font-size: 14px;
    line-height: 1.6; 
    color: var(--color-grey);
    margin-bottom: 50px;
    max-width: 480px; 
}

.wood-specs {
    max-width: 380px;
}

.spec-item {
    margin-bottom: 30px; 
}

.spec-item span {
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px; 
    letter-spacing: 0.1em;
}

.bar-bg {
    width: 100%;
    height: 1px; 
    background: #e0e0e0;
    position: relative;
    overflow: hidden; 
}

.bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--black);
    width: 0; 
    transition: width 1.8s cubic-bezier(0.19, 1, 0.22, 1); 
}

@media (max-width: 1024px) {
    .wood-text-col, .wood-flex-row.reverse .wood-text-col {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .wood-flex-row {
        height: 600px; 
    }
}

/* TẦNG 4: TABLET LARGE (Max: 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .casa-container { 
        padding: 0 20px !important; 
    }

    .wood-intro-section {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .wood-visual-section {
        padding-top: 20px !important;
    }

    .intro-content .main-title {
        font-size: 40px; 
        line-height: 1.2;
        margin-bottom: 25px;
    }

    .intro-content .desc-text {
        font-size: 12px;
        max-width: 680px;
        color: var(--color-black);
        margin: 0 auto; 
    }

    .wood-tabs-control {
        gap: 20px;
        margin-top: 40px;
    }

    .wood-tab-btn {
        padding: 12px 30px !important;
        font-size: 16px;
        width: auto !important;
        flex: 0 1 auto !important;
        transition: none !important; 
    }

    .wood-flex-row {
        height: 500px !important; 
    }

    .wood-img-col {
        width: 50% !important;
    }

    .wood-text-col {
        width: 50% !important;
        padding: 20px !important; 
    }

    .wood-flex-row.reverse .wood-text-col {
        padding: 20px !important;
    }

    .wood-panel.active {
        animation: none !important;
        transform: none !important;
    }
}

/* TẦNG 3: TABLET SMALL (Max: 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .casa-container { 
        padding: 0 20px !important; 
    }

    .wood-intro-section {
        padding-top: 60px !important; 
        padding-bottom: 40px !important;
    }

    .wood-visual-section {
        padding-top: 10px !important; 

    }

    .intro-content .main-title {
        font-size: 40px; 
        line-height: 1.2;
    }

    .intro-content .desc-text {
        max-width: 490px;
        color: var(--color-black);
        margin: 0 auto; 
        line-height: 1.6;
    }

    .wood-tabs-control {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    .wood-tab-btn {
        width: auto !important;
        flex: 0 1 auto !important;
        padding: 10px 24px !important;
        font-size: 17px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        border: 1px solid rgb(23, 26, 27) !important; 
    }

    .wood-tab-btn.active {
        background-color: #171a1b !important;
        color: #ffffff !important;
        border: 1px solid #171a1b !important; 
        font-weight: inherit !important; 
    }

    .wood-panel {
        height: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transition: none !important;
        animation: none !important;
    }    

    .wood-panel.active {
        height: auto;
        visibility: visible;
        pointer-events: auto;
        display: block !important; 
    } 

    .wood-flex-row {
        display: flex !important;
        flex-direction: row !important; 
        height: 430px !important; 
        overflow: hidden;
    }

    .wood-flex-row.reverse {
        flex-direction: row-reverse !important; 
    }

    .wood-img-col {
        width: 50% !important;
        height: 100% !important;
    }

    .wood-img-col img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .wood-text-col, 
    .wood-flex-row.reverse .wood-text-col {
        width: 50% !important;
        padding: 20px !important; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .wood-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .wood-desc {
        font-size: 13px;
        line-height: 1.6;
        max-width: 100% !important;
    }
}

/* TẦNG 4: MOBILE (Max: 767px) */
@media (max-width: 767px) {
    .wood-intro-section {
        padding-top: 50px;
        padding-bottom: 40px;
        text-align: left; 
    }

    

    .intro-content {
        margin-left: 0;
        margin-right: 0;
    }

    .intro-content .sub-title {
        text-align: left;
        margin-bottom: 20px;
    }

    .intro-content .main-title {
        text-align: left;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .intro-content .desc-text {
        font-size: 12px;
        font-weight: 400;
        word-spacing: 1px;
        line-height: 1.6;
        color: var(--black);
    }

    .wood-tabs-control {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; 
        gap: 12px 10px; 
        width: 100%;
        margin-top: 60px;
        padding: 0;
    }

    .wood-tab-btn {
        display: flex !important;
        font-size: 15px;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px 15px !important;
        transition: background-color 0.2s ease !important; 
    }

    .wood-tab-btn.active {
        background-color: #171a1b !important;
        color: #ffffff !important;
        padding: 10px 15px !important; 
        transform: none !important;
    }

    .wood-panels-container {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .wood-panel {
        grid-area: 1 / 1 / 2 / 2; 
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: none !important;
        animation: none !important;
    }

    .wood-panel.active {
        visibility: visible;
        opacity: 1;
        height: auto;
        overflow: visible;
        display: block !important; 
    }

    .wood-panel.active {
        animation: none !important; 
        transform: none !important; 
    }

    .wood-visual-section {
        padding: 0 !important; 
    }

    .casa-container { padding: 0 20px !important; } 

    .wood-flex-row, 
    .wood-flex-row.reverse {
        display: flex !important;
        flex-direction: column !important; 
        height: auto !important; 
    }

    .wood-img-col {
        width: 100% !important;
        height: 250px !important; /* ĐANG XỬ LÝ: Chiều cao khung Mobile */
        min-height: 100px !important; 
        max-height: 300px !important; 
        order: -1; 
        overflow: hidden !important; 
        margin-bottom: 0 !important;
    }

    .wood-img-col img {
        width: 100% !important;
        height: 100% !important; /* ĐANG XỬ LÝ: Ép ảnh chiếm trọn 220px */
        object-fit: cover !important; 
        display: block !important;
    }

    .wood-text-col {
        width: 100% !important;
        padding: 20px 20px !important; 
    }

    .wood-flex-row.reverse .wood-text-col {
        width: 100% !important;
        padding: 20px 20px !important;
    }

    .wood-tag {
        display: none;
    }

    .wood-title {
        font-size: 26px;
        text-align: left;
        margin-bottom: 15px;
    }

    .wood-desc {
        max-width: 100% !important;
        text-align: left;
        margin-bottom: 40px;
    }

    .wood-specs {
        max-width: 100% !important;
    }
}
/* ============================================================
   WOODPAGE BODY - FULL
   ============================================================ */










/* ============================================================
   SECTION woodcommitment - MOBILE FIRST
   ============================================================ */
   
.woodcommitment {
    width: 100% !important;
    background-color: #ffffff !important;
    padding: 60px 20px !important; 
    overflow: hidden !important;
}


.woodcommitment .woodcommitment-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    max-width: 100% !important;
}

.woodcommitment .sub-title {
    font-size: 13px !important;
    letter-spacing: 1px !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    margin-bottom: 20px;
    font-weight: 200 !important;
}

.woodcommitment .main-heading {
    font-size: 36px !important; /* Mobile chữ phải đủ to để gây ấn tượng */
    line-height: 1.2 !important;
    font-weight: 400 !important;
    color: var(--black) !important;
    margin-bottom: 40px !important;
}

.woodcommitment .btn-read-more {
    font-family: var(--special-font);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #1a1a1a !important; /* Nút đen tuyền như ảnh */
    color: #ffffff !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 17px !important;
    font-weight: 100 !important;
    letter-spacing: -0.02em !important;
    transition: transform 0.3s ease !important;
}

/* ============================================================
   SECTION woodcommitment - DESKTOP
   ============================================================ */
@media (min-width: 769px) {
    .woodcommitment {
        padding: 80px 0 !important;
        width: 100%;
        display: flex;
        justify-content: center; /* Đẩy cái lồng nội dung vào giữa màn hình */
    }

    .woodcommitment .container {
        /* [MỎ NEO] Khóa chặt khung xương 1650px */
        max-width: var(--container-max) !important; 
        width: 100% !important;
        margin: 0 auto !important;
        /* Dùng đúng side-padding 55px để chữ SỨ MỆNH thẳng hàng với Logo Header */
        padding: 0 var(--side-padding) !important; 
        box-sizing: border-box;
    }

    .woodcommitment .woodcommitment-content {
        /* Bỏ cái margin 55px cũ đi vì đã có padding của container lo */
        margin: 0 !important; 
        /* Khống chế độ rộng nội dung để ngắt dòng cho đẹp (giống ý mày muốn ở phần About) */
        max-width: 1200px !important; 
        text-align: left;
    }

    .woodcommitment .main-heading {
        font-size: clamp(42px, 4vw, 56px) !important;
        max-width: 90% !important;
        letter-spacing: -1px !important;
        line-height: 1.1;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    

    .woodcommitment .btn-read-more:hover {
        color:#000000 !important;
        background-color: #ffffff !important;
        box-shadow: inset 0 0 0 2px #000000 !important; 
    }
}



/* ============================================================
   CHỈ FIX LỀ woodcommitment CHO TABLET LỚN (820px - 1439px)
   ============================================================ */
@media screen and (min-width: 820px) and (max-width: 1439px) {
    .woodcommitment {
        /* Ngăn cách section 40px chuẩn bài mày giao [cite: 2026-02-07] */
        padding: 60px 0 !important; 
    }

    .woodcommitment .container {
        padding: 0 20px !important; 
        max-width: 100% !important;
        width: 100% !important;
    }

    .woodcommitment .woodcommitment-content {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .woodcommitment .main-heading {
        /* Nắn lại font một chút cho khớp tỉ lệ tablet lớn */
        font-size: 42px !important; 
        line-height: 1.3 !important;
        margin-top: 10px !important;
        margin-bottom: 30px !important;
    }
}











/* ============================================================
   SECTION LOGO STRIP - 4 TẦNG GIAO DIỆN (NO FILTER)
   ============================================================ */

.logo-strip-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.logo-track {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 99px; 
    flex-wrap: nowrap; 
}

.logo-track img {
    height: 65px; 
    width: auto;
    transition: 0.3s;
}


@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .logo-track {
        gap: 55px; 
        padding: 0 40px;
    }
    .logo-track img {
        height: 50px;
    }
}


@media screen and (min-width: 768px) and (max-width: 1023px) {
    .logo-strip-section {
        padding: 40px 0;
    }
    .logo-track {
        justify-content: flex-start; 
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px; 
        gap: 55px;
        -webkit-overflow-scrolling: touch;
    }
    .logo-track img {
        height: 45px;
        flex-shrink: 0;
    }
    
    .logo-track::-webkit-scrollbar {
        display: none; 
    }
}


@media screen and (max-width: 767px) {
    .logo-strip-section {
        padding: 30px 0;
    }
    .logo-track {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        gap: 40px;
    }
    .logo-track::-webkit-scrollbar {
        height: 2px;
    }
    .logo-track img {
        height: 35px;
        flex-shrink: 0;
    }
}