/*
 Theme Name:   Ngaovan Child
 Theme URI:    https://example.com/ngaovan
 Description:  Child theme của Flatsome cho Ngaovan
 Author:       Ngaovan
 Author URI:   https://example.com
 Template:     flatsome
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  ngaovan
*/

/* Font chính: Chakra Petch */
html.js {
    background-color: #000;
}

body {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 18px;
}

h1,
.text-72 {
    font-size: 72px;
}

h2,
.text-56 {
    font-size: 56px;
}

.text-40 {
    font-size: 40px;
}

#wrapper>header {
    position: fixed !important;
}

#wrapper {
    position: relative;
}

#wrapper::before {
    content: '';
    display: block;
    width: 300px;
    height: 320px;
    position: absolute;
    background-image: url(./img/box-blur.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    z-index: 1;
    filter: blur(200px);

}

h3,
.text-20 {
    font-size: 20px;
}

.header-bg-color {
    background-color: transparent !important;
}

.stuck .header-bg-color {
    background-color: #000 !important;
}

.navbar .nav-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 54px;
    line-height: 100px;
    margin: 0;
    padding: 0;
    position: relative;
}

.navbar .nav-list .has-submenu .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #070E0E;
    padding: 10px;
    border-radius: 10px;
    z-index: 100;
}

.navbar .nav-list .has-submenu .sub-menu li {
    list-style: none;
    line-height: unset;
    line-height: 44px;
    margin: 0;
}

.navbar .nav-list .has-submenu .sub-menu li a {
    color: #A8948B;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 12px;
    background-color: transparent;
    width: 100%;
    display: block;
}

.navbar .nav-list .has-submenu .sub-menu li a {
    color: #A8948B;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 12px;
    background-color: transparent;
    width: 100%;
    display: block;
}

.navbar .nav-list .has-submenu .sub-menu li:hover a {
    background-color: rgba(49, 49, 49, 0.15);
}

.navbar .nav-list .has-submenu:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .nav-list>li {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 54px;
    line-height: 100px;
    margin: 0;
    padding: 0;
}

.navbar .nav-list>li>a {
    line-height: 100px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.navbar .nav-list>li:hover>a,
.navbar .nav-list>li.active>a,
.navbar .nav-list>li.current-menu-item>a {
    color: #fff;
}

.navbar .sub-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    position: absolute;
    transition: all 0.3s ease;
}

.header-inner #logo {
    width: 114px;
    position: relative;
}

.header-inner #logo:before {
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background: url(./img/line.png) no-repeat center center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    z-index: 1;
}

.header-inner #logo::after {
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background: url(./img/line.png) no-repeat center center;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
    z-index: 1;
}

#logo img {
    max-height: 60px !important;
}

.footer-header {
    text-align: center;
}

.double-line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
    color: #EBE0DA;
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.double-line:before,
.double-line:after {
    content: '';
    display: block;
    width: 117px;
    height: 1px;
    background: url(./img/line.png) no-repeat center center;
}

.footer-subtitle {
    margin-bottom: 16px;
}

.footer-title {
    max-width: 800px;
    margin: 0 auto 20px;
}

.btn {
    padding: 16px 26px;
    border-top: 1px solid #A8948B;
    border-bottom: 1px solid #A8948B;
    position: relative;
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-line {
    position: absolute;
    width: 1px;
    height: 100%;
    position: absolute;
    display: block;
}

.btn-line-left {
    top: 0;
    left: 0;
    position: absolute;
    z-index: 2;
}

.btn-line-right {
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 2;
}


.btn-line-left::before,
.btn-line-left::after,
.btn-line-right::before,
.btn-line-right::after {
    content: '';
    display: block;
    width: 1px;
    height: 12px;
    background: #A8948B;
    position: absolute;
    transition: all 0.3s ease;
}

.btn-line-left::before,
.btn-line-right::before {
    top: 0;
}

.btn-line-left::after,
.btn-line-right::after {
    bottom: 0;
}

.btn:hover .btn-line-left::before,
.btn:hover .btn-line-left::after,
.btn:hover .btn-line-right::before,
.btn:hover .btn-line-right::after {
    height: 50%;
}

.btn.btn-primary::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgba(168, 148, 139, 0.30);
    backdrop-filter: blur(18px);
}

.footer-content {
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 44px;
}

.footer-content-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-content-left p {
    margin: 0;
}

.footer-content-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.footer-image {
    position: relative;
}

.footer-image-inner {
    width: 100%;
    max-width: 809px;
    aspect-ratio: 809/386;
    overflow: hidden;
    padding: 73px;
}

.footer-image-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px dashed rgba(168, 148, 139, 0.30);
    z-index: 0;
}

.footer-image-inner::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 36px;
    width: calc(100% - 72px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px solid rgba(168, 148, 139, 0.30);
    z-index: 0;
}

.footer-image-inner {
    width: 100%;
    max-width: 809px;
    aspect-ratio: 809/386;
    overflow: hidden;
}

.footer-image-inner img {
    border-radius: 50%;
    opacity: 0.6;
}

.absolute-footer {
    display: none;
}

.designer-profile {
    position: relative;
    padding-top: 150px;
}

.designer-profile .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.designer-profile .container::after {
    display: none;
}

.profile-image-wrapper {
    background: black;
    position: relative;
}

.profile-image-wrapper::before {
    content: "";
    position: absolute;
    top: -2px !important;
    left: -2px !important;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    display: block;
    border-radius: 50%;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 40px 34px rgba(0, 0, 0, 1);
    z-index: 2;
}

.profile-image-wrapper img {
    z-index: 1;
    border-radius: 50%;
}

