/* ====================== GLOBAL & TYPOGRAPHY ====================== */
.section-professional,
.section-service,
.section-packages,
.section-testimonials,
.section-map {
    padding: 40px 0; /* Tạo khoảng cách thông thoáng cho web sang trọng */
}

.title-home {
    text-align: center;
    margin-bottom: 50px; /* Tăng khoảng cách từ tiêu đề đến nội dung */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-home span {
    font-size: 2rem;
    font-weight: 700;
    color: #212529; /* Màu chữ chuẩn Bootstrap đen nhẹ sâu */
    position: relative;
    display: inline-block;
}

.title-home span:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #198754; /* Giữ màu xanh thương hiệu */
    border-radius: 50px;
}

/* ====================== OUR PROFESSIONAL TEAM ====================== */
.section-professional {
    background: #f8f9fa; /* Nền xám nhạt nhẹ nhàng */
}

/* Tận dụng CSS Grid thông minh tự responsive của bạn */
.grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 10px 0;
}

/* Định hình lại cấu trúc Thẻ Card */
.item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Đổ bóng mịn màng hơn */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.item-img {
    width: 100%;
    height: 340px; /* Tăng nhẹ chiều cao để tôn dáng nhân viên */
    overflow: hidden;
    background: #eaeaea;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover .item-img img {
    transform: scale(1.05);
}

.item-content {
    padding: 25px 20px;
    text-align: center;
}

.item-name span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    display: block;
    margin-bottom: 4px;
}

.item-old span {
    font-size: 0.9rem;
    color: #6c757d; /* Muted color chuẩn Bootstrap */
    font-weight: 500;
}

.item-booking {
    margin-top: 20px;
}

.item-booking a {
    display: inline-block;
    background: #198754;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
    transition: all 0.3s ease;
}

.item-booking a:hover {
    background: #157347; /* Tối màu xuống khi hover tạo sự chuyên nghiệp */
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
    transform: translateY(-2px);
}


/* ====================== NO.1 SPA & MASSAGE GALLERY ====================== */
.section-service {
    background: #ffffff; /* Đổi xen kẽ nền trắng để web có mảng miếng rõ ràng */
}

.masonry-service {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Đổi sang hệ 6 cột để chia đều hoàn hảo cho 4 ảnh */
    grid-auto-rows: 240px;
    gap: 20px;
}

.item-service {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Dùng px thay cho % để bo góc chuẩn không méo */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.item-service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.item-service:hover img {
    transform: scale(1.04); /* Thêm hiệu ứng zoom nhẹ cho đồng bộ với phía trên */
}

/* Định vị lại Layout cân bằng tuyệt đối cho cấu trúc 4 ảnh */
/* Ảnh 1 bên trái lớn: chiếm 3 cột, 2 hàng */
.masonry-service .item-service:nth-child(1) {
    grid-column: span 3;
    grid-row: span 2;
}

/* Ảnh 2 phía trên bên phải: chiếm 3 cột, 1 hàng */
.masonry-service .item-service:nth-child(2) {
    grid-column: span 3;
    grid-row: span 1;
}

/* Ảnh 3 góc dưới giữa: chiếm 1.5 cột -> đổi thành chia đều cùng ảnh 4 mỗi ảnh 1.5 cột (tổng bằng 3 cột còn lại) */
.masonry-service .item-service:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}
.masonry-service .item-service:nth-child(3) { grid-column: span 1; } /* Fallback */

/* Căn chỉnh chính xác tuyệt đối hệ 6 cột */
.masonry-service .item-service:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.masonry-service .item-service:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.masonry-service .item-service:nth-child(3) { grid-column: 4 / 5; grid-row: 2 / 3; }
.masonry-service .item-service:nth-child(4) { grid-column: 5 / 7; grid-row: 2 / 3; }


/* ====================== RESPONSIVE MOBILE & TABLET ====================== */

/* Máy tính bảng (Tablet) */
@media (max-width: 992px) {
    .masonry-service {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    /* Chuyển thành lưới 2x2 cân xứng trên máy tính bảng */
    .masonry-service .item-service:nth-child(1),
    .masonry-service .item-service:nth-child(2),
    .masonry-service .item-service:nth-child(3),
    .masonry-service .item-service:nth-child(4) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Điện thoại di động (Mobile) */
@media (max-width: 768px) {
    .section-professional,
    .section-service
    .section-packages,
    .section-testimonials,
    .section-map {
        padding: 30px 0; /* Giảm padding trên mobile để tiết kiệm diện tích */
    }

    .title-home {
        margin-bottom: 35px;
    }

    .title-home span {
        font-size: 1.6rem;
    }

    .masonry-service {
        grid-template-columns: 1fr; /* Xếp dọc 1 cột */
        grid-auto-rows: 240px;
        gap: 15px;
    }

    .masonry-service .item-service:nth-child(1),
    .masonry-service .item-service:nth-child(2),
    .masonry-service .item-service:nth-child(3),
    .masonry-service .item-service:nth-child(4) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}



/* ====================== POPULAR PACKAGES ====================== */
.section-packages{
    background: #f8f9fa;
}
/* Lưới chia 3 cột đều nhau */
.grid-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Khoảng cách rộng rãi giữa các cột */
    margin-top: 20px;
}

/* Khung bọc từng gói dịch vụ */
.package-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Phần hình ảnh */
.package-img {
    width: 100%;
    height: 280px; /* Chiều cao ảnh */
    overflow: hidden;
    border-radius: 4px; /* Bo góc nhẹ theo style ảnh mẫu */
}

.package-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-item:hover .package-img img {
    transform: scale(1.06);
}

/* Phần nội dung text */
.package-content {
    padding: 25px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Đảm bảo các nút bấm luôn thẳng hàng ở dưới cùng */
}

/* Tên gói dịch vụ */
.package-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffc107; /* Màu vàng sang trọng nổi bật */
    margin-bottom: 12px;
}

