/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme của Astra
Author: Webtop
Template: astra
Version: 1.5.5
*/

.wt-img-aspect-ratio-4-3 {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.wt-img-aspect-ratio-4-3 img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: left center !important;
    clip-path: polygon(0 0, 100% 0, 71% 100%, 0 100%) !important;
    -webkit-clip-path: polygon(0 0, 100% 0, 71% 100%, 0 100%) !important;
    display: block !important;
}

/* Đường border kẻ sọc vuông góc thẳng đứng từ trên xuống */
.wt-img-aspect-ratio-4-3::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.12);
    /* Màu đường kẻ sọc vuông góc (đổi màu tại đây nếu cần) */
    pointer-events: none;
}

/* ── Mobile (<= 768px): Cắt vát chéo đáy dưới và tỉ lệ khung hình theo mockup ── */
@media (max-width: 768px) {
    .wt-img-aspect-ratio-4-3 {
        aspect-ratio: 1 / 1;
    }

    .wt-img-aspect-ratio-4-3 img {
        aspect-ratio: 1 / 1 !important;
        object-position: center center !important;
        clip-path: polygon(0 0, 100% 0, 100% 68%, 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 68%, 0 100%) !important;
    }

    .wt-img-aspect-ratio-4-3::after {
        display: none;
    }
}

/* ============================================================
   wt-border-gap: Đường border kẻ ngăn cách giữa các item (UAGB Container)
   ============================================================ */
.wt-border-gap {
    --wt-border-color: rgba(0, 0, 0, 0.12);
    /* Màu đường border (có thể đổi màu tùy thích) */
    --wt-border-width: 1px;
    /* Độ dày đường border */
    --wt-border-spacing: 24px;
    /* Khoảng cách đệm từ đường kẻ đến chữ */
}

/* ── Desktop & Tablet ngang (> 768px): Khi các cột nằm ngang ── */
@media (min-width: 769px) {

    /* Border trái & padding trái cho các item từ thứ 2 trở đi */
    .wt-border-gap>*:not(.uagb-container-inner-blocks-wrap):not(:first-child),
    .wt-border-gap>.uagb-container-inner-blocks-wrap>*:not(:first-child) {
        border-left: var(--wt-border-width, 1px) solid var(--wt-border-color, rgba(0, 0, 0, 0.12));
        padding-left: var(--wt-border-spacing, 24px);
    }

    /* Padding phải cho các item trước item cuối cùng (mục 1, 2, 3...) */
    .wt-border-gap>*:not(.uagb-container-inner-blocks-wrap):not(:last-child),
    .wt-border-gap>.uagb-container-inner-blocks-wrap>*:not(:last-child) {
        padding-right: var(--wt-border-spacing-right, var(--wt-border-spacing, 24px));
    }
}