.profile-content {
    text-align: center;
    max-width: 413px;
}

.profile-content .sub-title {
    margin-bottom: 0;
}

.designer-name {
    line-height: 1.5;
    margin-bottom: 0;
}

.profile-content .description p {
    margin: 0;
}

.services-section {
    margin-top: 104px;
    margin-bottom: 24px;
}


.services-section .main-title {
    margin-bottom: 16px;
    max-width: 957px;
    margin: 0 auto 16px;
}

.services-section .description {
    margin-bottom: 16px;
    color: #A8948B;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}

.project-slider {
    background: #000;
    padding: 0px 0 89px 0;
    overflow: hidden;
    position: relative;
}

.about-page {
    padding: 189px 0 89px 0;
}

.pr-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: #A8948B;
    opacity: 0.2;
    top: 0;
    transform: translateX(-50%);
}

.pr-line-1 {
    left: 50%;

}

.pr-line-2 {
    left: 37.5%;
}

.pr-line-3 {
    left: 62.5%;
}

.pr-line-4 {
    left: 75%;
}

.pr-line-5 {
    left: 25%;
}



.project-slider>.container {
    position: relative;
    z-index: 2;
}

/* Hiệu ứng Glow nền */
.project-slider>.container::before {
    content: "";
    width: 602px;
    height: 335px;
    background: #1E4A48;
    z-index: -1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(166px);
}

.project-slider .description {
    color: #A8948B;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    max-width: 739px;
    margin: 0 auto 40px;
}

.project-slider .swiper {
    padding: 20px 0;
    /* Khoảng trống cho ảnh khi scale to không bị cắt */
}

.project-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    will-change: transform;
}

.project-slider-home.ngaovan-cong-trinh-list .swiper-wrapper {
    align-items: center;
}

.project-slider-home.ngaovan-cong-trinh-list .ngaovan-cong-trinh-item {
    display: block;
    aspect-ratio: auto;
    margin: 0 auto;
    position: relative;
    text-decoration: none;
}

.project-slider-home.ngaovan-cong-trinh-list .swiper-slide>a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.project-slider .swiper-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 496 / 268;
    /* Slide hai bên */
    object-fit: cover;
    filter: brightness(0.4);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
    /* Slide phụ thu nhỏ */
    will-change: transform, filter;
    backface-visibility: hidden;
    transform-origin: center center;
}

.project-slider-home.ngaovan-cong-trinh-list .ngaovan-cong-trinh-hover-title {
    display: block;
    margin-top: 0;
    color: #faf5ec;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.project-slider-home.ngaovan-cong-trinh-list .swiper-slide-active .ngaovan-cong-trinh-item:hover .ngaovan-cong-trinh-hover-title,
.project-slider-home.ngaovan-cong-trinh-list .swiper-slide-active .ngaovan-cong-trinh-item:focus-visible .ngaovan-cong-trinh-hover-title {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .project-slider-home.ngaovan-cong-trinh-list .ngaovan-cong-trinh-hover-title {
        font-size: 13px;
        margin-top: 8px;
    }
}

/* Slide ở giữa (Active) */
.project-slider .swiper-slide-active img {
    filter: brightness(1);
    aspect-ratio: 496 / 360;
    transform: scale(1);
    /* Slide chính phóng to */
}

/* Tùy chỉnh 2 nút mũi tên */
.project-slider .swiper-button-next,
.project-slider .swiper-button-prev {
    color: #fff;
    /* Màu đồng bộ với text */
    transition: 0.3s;
}

.project-slider .swiper-button-next:after,
.project-slider .swiper-button-prev:after {
    font-size: 24px;
    /* Kích thước icon mũi tên */
}

.project-slider .swiper-button-next:hover,
.project-slider .swiper-button-prev:hover {
    color: #fff;
}

.ngaovan-cong-trinh-list .ngaovan-cong-trinh-swiper-wrap {
    position: relative;
}

.ngaovan-cong-trinh-list .swiper-button-next,
.ngaovan-cong-trinh-list .swiper-button-prev {
    color: #fff;
}

.ngaovan-brand-list-carousel {
    margin-bottom: 80px;
}

.ngaovan-brand-list-carousel.ngaovan-animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    will-change: transform, opacity;
}

.ngaovan-brand-list-carousel.ngaovan-animate-on-scroll.is-inview {
    animation: ngaovan-fade-in-up .8s ease both;
}