/* Mô tả */
.package-desc {
    font-size: 0.95rem;
    color: #000; /* Màu chữ xám trắng dễ đọc trên nền tối */
    line-height: 1.6;
    margin-bottom: 10px;
    min-height: 72px; /* Giữ cho phần mô tả đều nhau bất kể độ dài chữ */
}






/* Nút bấm Đặt Ngay */
.package-btn {
    margin-top: auto; /* Đẩy nút xuống đáy item */
}

.btn-book-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px; /* Bo góc vuông vắn theo mẫu */
    text-decoration: none;
    width: 100%; /* Chiều rộng full khối giống ảnh */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background-color: #ffc107; /* Đổi sang màu vàng thương hiệu khi hover */
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

/* Icon WhatsApp hoặc Icon đặt lịch */
.btn-book-now i {
    font-size: 1.2rem;
}

/* ====================== RESPONSIVE PACKAGES ====================== */
@media (max-width: 992px) {
    .grid-packages {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên máy tính bảng */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .grid-packages {
        grid-template-columns: 1fr; /* 1 cột dọc trên điện thoại */
        gap: 35px;
    }

    .package-img {
        height: 240px; /* Giảm chiều cao ảnh một chút trên mobile */
    }
}







/* ====================== CLIENT TESTIMONIALS ====================== */
.section-testimonials {
    background-color: #f7e6df; /* Nền hồng kem pastel nhẹ nhàng thư giãn giống mẫu */
    position: relative;
    overflow: hidden;
}

/* Tiêu đề phụ nhỏ phía trên */
.subtitle-testimonial {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b36b4d; /* Màu cam đất thương hiệu */
    margin-bottom: 5px;
    font-weight: 600;
}

/* Khung chứa bao ngoài slider */
.testimonial-container {
    max-width: 950px;
    margin: 50px auto 0 auto;
    position: relative;
}

/* Hộp trắng chứa nội dung đánh giá */
.testimonial-box {
    background: #ffffff;
    padding: 60px 80px 40px 80px;
    border-radius: 4px; /* Bo góc cực nhẹ tạo cảm giác vuông vắn tinh tế */
    box-shadow: 0 15px 40px rgba(179, 107, 77, 0.08);
}

/* Cục tròn chứa icon dấu nháy kép nằm đè lên viền hộp */
.quote-icon {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed #ffffff; /* Viền nét đứt màu trắng tinh tế */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 80px; /* Tăng kích thước ô tròn để avatar rõ hơn */
    height: 80px;
    background-color: transparent; /* Xóa màu nền */
    box-shadow: none; /* Xóa shadow mặc định */
}

/* Style cho ảnh avatar */
.client-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Làm ảnh tròn */
    object-fit: cover; /* Giữ tỷ lệ ảnh */
    border: 3px solid #ffffff; /* Viền trắng tinh tế */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow mượt mà */
}

/* Thêm icon nháy kép làm lớp phủ (overlay) */
.quote-icon:before {
    content: '\f10d'; /* Mã Unicode cho fontawesome fas fa-quote-left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(145, 77, 49, 0.7); /* Màu nâu đậm hơn nhưng có độ trong suốt */
    font-size: 2rem;
    z-index: 1; /* Nằm trên ảnh một chút */
    opacity: 0.5; /* Làm mờ đi để không che avatar */
}


/* Nội dung text bình luận */
.testimonial-content {
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 25px;
}

/* Phần ngôi sao đánh giá */
.testimonial-stars {
    color: #b36b4d;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

/* Tên khách hàng */
.customer-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

/* Vai trò */
.customer-role {
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom lại hai nút mũi tên qua lại gầy mảnh */
.testimonial-container .carousel-control-prev,
.testimonial-container .carousel-control-next {
    width: 60px;
    opacity: 1;
}

.custom-arrow {
    font-size: 1.8rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.testimonial-container .carousel-control-prev:hover .custom-arrow,
.testimonial-container .carousel-control-next:hover .custom-arrow {
    color: #b36b4d;
    transform: scale(1.2);
}

/* ====================== RESPONSIVE TESTIMONIALS ====================== */
@media (max-width: 768px) {

    .testimonial-box {
        padding: 50px 30px 30px 30px; /* Thu hẹp padding trên mobile */
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Ẩn mũi tên trên mobile cho đỡ vướng màn hình, người dùng có thể vuốt bằng tay */
    .testimonial-container .carousel-control-prev,
    .testimonial-container .carousel-control-next {
        display: none;
    }
}




/* ====================== GOOGLE MAP SECTION ====================== */
/* Khung bọc bản đồ */
.map-wrapper {
    width: 100%;
    height: 480px; /* Chiều cao hiển thị của bản đồ trên Máy tính */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border: 4px solid #ffffff;
}

/* ÉP THẺ IFRAME CỦA GOOGLE MAP PHẢI GIÃN HẾT KHUNG CONTAINER */
.map-wrapper iframe {
    width: 100% !important;  /* Thêm !important để xóa bỏ hoàn toàn cái width="600" bị dính trong HTML */
    height: 100% !important; /* Thêm !important để xóa bỏ cái height="450" bị dính trong HTML */
    display: block;
}

/* ====================== RESPONSIVE MOBILE ====================== */
@media (max-width: 768px) {
    .section-map {
        padding: 50px 0;
    }

    .map-wrapper {
        height: 350px; /* Chiều cao vừa vặn trên điện thoại để khách dễ nhìn */
        border-radius: 12px;
    }
}
