.banner-top {
    position: relative;
}
.banner-top-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-direction: column;
}
p.main-title {
    font-size: 50px;
    color: #f15f25;
    font-weight: 600;
}
.content-data {
    height: 700px;
}
.backgroundin1{
    background-image: url("/images/atsaigon/bg-2.jpg");
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}


h2 {
    font-weight: 700;
    color: #0f3d04;
}

/* ====== TỔNG QUAN ====== */
#tongquan {
    /* background: linear-gradient(135deg, #f7f9f5, #ffffff); */
    background-color: rgb(26, 51, 27);
    margin-top: -10px;
    padding: 40px 0;
    color: #ffffff;
}
#tongquan .tongQuanTitle h2 {
     text-align: center;
     text-transform: uppercase;
     font-weight: 700;
     color: #d4ae6f;
     font-size: 50px;
 }
.tongQuanDesc p {
    font-size: 19px;
    text-align: center;
    line-height: 40px;
}
.tb_tongquan {
    width: 100%;
}
.tb_tongquan tr {
    border-bottom: 1px solid #0a53be;
}
td.tb_title {
    width: 400px;
    padding: 10px;
    font-weight: 600;
}
td.tb_desc {
    padding: 10px;
    line-height: 26px;
}

/* ====== MẶT BẰNG ====== */
#matbang {
    background: #f7f9f5;
}
#matbang h2 {
    font-size: 50px;
    padding: 30px;
    text-transform: uppercase;
}
#matbang .lead {
    text-align: justify;
    line-height: 40px;
}
#matbang .layout-item {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
#matbang .layout-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#matbang img {
    width: 100%;
    /*height: 240px;*/
    object-fit: cover;
    display: block;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột đều nhau */
    gap: 20px; /* khoảng cách giữa các cột */
}
.grid-container img{
    width: 100%;
}

/* Khi màn hình nhỏ hơn 768px (mobile), về 1 cột */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.item {
    /*background: #eee;*/
    /*padding: 20px;*/
    text-align: center;
    border-radius: 10px;
}

/* ====== TIỆN ÍCH ====== */
#tienich {
    background: linear-gradient(135deg, #1a341b, #1a341b);
    color: #fff;
    padding: 20px 0;
}
#tienich h2 {
    color: #d4ae6f;
    font-size: 40px;
    text-transform: uppercase;
    padding: 10px 0;
}
#tienich .utility-item {
    overflow: hidden;
    border-radius: 14px;
    transition: transform 0.5s ease;
}
#tienich .utility-item:hover {
    transform: scale(1.05);
}
#tienich .swiper {
    border-radius: 20px;
}
#tienich img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}
#tienich .tienich {
    padding-bottom: 30px;
}

/* ====== NHÀ MẪU ====== */
#nhamau {
    background: #fff;
}
#nhamau .nhamau-swiper {
    width: 100%;
    height: 450px;
    position: relative;
}
#nhamau .nhamau-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.6s ease;
}
#nhamau .nhamau-swiper .swiper-slide img:hover {
    transform: scale(1.03);
}
#nhamau .swiper-pagination-bullet {
    background: #0f3d04;
    opacity: 0.8;
}
#nhamau .swiper-pagination-bullet-active {
    background: #2d7d1e;
    opacity: 1;
}

section#thanhtoan {
    background: linear-gradient(135deg, #132b15, #142b11);
}
section#thanhtoan img{
    width: 100%;
}
/* ====== PHÁP LÝ ====== */
/*#phaply {*/
    /*background: url('https://images.unsplash.com/photo-1507209696998-3c532be9b2b6?auto=format&fit=crop&w=1400&q=80') no-repeat center center/cover;*/
    /*color: white;*/
    /*position: relative;*/
    /*background-attachment: fixed;*/
/*}*/
/*#phaply::before {*/
    /*content: "";*/
    /*position: absolute;*/
    /*inset: 0;*/
    /*background: rgba(0,0,0,0.6);*/