@keyframes ngaovan-fade-in-up {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .ngaovan-brand-list-carousel.ngaovan-animate-on-scroll,
    .ngaovan-brand-list-carousel.ngaovan-animate-on-scroll.is-inview {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.footer-wrapper {
    padding-top: 70px;
    padding-bottom: 24px;
    background-color: #000;
}

.ngaovan-brand-list-carousel .swiper-slide>a {
    width: 100%;
    aspect-ratio: 371/520;
    padding: 12px;
    border: 1px solid rgba(168, 148, 139, 0.502);
}


.ngaovan-brand-tile-inner {
    padding: 8px;
    height: 100%;
    position: relative;
}

.ngaovan-brand-tile-inner-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ngaovan-brand-tile-inner:hover .ngaovan-brand-tile-inner-content {
    opacity: 1;
    visibility: visible;
}

.swiper-slide-92 .ngaovan-brand-title {
    max-width: 100px;
}

.ngaovan-brand-tile {
    height: 100%;
    position: relative;
}

.ngaovan-brand-angle-top {
    position: absolute;
    width: 25px;
    height: 25px;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    top: -1px;
    left: -1px;
    display: block;
    z-index: 2;
}

.ngaovan-brand-angle-bottom {
    position: absolute;
    width: 25px;
    height: 25px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    bottom: -1px;
    right: -1px;
    display: block;
    z-index: 2;
}

.ngaovan-brand-tile {
    padding: 8px;
    border: 1px solid #A8948B33;
    border-radius: 50%;
}

.ngaovan-brand-tile img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.ngaovan-brand-tile-inner:hover .ngaovan-brand-tile img {
    opacity: 1;
    visibility: visible;
}

.ngaovan-brand-title {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 148px;
    text-align: center;
    color: #EBE0DA;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
}

/* Tổng thể Section */
.designer-section {
    background-color: #050505;
    /* Nền đen sâu */
    padding: 100px 0;
    color: #ffffff;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Content */
.header-content {
    text-align: center;
    margin-bottom: 60px;
    z-index: 2;
    position: relative;
}

.main-title {
    font-size: clamp(40px, 8vw, 80px);
    font-size: 56px;
    font-weight: 700;
    color: #c5a491;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

.description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #a0a0a0;
    font-weight: 300;
}

/* Swiper Customization */
.designer-section-swiper {
    padding: 40px 0;
    overflow: visible;
    /* Để thấy các slide tràn ra ngoài */
}

.designer-section-swiper .swiper-slide {
    width: 450px;
    /* Độ rộng slide chính */
    height: 600px;
    transition: all 0.5s ease;
    filter: brightness(0.3) grayscale(0.5);
    /* Làm tối và giảm màu các slide phụ */
    opacity: 0.5;
}

/* Khi slide được active (nằm ở giữa) */
.designer-section-swiper .swiper-slide-active {
    filter: brightness(1) grayscale(0);
    /* Sáng và đủ màu */
    opacity: 1;
    transform: scale(1.05);
    /* Phóng to nhẹ slide giữa */
}

.designer-section-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Swiper từ UX Builder (Flatsome): giữ slide luôn căn giữa */
.mySwiper .swiper-wrapper {
    align-items: center;
}

.mySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySwiper .swiper-slide img {
    display: block;
    margin: 0 auto;
}

/* UX Builder đôi khi chèn thẻ p rỗng vào trong swiper-wrapper */
.mySwiper .swiper-wrapper>p:empty {
    display: none;
}

.vision-philosophy {
    position: relative;
    background: rgba(159, 157, 156, 0.10);
    padding-top: 100px;
    padding-bottom: 100px;
}

.vision-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: justify;
    gap: 40px;
}

.vision-content {
    width: 100%;
    max-width: 602px;
}

.vision-image {
    width: 100%;
    max-width: 553px;
}

.justify-center {
    justify-content: center;
}

.journey-capacity {
    margin-top: 75px;
}

.journey-title {
    margin-bottom: 20px;
}

.journey-desc {
    max-width: 820px;
    margin: 0 auto 34px;
}



.single-cong-trinh .entry-content {
    padding-top: 0;
}

.single-cong-trinh .entry-title {
    color: #A8948B;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
}

.single-cong-trinh .ct-desc {
    max-width: 884px;
    margin: 0 auto 16px;
}

.single-cong-trinh .ct-desc:last-child {
    max-width: 884px;
    margin: 0 auto 32px;
}

.about-interiors {
    height: 100vh;
    position: relative;
    max-height: 800px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.about-desc {
    color: #fff;
}

.about-interiors .about-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 630px;
    width: 100%;
    padding: 0 15px;
}

.services-bento {
    background-color: #0a0a0a;
    padding: 80px 0;
    color: #fff;
}

.services-bento h2 {
    margin-bottom: 48px;
}

.container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 0 15px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1.59fr 1fr;
    gap: 15px;
    min-height: 560px;
}

.list-ct {
    margin-top: 60px;
}

.list-ct h2 {
    margin-bottom: 58px;
}

/* Base Styles cho từng ô */
.bento-item {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

svg.svg-1 {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    filter: blur(185px);
}

svg.svg-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
    filter: blur(120px);
}

svg.svg-3 {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    filter: blur(185px);
}

.item-align-top {
    justify-content: flex-start;
}

.item-content {
    position: relative;
    z-index: 2;
}

.item-content h3 {
    color: #EBE0DA;
    font-size: 24px;
    font-weight: 700;
    line-height: 150%;
}

.item-content p {
    color: #EBE0DA;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

.item-content p:last-child {
    margin-bottom: 0;
}

/* Định nghĩa kích thước đặc thù cho từng ô */
.item-vertical {
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

.item-text-dark {
    justify-content: end;
}

.item-image {
    grid-column: span 1;
}

.blog-single {
    padding: 169px 0 30px;
}

.blog-single .entry-title {
    font-size: 48px;
}

@media (max-width: 1024px) {
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto;
    }

    .bento-item {
        min-height: 300px;
        justify-content: flex-end;
    }

    .bento-item:first-child {
        grid-column: span 12;
        order: 1;
    }

    .bento-item:nth-child(4) {
        grid-column: span 12;
        order: 5;
    }

    .bento-item:nth-child(5) {
        grid-column: span 12;
        order: 4;
    }

    .bento-item:nth-child(2) {
        grid-column: span 5;
        order: 2;
    }

    .bento-item:nth-child(3) {
        grid-column: span 7;
        padding: 16px 16px 24px;
        order: 3;
    }

    .bento-item .item-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .designer-section-swiper .swiper-slide {
        width: 80%;
        height: 450px;
    }

    .main-title {
        font-size: 45px;
    }
}

@media screen and (max-width: 550px) {
    .project-slider .swiper-slide img {
        aspect-ratio: 170 / 170;
    }

    .project-slider .swiper-slide-active img {
        aspect-ratio: 170 / 240;
    }
}

/* Công trình: desktop/tablet = swiper, mobile = grid 3 items */
.ngaovan-cong-trinh-list .ngaovan-cong-trinh-item {
    display: block;
    color: inherit;
}

.ngaovan-cong-trinh-list .ngaovan-cong-trinh-media {
    overflow: hidden;
}

.ngaovan-cong-trinh-list .ngaovan-cong-trinh-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.ngaovan-cong-trinh-list .ngaovan-cong-trinh-item:hover .ngaovan-cong-trinh-thumb {
    transform: scale(1.04);
}

.ngaovan-cong-trinh-list .ngaovan-cong-trinh-title {
    color: #FAF5EC;
    font-size: 20px;
    font-weight: 600;
    line-height: 150%;
    text-transform: uppercase;
    position: absolute;
    width: calc(100% - 48px);
    bottom: 24px;
    position: absolute;
    left: 24px;
}

/* default: show swiper, hide mobile grid */
.ngaovan-cong-trinh-list .ngaovan-cong-trinh-carousel-wrap {
    display: block;
}

.ngaovan-cong-trinh-list .ngaovan-cong-trinh-mobile-grid {
    display: none;
}

.ngaovan-cong-trinh-item {
    aspect-ratio: 345/500;
}

.ngaovan-cong-trinh-media {
    height: 100%;
}

.ngaovan-cong-trinh-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ngaovan-cong-trinh-title {
    position: absolute;
}

.ctnb {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.ctnb-2 {
    padding-top: 0 !important;
    padding-bottom: 100px !important;
}

.ctnb h2 {
    max-width: 920px;
    margin: 0 auto 56px;
}

.ctnb .button-wrapper {
    margin-top: 56px;
}

/* Cong trinh noi bat: desktop slider 4 items, mobile list 3 rows */
.ngaovan-cong-trinh-noi-bat {
    position: relative;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-swiper-wrap {
    position: relative;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-item {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #0b0b0b;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-media {
    display: block;
    aspect-ratio: 1/1.4;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
    text-transform: uppercase;
    color: #FAF5EC;
    font-size: 20px;
    font-weight: 600;
    line-height: 150%;
    text-transform: uppercase;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-item:hover .ngaovan-ctnb-media img {
    transform: scale(1.04);
    filter: brightness(0.9);
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    margin: 0 !important;
    min-width: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-nav.prev {
    left: 12px;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-nav.next {
    right: 12px;
}

.ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-mobile-list {
    display: none;
}

@media screen and (max-width: 767px) {
    .ngaovan-cong-trinh-list .ngaovan-cong-trinh-carousel-wrap {
        display: none;
    }

    .ngaovan-cong-trinh-list .ngaovan-cong-trinh-mobile-grid {
        display: block;
    }

    .ngaovan-cong-trinh-list .ngaovan-cong-trinh-mobile-grid .row {
        display: flex;
        flex-direction: column;
    }

    .ngaovan-cong-trinh-list .ngaovan-cong-trinh-item {
        aspect-ratio: 343 / 400;
    }

    .ngaovan-cong-trinh-list .ngaovan-cong-trinh-title {
        font-size: 13px;
        margin-top: 8px;
    }

    .pr-line {
        display: none;
    }

    .ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-swiper-wrap {
        display: none;
    }

    .ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ngaovan-cong-trinh-noi-bat .ngaovan-ctnb-mobile-list .ngaovan-ctnb-item {
        width: 100%;
    }
}

/* Archive: Cong trinh */

.post-type-archive-cong-trinh .site-main {
    max-width: 1310px;
    padding: 0 15px;
    margin: 0 auto;
}

.ngaovan-archive-cong-trinh-page,
.ngaovan-archive-thuong-hieu-page {
    padding: 196px 0 100px;
}

.ngaovan-archive-head {
    margin-bottom: 28px;
}

.ngaovan-archive-page-title {
    margin-bottom: 20px;
    color: #A8948B;
    font-size: 40px;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
}

.ngaovan-archive-page-desc {
    max-width: 846px;
}

.ngaovan-archive-page-desc p {
    margin-bottom: 53px;
}

.ngaovan-archive-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.ngaovan-filter-btn {
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    border: 1px solid #A8948B;
    color: #A8948B;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    transition: all 0.3s ease;
}

.ngaovan-filter-btn:hover,
.ngaovan-filter-btn.is-active {
    border-color: #fff;
    color: #fff;
}

.ngaovan-archive-loading {
    text-align: center;
    margin-bottom: 12px;
    color: #7f716a;
}

.ngaovan-archive-cong-trinh-grid {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 20px;
}

.ngaovan-archive-cong-trinh-grid>.ct-item:nth-child(10n + 1),
.ngaovan-archive-cong-trinh-grid>.ct-item:nth-child(10n + 8) {
    grid-column: span 10;
    grid-row: span 2;
    aspect-ratio: 522/740;
}


.ngaovan-archive-cong-trinh-grid>.ct-item:not(:nth-child(10n + 1)):not(:nth-child(10n + 8)) {
    grid-column: span 7;
    grid-row: span 1;
    aspect-ratio: 359/360;
}



.ngaovan-archive-cong-trinh-grid.is-loading {
    opacity: .55;
    pointer-events: none;
}

.ngaovan-archive-ct-link,
.ngaovan-brand-archive-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    height: 100%;
    gap: 16px;
}

.ct-item {
    width: 100%;
}

.error404 .error-404 {
    padding-top: 180px;
}

.error404 .error-404 .page-title {
    font-size: 32px;
}

.ngaovan-brand-archive-link {
    width: 100%;
    aspect-ratio: 371/520;
    padding: 12px;
    border: 1px solid rgba(168, 148, 139, 0.502);
}

.ngaovan-archive-ct-media,
.ngaovan-brand-archive-media {
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.ngaovan-archive-ct-thumb,
.ngaovan-brand-archive-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ngaovan-archive-ct-title,
.ngaovan-brand-archive-title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}

.ngaovan-archive-thuong-hieu-grid .ngaovan-brand-title {
    color: #EBE0DA;
}

.ngaovan-archive-empty {
    grid-column: 1 / -1;
    text-align: center;
}

/* Infinite scroll: sentinel triggers next page (10 items) */
.ngaovan-archive-cong-trinh-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
    /* do not use visibility:hidden — breaks IntersectionObserver */
}

.ngaovan-archive-load-more-wrap {
    margin-top: 28px;
}

.ngaovan-archive-load-more-wrap .button-wrapper {
    justify-content: center;
    margin: 0 auto;
}

.ngaovan-archive-load-more {
    border: 1px solid #A8948B;
    background: transparent;
    color: #A8948B;
    padding: 10px 24px;
    font-size: 16px;
    line-height: 1.4;
}

.ngaovan-archive-load-more:hover {
    border-color: #fff;
    color: #fff;
}

.ngaovan-archive-thuong-hieu-grid {
    max-width: 1310px;
    padding: 0;
    margin: 0 auto;
}

.ngaovan-archive-thuong-hieu-grid .ngaovan-archive-thuong-hieu-swiper {
    width: 100%;
}

.ngaovan-archive-thuong-hieu-grid .swiper-slide {
    height: auto;
    display: flex;
}

.ngaovan-archive-thuong-hieu-grid .swiper-slide .ngaovan-brand-archive-link {
    width: 100%;
}

.single-thuong-hieu .top-content {
    padding-top: 180px;
    max-width: 803px;
    margin: 0 auto;
    text-align: center;
}

.single-thuong-hieu .top-content h1 {
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.single-thuong-hieu #main {
    min-height: 90vh;
}

.single-thuong-hieu #footer.footer-wrapper {
    padding: 24px 15px;

}

.single-thuong-hieu #footer.footer-wrapper p {
    margin: 0;
    text-align: center;
}

.footer-style-2 {
    text-align: center;
}


.contact-section {
    padding: 166px 15px 4px;
}

.contact-section .section-header h1 {
    color: #A8948B;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-section .section-header p {
    margin-bottom: 62px;
    color: #A8948B;
    text-align: justify;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.contact-section .info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    margin-bottom: 65px;
}

.contact-section .info-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(159, 157, 156, 0.10);
}

.contact-section .info-item h3 {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.contact-section .info-item p {
    color: #A8948B;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

.contact-section .info-item p:last-child {
    margin-bottom: 0;
}

.contact-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 38px;
    align-items: center;
}

.contact-footer .image-wrapper {
    width: 100%;
    max-width: 738px;
}

.contact-footer .form-wrapper {
    width: 100%;
    max-width: 504px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.contact-footer .form-wrapper h2 {
    color: #A8948B;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 24px;
}

.contact-footer .form-wrapper p {
    color: #A8948B;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.contact-footer .wpcf7 {
    margin-top: 24px;
}

.contact-footer .wpcf7 .contact-form-wrapper {
    display: flex;
    gap: 18px;
    position: relative;
}

.contact-footer .wpcf7 .contact-form-wrapper input:not([type="submit"]) {
    margin: 0;
    width: 100%;
    border: 1px solid rgba(168, 148, 139, 0.40);
    background: rgba(168, 148, 139, 0.20);
    padding: 12px 16px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #fff;
    height: 58px;
}

.contact-footer .wpcf7-not-valid-tip {
    margin-top: 15px;
    color: red;
}

.contact-footer .wpcf7-response-output {
    color: red;
}

.contact-footer .wpcf7 .contact-form-wrapper input[type="submit"] {
    color: #FFF;

    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    height: 58px;
}


.contact-footer .wpcf7 form {
    margin: 0;
}

.contact-footer .wpcf7 .wpcf7-spinner {
    position: absolute;
}

.mfp-container:before {
    display: none;
}

.off-canvas-center .nav-vertical>li>a,
.off-canvas-center .nav-vertical>li>ul>li a {
    justify-content: flex-start;
}

.mfp-bg.off-canvas-center:not(.dark) {
    background: rgba(0, 0, 0, 1);
}

.off-canvas-center .nav-sidebar.nav-vertical>li>a {
    padding-left: 24px;
    padding-right: 24px;
    font-size: 14px;
    color: #8F7E77;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.off-canvas-center .nav-sidebar.nav-vertical>li.current-menu-item>a {
    color: #fff;
}

.off-canvas-center .nav-sidebar.nav-vertical>li+li>a::before {
    content: '';
    display: block;
    width: calc(100% - 48px);
    height: 1px;
    background: rgba(168, 148, 139, 0.15);
    position: absolute;
    top: 0;
    right: 24px;
}

.nav:not(.nav-slide) .active>.children {
    padding: 12px 36px;
    color: #A8948B;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.nav:not(.nav-slide) .active>.children a {
    color: #8F7E77;
    padding: 10px 0;
}

.nav:not(.nav-slide) .active>.children>li.current-menu-item>a {
    color: #fff;
    padding: 10px 0;
}

.off-canvas-center .nav-sidebar.nav-vertical>li .toggle {
    top: 8px;
}

.off-canvas-center .nav-sidebar.nav-vertical>li .toggle i {
    color: #fff;
}

.main-menu-overlay {
    margin-top: 53px;
}

.off-canvas-center:not(.dark) .mfp-close {
    color: #fff !important;
    opacity: 1;
    right: unset;
    left: 6px;
    top: 4px;
}

.current-lightbox-clicked {
    opacity: 0 !important;
}

/* UX Builder: Ngaovan Accordion (numbered left, + / x right)
 * Works with manual class "ngaovan-accordion" and auto class from JS fallback.
 * Global — was wrongly nested only inside max-width:1200px, so desktop saw no styles. */
.accordion.ngaovan-accordion,
.accordion.ngaovan-accordion-auto {
    counter-reset: ngaovan-accordion-item;
}

.accordion.ngaovan-accordion>.accordion-item,
.accordion.ngaovan-accordion-auto>.accordion-item {
    counter-increment: ngaovan-accordion-item;
}

.accordion.ngaovan-accordion .accordion-title,
.accordion.ngaovan-accordion-auto .accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding-left: 54px !important;
}

.accordion.ngaovan-accordion .accordion-title>button.toggle,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle {
    order: 2;
    margin-left: auto;
    min-width: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.accordion.ngaovan-accordion .accordion-title>button.toggle svg,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle svg,
.accordion.ngaovan-accordion .accordion-title>button.toggle i,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle i,
.accordion.ngaovan-accordion .accordion-title>button.toggle span,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle span {
    display: none !important;
}

.accordion.ngaovan-accordion .accordion-title>button.toggle::before,
.accordion.ngaovan-accordion .accordion-title>button.toggle::after,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle::before,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.accordion.ngaovan-accordion .accordion-title>button.toggle::before,
.accordion.ngaovan-accordion-auto .accordion-title>button.toggle::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion.ngaovan-accordion .accordion-title.active>button.toggle::before,
.accordion.ngaovan-accordion-auto .accordion-title.active>button.toggle::before,
.accordion.ngaovan-accordion .accordion-title[aria-expanded="true"]>button.toggle::before,
.accordion.ngaovan-accordion-auto .accordion-title[aria-expanded="true"]>button.toggle::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.accordion.ngaovan-accordion .accordion-title.active>button.toggle::after,
.accordion.ngaovan-accordion-auto .accordion-title.active>button.toggle::after,
.accordion.ngaovan-accordion .accordion-title[aria-expanded="true"]>button.toggle::after,
.accordion.ngaovan-accordion-auto .accordion-title[aria-expanded="true"]>button.toggle::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.accordion.ngaovan-accordion .accordion-title::before,
.accordion.ngaovan-accordion-auto .accordion-title::before {
    content: counter(ngaovan-accordion-item, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: currentColor;
}

.ngaovan-accordion-auto {
    max-width: 886px;
    margin: 0 auto;
}

.ngaovan-accordion-auto .accordion-title {
    border: none !important;
    padding: 24px;
}

.accordion.ngaovan-accordion>.accordion-item,
.accordion.ngaovan-accordion-auto>.accordion-item {
    background: rgba(159, 157, 156, 0.10);
}

.accordion.ngaovan-accordion>.accordion-item+.accordion-item,
.accordion.ngaovan-accordion-auto>.accordion-item+.accordion-item {
    margin-top: 24px;
}

.accordion.ngaovan-accordion .accordion-title.active,
.accordion.ngaovan-accordion-auto .accordion-title.active {
    color: #fff;
}

@media screen and (max-width: 1200px) {

    .body-scroll-lock--active .header-bg-color {
        background-color: #000 !important;
    }

    .body-scroll-lock--active .stuck .header-bg-color {
        background-color: transparent !important;
    }

    .navbar .nav-list {
        gap: 30px;
    }

    .contact-footer .wpcf7 .contact-form-wrapper input[type="submit"]:hover {
        background: linear-gradient(180deg, #9A816E 0%, #C2A999 100%);
    }





    /* Blog + archive post style (Flatsome default palette) */
    .ngaovan-post-archive-page {
        background: #fff;
        padding: 140px 0 80px;
    }

    .ngaovan-post-archive-main {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .ngaovan-post-archive-head {
        margin-bottom: 36px;
    }

    .ngaovan-post-archive-kicker {
        margin-bottom: 8px;
        color: #777;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1.4px;
        text-transform: uppercase;
    }

    .ngaovan-post-archive-title {
        margin: 0 0 12px;
        color: #1c1c1c;
        font-size: 36px;
        font-weight: 700;
        line-height: 1.25;
    }

    .ngaovan-post-archive-desc {
        max-width: 740px;
        margin: 0 auto;
        color: #666;
        font-size: 16px;
        line-height: 1.7;
    }

    .ngaovan-post-archive-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .ngaovan-post-card {
        display: flex;
        flex-direction: column;
        border: 1px solid #ececec;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .ngaovan-post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    }

    .ngaovan-post-card-media-link {
        display: block;
    }

    .ngaovan-post-card-media {
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: #f5f5f5;
    }

    .ngaovan-post-card-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .ngaovan-post-card:hover .ngaovan-post-card-thumb {
        transform: scale(1.04);
    }

    .ngaovan-post-card-thumb-placeholder {
        display: block;
        background: linear-gradient(135deg, #f7f7f7 0%, #efefef 100%);
    }

    .ngaovan-post-card-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        flex: 1;
    }

    .ngaovan-post-card-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #9a9a9a;
        font-size: 13px;
        line-height: 1.4;
    }

    .ngaovan-post-card-dot {
        color: #c8c8c8;
    }

    .ngaovan-post-card-title {
        margin: 0;
        font-size: 22px;
        line-height: 1.35;
    }

    .ngaovan-post-card-title a {
        color: #1c1c1c;
    }

    .ngaovan-post-card-title a:hover {
        color: #446084;
    }

    .ngaovan-post-card-excerpt {
        color: #666;
        font-size: 15px;
        line-height: 1.75;
        flex: 1;
    }

    .ngaovan-post-card-excerpt p {
        margin: 0;
    }

    .ngaovan-post-card-readmore {
        color: #446084;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .ngaovan-post-card-readmore:hover {
        color: #2f445d;
    }

    .ngaovan-post-archive-pagination {
        margin-top: 36px;
    }

    .ngaovan-post-archive-pagination .nav-pagination {
        justify-content: center;
    }

    .ngaovan-post-archive-empty {
        padding: 24px 0;
        text-align: center;
        color: #666;
    }

    @media screen and (max-width: 1024px) {
        .ngaovan-post-archive-page {
            padding-top: 120px;
        }

        .ngaovan-post-archive-title {
            font-size: 32px;
        }

        .ngaovan-post-archive-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

        .ngaovan-post-card-title {
            font-size: 20px;
        }
    }

    @media screen and (max-width: 767px) {
        .ngaovan-post-archive-page {
            padding: 106px 0 56px;
        }

        .ngaovan-post-archive-head {
            margin-bottom: 24px;
        }

        .ngaovan-post-archive-kicker {
            font-size: 11px;
        }

        .ngaovan-post-archive-title {
            font-size: 26px;
        }

        .ngaovan-post-archive-desc {
            font-size: 14px;
            line-height: 1.6;
        }

        .ngaovan-post-archive-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .ngaovan-post-card-body {
            padding: 16px;
        }

        .ngaovan-post-card-title {
            font-size: 18px;
        }

        .ngaovan-post-card-excerpt {
            font-size: 14px;
        }
    }

    svg.svg-1,
    svg.svg-2 {
        transform: translate(0, 0);
    }

}

@media (max-width: 1024px) {

    .ngaovan-archive-cong-trinh-grid,
    .ngaovan-archive-thuong-hieu-grid {
        grid-auto-rows: auto;
        gap: 18px;
    }

    /* Khớp đúng pattern desktop: ô lớn 10n+1 và 10n+8 (không phải chỉ ô 1 và 10) */
    .ngaovan-archive-cong-trinh-grid>.ct-item:nth-child(10n + 1),
    .ngaovan-archive-cong-trinh-grid>.ct-item:nth-child(10n + 8),
    .ngaovan-archive-cong-trinh-grid>.ct-item:not(:nth-child(10n + 1)):not(:nth-child(10n + 8)) {
        grid-column: span 12;
        grid-row: span 1;
    }

    .ngaovan-archive-cong-trinh-grid>.ct-item:not(:nth-child(10n + 1)):not(:nth-child(10n + 8)) {
        aspect-ratio: unset;
    }

}

@media (max-width: 999px) {

    .navbar .nav-list {
        gap: 20px;
    }
}

@media (max-width: 850px) {

    .header-inner #logo:before,
    .header-inner #logo::after {
        display: none;
    }

    .header-inner #logo img {
        margin: 0;
    }

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

    .header-inner .nav {
        justify-content: flex-start;
    }

    .header-inner #logo {
        margin: 0;
        width: fit-content;
    }

    .nav>li.has-icon>a>i {
        color: #fff;
    }
}

@media screen and (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .ngaovan-archive-cong-trinh-grid,
    .ngaovan-archive-thuong-hieu-grid {
        gap: 12px;
    }

    .designer-profile .container {
        padding: 0 15px;
        flex-direction: column-reverse;
    }

    .double-line:before,
    .double-line:after {
        width: 75px;
    }

    .footer-content-left {
        display: none;
    }

    .footer-content-right {
        position: absolute;
        bottom: 0;
        left: 50%;
        top: unset;
        transform: translateX(-50%);
    }

    .footer-content-right p {
        white-space: nowrap;
        font-size: 12px;
        color: #fff;
        text-align: center;
    }

    .about-interiors {
        max-height: 400px;

    }
}

@media (max-width: 575px) {

    .accordion.ngaovan-accordion>.accordion-item+.accordion-item,
    .accordion.ngaovan-accordion-auto>.accordion-item+.accordion-item {
        margin-top: 16px;
    }

    .ngaovan-brand-tile-inner .ngaovan-brand-tile img {
        opacity: 1;
        visibility: visible;
    }
}

@media screen and (max-width: 550px) {
    body {
        font-size: 14px;
    }

    #logo img {
        max-height: 32px !important;
    }

    #header .header.show-on-scroll,
    #header .stuck .header-main {
        height: 52px !important;
    }

    #header .stuck #logo img {
        max-height: 32px !important;
        padding: 0;
    }

    .double-line {
        font-size: 12px;
    }

    .designer-profile {
        padding-top: 84px;
    }

    .designer-profile .double-line,
    .footer-style-2 .double-line {
        margin-bottom: 12px;
    }

    .text-56 {
        font-size: 28px;
    }

    .designer-name {
        margin-bottom: 12px;
    }

    .main-title {
        font-size: 28px;
    }

    .services-section .description {
        font-size: 14px;
    }

    .services-section .button-wrapper {
        display: none;
    }

    .project-slider-home {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .project-slider>p:last-child {
        display: none;
    }

    .contrinh-home {
        padding-top: 0 !important;
    }

    .ngaovan-brand-tile img {
        max-width: 65px !important;
        width: fit-content !important;
    }

    .ngaovan-brand-title {
        font-size: 14px;
        bottom: 40px;
    }

    .ngaovan-brand-list-carousel .swiper-slide>a {
        padding: 8px;
    }

    .brands-section .main-title {
        margin-bottom: 0;
    }

    .ngaovan-brand-list-carousel {
        margin-bottom: 0;
    }

    .footer-title {
        font-size: 24px;
    }

    .btn {
        font-size: 14px;
        padding: 12px 26px;
    }

    .footer-wrapper {
        padding-top: 30px;
        padding-bottom: 16px;

    }

    .footer-image-inner {
        padding: 41px;
    }

    .footer-image-inner::after {
        top: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }

    .project-slider .subtitle {
        margin-bottom: 12px;
    }

    .project-slider .description {
        font-size: 14px;
    }

    .project-slider .header-content {
        margin-bottom: 48px;
    }

    .vision-philosophy {
        padding: 40px 0;
    }

    .vision-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .text-40 {
        font-size: 24px;
    }

    .journey-capacity {
        margin-top: 0;
    }

    .journey-desc {
        text-align: center;
    }

    .ssth .columns {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section.faqss {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .ngaovan-accordion-auto .accordion-title {
        padding: 20px;
        padding-left: 50px;
    }

    .ngaovan-accordion-auto .accordion-title::before {
        left: 20px !important;
    }

    .ctnb h2 {
        margin-bottom: 32px;
    }

    .ctnb .button-wrapper {
        margin-top: 32px;
    }

    .ctnb-2 {
        padding-bottom: 40px !important;
    }

    .ngaovan-archive-cong-trinh-page,
    .ngaovan-archive-thuong-hieu-page {
        padding: 128px 0 60px;
    }

    .ngaovan-archive-page-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 8px;
    }

    .ngaovan-archive-page-desc {
        text-align: center;
        margin-bottom: 24px;
        padding: 0 15px;
    }

    .ngaovan-archive-head {
        margin-bottom: 0;
    }

    .ngaovan-archive-filter-wrap {
        gap: 12px;
    }

    .ngaovan-filter-btn {
        font-size: 14px;
    }

    .ngaovan-archive-ct-link {
        position: relative;
    }

    .ngaovan-archive-ct-title {
        position: absolute;
        bottom: 24px;
        left: 24px;
        width: calc(100% - 48px);
        font-size: 20px;
        color: #FAF5EC;
        z-index: 1;
    }

    .ngaovan-archive-ct-media {
        height: 100%;
    }

    .ngaovan-archive-ct-thumb {
        width: 100%;
        height: 100%;
    }

    .ngaovan-archive-cong-trinh-grid>.ct-item:nth-child(10n + 1),
    .ngaovan-archive-cong-trinh-grid>.ct-item:nth-child(10n + 8),
    .ngaovan-archive-cong-trinh-grid>.ct-item:not(:nth-child(10n + 1)):not(:nth-child(10n + 8)) {
        grid-column: span 24;
        grid-row: span 1;
        width: 100%;
        aspect-ratio: 355 / 400;
    }

    .ngaovan-archive-ct-media:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
        z-index: 1;
    }

    .type-cong-trinh .entry-content>.img>.img-inner {
        aspect-ratio: 375 / 220;
    }

    .type-cong-trinh .entry-content>.img>.img-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .single-cong-trinh .entry-title {
        color: #A8948B;
        text-align: center;
        font-size: 24px;
        font-weight: 700;
        line-height: 150%;
        margin-bottom: 16px;
    }

    .single-cong-trinh .title-content {
        display: none;
    }

    .single-cong-trinh .banner-grid {
        padding-bottom: 0 !important;
    }

    .single-thuong-hieu .top-content {
        padding-top: 128px;
    }

    .single-thuong-hieu .top-content .entry-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .single-thuong-hieu .top-content p {
        font-size: 14px;
    }

    .single-thuong-hieu .top-content .button-wrapper {
        display: none;
    }

    .contact-section .container {
        padding: 0;
    }

    .contact-section .section-header {
        text-align: center;
    }

    .contact-section .section-header h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .contact-section .section-header p {
        font-size: 14px;
        text-align: center;
        margin-bottom: 24px;
    }

    .contact-section .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-section .info-item h3 {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .contact-section .info-item p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .contact-footer {
        flex-direction: column;
        gap: 20px;
    }

    .contact-footer .form-wrapper h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .contact-footer .form-wrapper p {
        font-size: 14px;
    }

    .contact-footer .wpcf7 {
        margin-top: 20px;
    }

    .contact-section {
        padding: 128px 15px 60px;
    }

    .services-bento {
        padding-bottom: 0;
    }

    .ctnb {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .blog-single .entry-title {
        font-size: 24px;
    }

    .list-ct {
        margin-top: 20px;
    }

    .list-ct h2 {
        margin-bottom: 20px;
    }

    .contact-footer .wpcf7 .contact-form-wrapper {
        gap: 12px;
    }

    .contact-footer .wpcf7 .contact-form-wrapper input[type="submit"] {
        margin: 0;
        padding: 0;
        min-width: 64px;
        height: 45px;
        font-size: 14px;
    }

    .contact-footer .wpcf7 .contact-form-wrapper input:not([type="submit"]) {
        height: 45px;
        font-size: 14px;
    }

    .ctnb {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-image {
        margin-left: -44px;
        margin-right: -44px;
    }

    .footer-section .container {
        padding: 0;
    }

    .swiper-slide-88 .ngaovan-brand-title {
        max-width: 115px !important;
    }

    .swiper-slide-92 .ngaovan-brand-title {
        max-width: 74px !important;
    }

    .swiper-slide-93 .ngaovan-brand-title {
        max-width: 100px !important;
    }

}