/* ── Màn hình < 977px (Tablet 2 cột): Item thứ 3 xuống hàng mới thì bỏ border-left và padding-left ── */
@media (max-width: 976.98px) {

    .wt-border-gap>*:not(.uagb-container-inner-blocks-wrap):nth-child(3),
    .wt-border-gap>.uagb-container-inner-blocks-wrap>*:nth-child(3) {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* ── Mobile & Tablet đứng (<= 768px): Bỏ hết border & padding giữa các item/gap ── */
@media (max-width: 768px) {

    .wt-border-gap>*:not(.uagb-container-inner-blocks-wrap),
    .wt-border-gap>.uagb-container-inner-blocks-wrap>* {
        border: none !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
}


.wt-padding-left-1212px {
    padding-left: max(12px, calc((100vw - 1212px) / 2)) !important;
}

.wt-padding-right-1440px {
    padding-right: max(12px, calc((100vw - 1440px) / 2)) !important;
}

/* ── Mobile & Tablet đứng (<= 768px): Bỏ hết border giữa các item/gap ── */
@media (max-width: 768px) {
    .wt-padding-right-1440px {
        padding-right: 0 !important;
    }
}


.wt-override-tien-nghi {
    position: relative;
}

/* Lớp video nằm dưới cùng */
.wt-override-tien-nghi .uagb-container__video-wrap {
    z-index: 0;
}

/* Lớp phủ đen 70% chỉ nằm trên video */
.wt-override-tien-nghi .uagb-container__video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
}

/* Nội dung (chữ, icon) nổi lên trên lớp phủ */
.wt-override-tien-nghi .uagb-container-inner-blocks-wrap {
    position: relative;
    z-index: 2;
}

/* Scale the design section up as the visitor scrolls through it. */
.wt-animation-section-desgin {
    transform: scale(0.85) !important;
    transform-origin: center center;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .wt-animation-section-desgin {
        transform: scale(1) !important;
        will-change: auto;
    }
}

/* Desktop: giữ nguyên như cũ */
@media (min-width: 1025px) {
    .wt-override-tien-nghi {
        background-attachment: fixed !important;
    }
}

/* Mobile / iOS */
@media (max-width: 1024px) {
    .wt-override-tien-nghi {
        position: relative;
        isolation: isolate;
        /* giữ ::after nằm trong section, không chìm dưới trang */
        background-image: none !important;
        /* chỉ bỏ ảnh, GIỮ background-color */
        background-attachment: scroll !important;
        clip-path: inset(0);
        /* chỉ hiện ảnh fixed bên trong section này */
        -webkit-clip-path: inset(0);
    }

    .wt-override-tien-nghi::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100lvh;
        background: url("/wp-content/uploads/2026/11/8f73748b-fa20-4299-ad4e-4260c5f1b35c.jpg") center / cover no-repeat;
        z-index: -1;
        /* nằm dưới overlay ::before của Spectra và nội dung */
        pointer-events: none;
    }
}

/* Khung chứa: cắt phần ảnh bị phóng to vượt ra ngoài */
.wt-animation-img-tien-nghi,
.wt-animation-img-tien-nghi .wp-block-uagb-image__figure {
    overflow: hidden;
    border-radius: 4px !important;
}

/* Ảnh: thiết lập transition mượt */
.wt-animation-img-tien-nghi img {
    display: block;
    width: 100%;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    border-radius: 4px !important;
}

/* Hover vào khung: zoom nhẹ */
.wt-animation-img-tien-nghi:hover img {
    transform: scale(1.08);
    border-radius: 4px !important;
}




/* Section Tiện nghi vượt trội */
.wt-img-tien-nghi-col-3 figure,
.wt-img-tien-nghi-col-3 img,
.wt-img-tien-nghi-col-3 {
    height: 100% !important;
    width: 100% !important;
}

.wt-list-tien-nghi .wt-item-tien-nghi-col-1 {
    grid-column: span 2 !important;
}

.wt-img-tien-nghi img {
    height: 100% !important;
    aspect-ratio: 16/9 !important;
}

/* Khung cột 3: giãn bằng chiều cao của hàng, không phụ thuộc ảnh */
.wt-img-tien-nghi-col-3 {
    position: relative;
    align-self: stretch;
    /* giãn bằng chiều cao 2 cột còn lại */
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.wt-img-tien-nghi-col-3 .wp-block-uagb-image__figure {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left = 0 */
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Ảnh lấp đầy khung, cắt phần thừa */
.wt-img-tien-nghi-col-3 .wp-block-uagb-image__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 1000px) {

    .wt-img-tien-nghi-col-3 figure,
    .wt-img-tien-nghi-col-3 img,
    .wt-img-tien-nghi-col-3 {
        display: none !important;
    }

    .wt-list-tien-nghi>div:first-of-type {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
    }

}

@media (max-width: 976px) {

    .wt-img-tien-nghi figure,
    .wt-img-tien-nghi img,
    .wt-img-tien-nghi {
        height: 100% !important;
    }

    .wt-img-tien-nghi-col-3 figure,
    .wt-img-tien-nghi-col-3 img,
    .wt-img-tien-nghi-col-3 {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .wt-heading-tien-nghi p {
        display: none !important;
    }
}

/* Hoạt động từ 768px đến 1000px (> 767px và < 1001px) */
@media (min-width: 768px) and (max-width: 1000px) {

    /* Section 1 */
    .wt-item-tien-nghi-col-1>.wt-item-tien-nghi-col-1-row-2:nth-child(1) .wp-block-uagb-image {
        order: 1 !important;
    }

    .wt-item-tien-nghi-col-1>.wt-item-tien-nghi-col-1-row-2:nth-child(1) .wp-block-uagb-advanced-heading {
        order: 2 !important;
    }

    /* Section 2 */
    .wt-item-tien-nghi-col-1>.wt-item-tien-nghi-col-1-row-2:nth-child(2) .wp-block-uagb-advanced-heading {
        order: 1 !important;
    }

    .wt-item-tien-nghi-col-1>.wt-item-tien-nghi-col-1-row-2:nth-child(2) .wp-block-uagb-image {
        order: 2 !important;
    }
}

.wt-img-gia-niem-yet{
	max-width: 800px !important;
    aspect-ratio: 22 / 10 !important;
}

@media (max-width: 768px) {
/*     .wt-none-mobile {
		display:none !important;
	} */
}