/*}*/
/*#phaply .content {*/
    /*position: relative;*/
    /*z-index: 2;*/
/*}*/


/*popup*/
.popup {
    display: none; /* bật bằng JS */
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.popup.show {
    display: block;
    pointer-events: auto;
    opacity: 1;
}

/* Nền tối phía sau (chỉ dim, không là ảnh) */
.popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* Hộp nội dung: canh giữa tuyệt đối */
.popup-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(-10px); /* xuất hiện nhẹ từ trên */
    z-index: 2;
    width: 92%;
    max-width: 520px;
    min-width: 300px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    color: #fff;
    /* Hình nền của chính popup-content */
    background-image: url("/images/project-detail/the-prive/TPV-2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Khi show, bật chuyển động vào vị trí chính giữa */
.popup.show .popup-content {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

/* Lớp phủ màu mờ phía trong popup để chữ dễ đọc */
.popup-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.15));
    z-index: 0;
}

/* Nội dung thực sự (trên cùng) */
.popup-content > * {
    position: relative;
    z-index: 2;
}

/* Nội dung form */
.popup-content {
    padding: 26px 28px;
}

.popup-content h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
    text-align: center;
    color: #fff;
}

.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-content label {
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    margin-top: 4px;
}

.popup-content input,
.popup-content textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.9); /* trắng nhẹ trong suốt để nhập liệu dễ nhìn */
    color: #222;
    font-size: 14px;
    resize: vertical;
}

.popup-content textarea { min-height: 90px; }

.popup-content button[type="submit"] {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: rgba(0,123,255,0.95);
    color: #fff;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 14px;
    top: 10px;
    z-index: 3;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.close:hover { background: rgba(255,255,255,0.2); }

/* Responsive nhỏ */
@media (max-width: 420px) {
    .popup-content { padding: 18px; }
    .close { width:34px; height:34px; right:10px; top:8px; }
}

/*footer bar*/
.floating-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.fb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: glow 2.5s ease-in-out infinite; /* hiệu ứng luôn chạy */
}

/* màu riêng từng nút */
.fb-item.zalo  { background: #ffffff; color: #0a0a0a; border: 1px solid #264d87 }
.fb-item.phone { background: #ffffff; color: #0a0a0a; border: 1px solid #264d87 }
.fb-item.book  { background: #ffffff; color: #0a0a0a; border: 1px solid #264d87; }

.fb-item img {
    width: 24px;
    height: 24px;
}

.fb-item span {
    font-weight: 500;
    white-space: nowrap;
}

/* Hiệu ứng hover */
.fb-item:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Keyframes cho hiệu ứng “pulse” nhẹ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }
}
@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}
.fb-item { animation: glow 2.5s ease-in-out infinite; }
@keyframes breathe-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255,255,255,0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(255,255,255,0.6);
    }
}

.fb-item {
    animation: breathe-glow 2.2s ease-in-out infinite;
}
.tienich img {
    border-radius: 12px;
}
@media (max-width: 480px) {
    .fb-item {
        border-radius: 50%;
        padding: 10px;
        justify-content: center;
        width: 50px;
        height: 50px;
    }
    .fb-item span { display: none; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    #tongquan {
        padding-left: 15px;
        padding-right: 15px;
    }
    #tongquan .text-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }
    #matbang img { height: 180px; }
    #tienich img { height: 180px; }
    #nhamau .nhamau-swiper { height: 300px; }

    #tongquan .tongQuanTitle h2 {
        text-align: center;
        text-transform: uppercase;
        font-weight: 700;
        color: #d4ae6f;
        font-size: 34px;

    }
    .tongQuanDesc p {
        font-size: 19px;
        text-align: justify;
        line-height: 40px;
    }
    td.tb_title {
        width: 150px;
        padding: 10px;
        font-weight: 600;
    }
    #matbang img {
        width: 100%;
    }
    #phaply img {
        width: 100%;
    }
}