/* --- Navbar Tùy Chỉnh --- */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa icon và chữ */
}

/* Nút "Đặt lịch ngay" nổi bật hơn */
.btn-contact-nav {
    background: linear-gradient(45deg, #fcb900, #ff5722);
    color: #fff;
    border: none;
    
    /* === SỬA LỖI FONT CHỮ TẠI ĐÂY === */
    font-family: 'Roboto', sans-serif; /* Chỉ định rõ font Roboto */
    font-weight: 700;                 /* Giảm độ đậm xuống 700 (Bold) cho đẹp hơn */
    /* ================================= */

    padding: 12px 26px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.6);
    animation: pulse 2s infinite;
}

/* Hover */
.btn-contact-nav:hover {
    transform: translateY(-3px) scale(1.1); /* nhấc lên + phóng to */
    box-shadow: 0 0 30px rgba(252, 185, 0, 0.9); /* sáng mạnh hơn khi hover */
}

/* Hiệu ứng pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 185, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(252, 185, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(252, 185, 0, 0);
    }
}


/* --- Nút Đặt Lịch Dịch Vụ được thiết kế lại --- */
.btn-service {
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 50px !important; /* Bo tròn */
    transition: all 0.3s ease;
    border: none;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.30);
}


/* --- Project Carousel Tùy Chỉnh --- */
.project-carousel .portfolio-img {
    position: relative;
}

.project-carousel .portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 41, 62, 0.6); /* Lớp phủ màu tối hơn */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-carousel .portfolio-item:hover .portfolio-img::after {
    opacity: 1;
}

.project-carousel .portfolio-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.project-carousel .portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

/* Sao chép style mũi tên từ Testimonial Carousel */
.project-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.project-carousel.owl-carousel .owl-nav button.owl-prev,
.project-carousel.owl-carousel .owl-nav button.owl-next {
    pointer-events: all;
    position: absolute;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark) !important;
    background: #FFFFFF !important;
    border-radius: 45px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
    font-size: 20px !important;
    transition: .3s;
}

.project-carousel.owl-carousel .owl-nav button.owl-prev {
    left: -25px;
}

.project-carousel.owl-carousel .owl-nav button.owl-next {
    right: -25px;
}

.project-carousel.owl-carousel .owl-nav button.owl-prev:hover,
.project-carousel.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}


/* ===== Sửa lỗi ảnh "cái dài cái ngắn" (PHẦN MỚI) ===== */
.portfolio-container .portfolio-img {
    position: relative; /* Rất quan trọng: làm mốc cho nút xem ảnh */
    height: 280px;
    overflow: hidden;
}

.portfolio-container .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Đảm bảo nút xem ảnh luôn nằm giữa và chỉ hiện khi hover */
.portfolio-container .portfolio-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(29, 41, 62, 0.6);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.portfolio-container .portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

/* --- Testimonial (Phản Hồi) Redesign --- */

.testimonial-item-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border-left: 7px solid var(--primary);
    min-height: 450px; /* Tăng chiều cao tối thiểu */
}

.testimonial-img-container {
    flex-shrink: 0;
    width: 280px;             /* Chiều rộng cố định */
    max-height: 500px;        /* Giới hạn chiều cao tối đa */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;         /* nền đen cho ảnh ngang khỏi bị dư */
}

.testimonial-img-container img {
    max-width: 100%;   /* Ảnh ngang sẽ co theo chiều rộng */
    max-height: 100%;  /* Ảnh đứng sẽ co theo chiều cao */
    height: auto;
    width: auto;
    object-fit: contain;  /* Giữ nguyên toàn bộ ảnh, không crop */
    display: block;
}


.testimonial-text-container {
    flex-grow: 1;
}

.testimonial-text-container p {
    font-size: 1.2rem; /* Tăng cỡ chữ phản hồi */
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

.testimonial-text-container h5 {
    color: var(--dark);
    font-weight: 700;
}

/* THÊM VÀO: Định dạng lại cho các nút điều hướng */
.testimonial-carousel.owl-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: #fff;
    border: 2px solid var(--primary); /* Sử dụng màu primary cho viền */
    border-radius: 50px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary); /* Đổi nền khi hover */
}
/* --- Kết thúc phần thêm vào --- */
@media (max-width: 992px) { /* Thay đổi điểm ngắt */
    .testimonial-item-new {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    .testimonial-img-container {
        width: 100%;
        max-width: 280px;
        height: 500px; /* Giữ nguyên chiều cao trên mobile */
        margin-bottom: 30px;
    }
    .testimonial-text-container .fa-quote-left {
        margin-left: auto;
        margin-right: auto;
    }
}
/* --- Kết thúc Testimonial (Phản Hồi) Redesign --- */

/* --- Footer Tùy Chỉnh --- */
.footer-contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.container-fluid.my-5 .position-relative {
    height: 350px; /* Đặt một chiều cao cố định */
    overflow: hidden;
}

.container-fluid.my-5 .position-relative img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Lấp đầy khung mà không làm méo ảnh */
    transition: transform 0.5s ease; /* Thêm hiệu ứng phóng to khi hover */
}

/* Thêm hiệu ứng phóng to ảnh khi hover */
.container-fluid.my-5 .position-relative:hover img {
    transform: scale(1.1);
}

/* --- Tùy chỉnh hiệu ứng Hover cho Dịch Vụ --- */
/* Ghi đè màu nền của lớp phủ */
.service-item:hover .service-text::before {
    background: var(--primary) !important; /* var(--primary) chính là màu #c49963 */
}

/* Ghi đè màu chữ khi hover */
.service-item:hover .service-text * {
    color: var(--light) !important; /* var(--light) chính là màu #faefe0 */
}


/* --- Hiệu ứng động cho Navbar --- */
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 153, 99, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(196, 153, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 153, 99, 0);
  }
}

.navbar-nav .nav-link i {
  position: relative;
  transition: transform 0.3s ease;
}

/* Áp dụng hiệu ứng tỏa sáng cho icon */
.navbar-nav .nav-link .fa-phone-alt,
.navbar-nav .nav-link .bi-chat-dots-fill {
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

/* Hiệu ứng phóng to khi hover */
.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

/* --- Sửa lỗi ảnh "cái dài cái ngắn" cho Dịch Vụ --- */
.service-img-container {
    height: 500px; /* Chiều cao cố định cho ảnh dịch vụ */
    overflow: hidden;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CSS cho nút "Xem Thêm" và Video --- */
/* Ẩn các công trình cũ hơn ban đầu */
.portfolio-item.portfolio-hidden {
    display: none;
}

/* Giao diện cho video item */
.video-item .portfolio-btn .fa-play {
    font-size: 2rem; /* Làm icon Play to hơn */
}

/* Overlay mờ trên ảnh */
.video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); /* độ mờ */
}

/* Nút Play giữa ảnh */
.btn-play-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  color: #000;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-play-center:hover {
  background: #fff;
  color: #007bff; /* hoặc màu brand của bạn */
}

#videoContainer lite-youtube,
#videoContainer iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ratio-9x16 {
  aspect-ratio: 9 / 16;
}

/* --- Thiết kế lại cho Thẻ Dịch Vụ --- */
.service-card-new {
    transition: all 0.3s ease;
}

.service-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.service-card-new .card-img-top {
    height: 300px;
    object-fit: cover;
}

.service-card-new .list-group-item {
    background: transparent; /* Loại bỏ nền trắng của list item */
    border: none;
    padding-left: 0;
}

.bg-primary {
    background-color: #c49963  !important;
}

/* --- Tùy chỉnh cho Tiêu đề Dịch vụ (Badge) --- */
.service-badge {
    display: inline-block;
    padding: 0.6em 1.2em;
    font-size: 1.4rem; /* BẠN CÓ THỂ TĂNG/GIẢM CỠ CHỮ Ở ĐÂY */
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem; /* Bo góc nhẹ */
    color: var(--light); /* Màu chữ #faefe0 */
    background-color: var(--primary); /* Màu nền #c49963 */
}

/* --- Thiết kế lại cho Hộp "Đặc Biệt" --- */
.special-offer-box {
    border: 2px dashed var(--primary);
    border-radius: 10px;
    background-color: #fff; /* Nền trắng để nổi bật trên lớp phủ hover */
    text-align: center;
    transition: all 0.3s ease;
}

.special-offer-header {
    background-color: var(--primary);
    color: var(--light);
    padding: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.special-offer-body {
    padding: 15px;
    font-size: 1.1rem;
    color: var(--dark);
}

.move-offer-box {
    border: 2px dashed var(--primary);
    border-radius: 10px;
    background-color: #fff; /* Nền trắng để nổi bật trên lớp phủ hover */
    text-align: center;
    transition: all 0.3s ease;
}

.move-offer-header {
    background-color: #3983d3;
    color: var(--light);
    padding: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.move-offer-body {
    padding: 15px;
    font-size: 1.1rem;
    color: var(--dark);
}

/* Thay đổi màu sắc khi thẻ dịch vụ được hover */
.service-card-new:hover .special-offer-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--light);
}
.service-card-new:hover .special-offer-body {
    color: var(--dark);
}

/* Vòng tròn icon */
.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Hover hiệu ứng */
.contact-link {
  transition: color 0.3s ease;
}
.contact-link:hover {
  color: var(--primary);
  text-decoration: none;
}


/* --- Nâng cấp Giao diện Carousel --- */
.carousel-caption {
  background: rgba(0, 0, 0, 0);
}

/* Nút bấm CTA nâng cấp */
.custom-cta {
  position: relative;
  overflow: hidden;
  padding: 22px 60px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(45deg, #ff8000, #ffcc00); /* gradient vàng cam nổi bật */
  border: none;
  border-radius: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  text-transform: uppercase;
}

/* Hiệu ứng tỏa sáng (Pulse viền ngoài) */
.custom-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  z-index: -1;
  animation: pulse-border 2.5s infinite;
}

/* Hiệu ứng quét sáng (Shimmer rõ hơn) */
.custom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 2.2s infinite linear;
}

/* Hover */
.custom-cta:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* Animation Pulse */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

/* Animation Shimmer */
@keyframes shimmer {
  0% {
    left: -200%;
  }
  100% {
    left: 200%;
  }
}

/* --- Tùy chỉnh cho Modal Lựa Chọn Đặt Lịch --- */
.modal-content {
    background-color: var(--light);
}

#bookingOptionsModal .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark);
}

/* Thiết kế lại toàn bộ các nút trong Modal */
#bookingOptionsModal .btn-lg {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700; /* Chữ đậm hơn */
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    display: flex; /* Dùng flexbox để căn icon và chữ */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Bóng đổ ngoài */
}

#bookingOptionsModal .btn-lg:hover {
    transform: translateY(-5px) scale(1.03); /* Hiệu ứng nhấc lên và phóng to */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Nút điền form (Website) - Gradient Vàng đậm */
.btn-primary-custom {
    background-image: linear-gradient(to right, #d4a017 0%, #b8860b 51%, #d4a017 100%);
    background-size: 200% auto;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary-custom:hover {
    background-position: right center;
}

/* Nút Zalo - Gradient Xanh Dương tươi */
.btn-zalo-custom {
    background-image: linear-gradient(to right, #0072ff 0%, #0052d4 51%, #0072ff 100%);
    background-size: 200% auto;
    color: white;
}
.btn-zalo-custom:hover {
    background-position: right center;
}

/* Nút Gọi điện - Gradient Xanh Lá nổi bật */
.btn-phone-custom {
    background-image: linear-gradient(to right, #00c853 0%, #009624 51%, #00c853 100%);
    background-size: 200% auto;
    color: white;
}
.btn-phone-custom:hover {
    background-position: right center;
}

/* --- Tùy chỉnh cho Trang Form Đặt Lịch --- */
/* Form nâng cấp */
#bookingForm {
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff);
}

/* Section title */
.section-title {
  color: var(--dark);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 8px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Required marker */
.form-label.required::after {
  content: " *";
  color: #d9534f;
  margin-left: 2px;
}

/* Larger inputs */
.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  transition: box-shadow .15s ease, border-color .15s ease;
  font-size: 1rem;
}

/* Focus */
#bookingForm .form-control:focus, #bookingForm .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(196,153,99,0.12);
  outline: none;
}

/* Radio/btn-check group styling */
.btn-group .btn {
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 140px;
}
.btn-group .btn-check:checked + .btn, .btn-group .btn:active, .btn-group .btn:focus {
  color: #fff;
  background: linear-gradient(90deg, rgba(196,153,99,1), rgba(196,153,99,0.9));
  border-color: rgba(196,153,99,1);
}

/* Custom checkbox style */
.custom-check .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.custom-check .form-check-input:checked {
  background: linear-gradient(90deg, #c49963, #d4a017);
  border-color: #b8860b;
  box-shadow: 0 4px 12px rgba(196,153,99,0.18);
}
.custom-check .form-check-label {
  margin-left: 8px;
  font-weight: 500;
}

/* Submit button */
#submitBtn {
  background: linear-gradient(90deg,#ff8000,#ffc837);
  border: none;
  box-shadow: 0 10px 30px rgba(255,136,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
#submitBtn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(255,136,0,0.25); }

/* Responsive tweaks */
@media (max-width: 768px) {
  .btn-group .btn { min-width: auto; padding: 8px 10px; font-size: .95rem; }
  .testimonial-img-container { max-height: 380px; }
}

/* --- Tùy chỉnh cho Form Ma Trận --- */
.matrix-form {
  margin-top: 10px;
}

.matrix-form th, .matrix-form td {
  vertical-align: middle;
}

.matrix-form th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.matrix-form .form-check-input {
  width: 1.25em;
  height: 1.25em;
  cursor: pointer;
}

/* --- Tùy chỉnh cho Page Header của trang Form --- */
.page-header-form-cleaning {
    /* THAY ĐỔI ẢNH NỀN CỦA BẠN TẠI ĐÂY */
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/banner/banner-3.webp') center center no-repeat;
    background-size: cover;
    
}

.page-header-form-moving {
    /* THAY ĐỔI ẢNH NỀN CỦA BẠN TẠI ĐÂY */
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/banner/banner-2.webp') center center no-repeat;
    background-size: cover;
}

.page-header-form-thanks {
    /* THAY ĐỔI ẢNH NỀN CỦA BẠN TẠI ĐÂY */
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/banner/banner-1.webp') center center no-repeat;
    background-size: cover;
}

/* Tùy chỉnh breadcrumb */
/* .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
} */

.breadcrumb-item + .breadcrumb-item::before {
  content: ">"; /* Thay đổi dấu ngăn cách mặc định thành dấu ">" */
  color: #6c757d; /* Tùy chỉnh màu sắc cho dấu > */
}

/* Bỏ đi nền mặc định và căn chỉnh lại */
.breadcrumb {
    background-color: transparent; 
    padding-left: 0;
}

/* --- Tùy chỉnh cho Nút Quay Lại --- */
.btn-back {
    border-radius: 50px; /* Bo tròn */
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-width: 2px;
    /* Thêm vào: căn chỉnh icon và chữ */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background-color: #6c757d ;
    color: #fff;
    border-color: var(--secondary);
}


/* --- Tùy chỉnh cho Nút Âm thanh Video --- */
.video-controls {
    /* Đặt nút ở góc dưới bên phải */
    top: auto;
    bottom: 20px;
    right: 20px;
    left: auto;
    width: auto;
    /* Nút sẽ không bị ảnh hưởng bởi lớp phủ đen */
    background: transparent !important;
    z-index: 10;
}

#mute-toggle-btn {
    width: 50px;
    height: 50px;
    border-width: 2px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#mute-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}


/* Giữ nguyên overlay và nút (từ CSS cũ của bạn) */
.hero-video-wrapper .video-overlay {
  border-radius: inherit; /* Bo góc cho overlay */
}

.hero-video-wrapper .video-controls button {
  z-index: 3; /* Đảm bảo nút trên cùng */
}

/* Hover/Active: Thêm hiệu ứng nhẹ cho video section */
.hero-video-wrapper:hover {
  transform: scale(1.02); /* Phóng to nhẹ toàn section */
  transition: transform 0.3s ease;
}

/* --- Kết thúc Tùy chỉnh cho Nút Quay Lại --- */

/* =================================================================== */
/*                          PHẦN TÙY CHỈNH CHÍNH                       */
/* =================================================================== */

/* --- Tối ưu Carousel cho Mobile --- */
/* Sửa lỗi khoảng trắng thừa phía trên Carousel */
.p-0.mb-5.wow.fadeIn {
    margin-bottom: 0 !important; /* Ghi đè margin-bottom mặc định */
}
@media (max-width: 768px) {
  #header-carousel .carousel-item {
      position: relative;
      height: 60vh;
      max-height: 450px;
      overflow: hidden; /* tránh tràn nền */
  }

  /* Lớp nền mờ phía sau */
  #header-carousel .carousel-item::before {
      content: "";
      position: absolute;
      inset: 0; /* top, right, bottom, left = 0 */
      background: url("../img/banner/banner-1.webp") center center / cover no-repeat;
      filter: blur(10px) brightness(0.85);
      z-index: 0; /* nằm dưới ảnh */
  }

  /* Ảnh gốc */
  #header-carousel .carousel-item img {
      position: relative;
      z-index: 1; /* nằm trên nền mờ */
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
  }

  #header-carousel .carousel-caption {
    position: absolute !important; /* Ghi đè style mặc định */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    padding-bottom: 3rem !important; /* Đẩy nút lên cao hơn */
    background: rgba(0,0,0,0.1); /* Thêm lớp phủ mờ nhẹ để nút nổi bật */
  }

  /* THÊM MỚI: Thu nhỏ nút CTA trên Mobile */
  #header-carousel .custom-cta {
      padding: 16px 32px;
      font-size: 1rem;
  }
}

/* --- Thiết kế cho Video Section mới --- */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.hero-video-wrapper:hover {
    transform: scale(1.03);
}

.hero-video-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-video-wrapper .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  z-index: 1;
}

.hero-video-wrapper .video-controls {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 2;
}

/* Desktop: Giữ tỷ lệ ngang 16:9 */
@media (min-width: 769px) {
  .hero-video-wrapper {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile: Giữ tỷ lệ dọc 9:16 (TikTok) */
@media (max-width: 768px) {
  .hero-video-wrapper {
    aspect-ratio: 9 / 16;
    max-height: 80vh; /* Giới hạn chiều cao để không chiếm hết màn hình */
    margin: 0 auto;
  }
}


/* --- Tối ưu Ảnh About & Lưới Công Trình cho Mobile --- */
@media (max-width: 991.98px) {
  /* Fix crop ảnh About */
  #about .position-relative img {
    object-fit: contain !important;
    position: static !important; /* Bỏ position absolute để không bị crop */
    height: auto !important;
  }
  #about .position-relative {
      padding: 0 !important;
  }
  /* THÊM MỚI: Đảo ngược thứ tự cột trong phần "Về Chúng Tôi" */
  #about .row {
    display: flex;
    flex-direction: column-reverse;
  }

  /* Lưới Công trình: 2 ảnh/hàng */
  #projects .portfolio-container .col-md-6 {
    width: 50% !important; /* Buộc mỗi item chiếm 50% chiều rộng */
  }

  /* Giảm khoảng cách giữa các Section trên Mobile */
  .container-xxl.py-5 {
      padding-top: 3rem !important;
      padding-bottom: 3rem !important;
  }

  /* THÊM MỚI: Bố cục 2x2 cho Facts trên Mobile */
  .my-5.p-0 .row .col-sm-6 {
      flex: 0 0 auto;
      width: 50% !important;
  }
}

/* --- Sửa lỗi Bộ lọc Công trình bị cắt xén trên Mobile --- */
.portfolio-flters-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.portfolio-flters-container::-webkit-scrollbar {
    display: none;
}

.portfolio-flters-container ul {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    /* KHÔNG CĂN GIỮA NỮA để người dùng biết có thể cuộn */
    justify-content: flex-start; 
}

/* --- Tùy chỉnh cho Video Section Dọc (TikTok Style) --- */
.video-section {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: auto;
  height: 500px; /* bạn chỉnh chiều cao section */
  border-radius: 15px;
  overflow: hidden;
}

/* Background mờ */
.video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.9);
}

/* Video chính */
#hero-video-player {
  position: relative;
  z-index: 2;
  height: 100%;          /* cao bằng khung */
  aspect-ratio: 9/16;    /* giữ tỉ lệ dọc */
  display: block;
  margin: auto;
  border-radius: 15px;
}

/* Nút điều khiển */
.video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
}

@media (max-width: 576px) { /* Chỉ áp dụng cho màn hình điện thoại (sm) */
  .facts-container .position-relative {
      min-height: 400px; /* Tăng chiều cao tối thiểu, bạn có thể điều chỉnh số này */
      height: auto; /* Bỏ chiều cao cố định, để nó tự co giãn */
  }
}

/* =================================================================== */
/*        CĂN CHỈNH NAVBAR TRÊN MOBILE - PHIÊN BẢN NÂNG CẤP           */
/* =================================================================== */

/* Chỉ áp dụng cho màn hình nhỏ hơn 992px */
@media (max-width: 991.98px) {

  /* 
    1. Căn giữa toàn bộ khối menu trên màn hình.
  */
  #navbarCollapse .navbar-nav {
    align-items: center;
    width: 100%; 
  }

  /* 
    2. Tùy chỉnh cho TỪNG MỤC LIÊN KẾT (Phone, Zalo, FB...).
       Đây là bước quan trọng nhất.
  */
  #navbarCollapse .contact-link {
    /* Ép tất cả các mục phải có chiều rộng bằng nhau */
    width: 250px; 
    
    /* Thay vì căn giữa, ta sẽ căn nội dung (icon + chữ) về phía BÊN TRÁI 
       bên trong mỗi mục. */
    justify-content: flex-start;
    
    /* Thêm một chút padding bên trái để trông thoáng hơn */
    padding-left: 15px;

    /* Khoảng cách giữa các mục */
    margin-bottom: 1rem;
  }
  
  /* 
    3. Đảm bảo các icon có khoảng cách đều nhau với chữ.
  */
  #navbarCollapse .contact-link > .icon-circle {
    /* Tăng khoảng cách một chút cho đồng bộ */
    margin-right: 16px; 
  }
  
  #navbarCollapse .contact-link > img {
     /* Tăng khoảng cách một chút cho đồng bộ */
    margin-right: 16px;
  }

  /* 
    4. Tùy chỉnh riêng cho nút "Đặt Lịch Ngay".
  */
  #navbarCollapse .btn-contact-nav {
    margin-top: 10px;
    width: 250px; /* Cho nút có chiều rộng bằng các mục ở trên */
  }
}

/* Thêm vào file CSS của bạn */
.post-content p {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.post-content h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.post-content h3 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content blockquote {
  border-left: 4px solid #007bff; /* Dùng màu chủ đạo của bạn */
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.post-content a {
  color: #007bff; /* Dùng màu chủ đạo của bạn */
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Thêm vào css/custom.css */

.blog-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 8px; /* Bo góc card */
}

.blog-card:hover {
  transform: translateY(-5px); /* Hiệu ứng nhấc lên khi hover */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important; /* Đổ bóng rõ hơn */
}

.blog-card .card-img-top {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.blog-card .blog-card-title {
  transition: color 0.2s ease;
}

.blog-card .blog-card-title:hover {
  color: var(--primary); /* Đổi màu title khi hover (dùng màu primary của bạn) */
}

/* ===================================== */
/* ========= NÂNG CẤP TRANG BÀI VIẾT ========= */
/* ===================================== */


/* [[MỚI]] Thẻ nội dung chính màu trắng */
.post-content-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}
@media (max-width: 767.98px) {
    .post-content-card {
        padding: 1.5rem;
    }
}

/* Định dạng cho nội dung bài viết */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
}
.post-body h2, .post-body h3, .post-body h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #1A2A56;
    scroll-margin-top: 100px;
}
.post-body img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}
.post-body blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}


/* ---- [[NÂNG CẤP]] Nâng cấp Widget Sidebar ---- */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}
.widget-card {
    background-color: #ffffff;
    border: none;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0d6efd;
    display: inline-block;
}
.recent-post-item:hover h6 {
    color: #0d6efd;
}

/* Định dạng Mục lục (TOC) */
#toc-container ul { list-style: none; padding-left: 0; margin: 0; }
#toc-container ul ul { padding-left: 1.5rem; }
#toc-container li { margin-bottom: 0.5rem; }
#toc-container a { color: #495057; text-decoration: none; display: block; padding: 5px 10px; border-left: 3px solid #e9ecef; transition: all 0.2s ease; }
#toc-container a:hover { color: #0d6efd; background-color: #e9ecef; }
#toc-container a.active { color: #0d6efd; font-weight: 700; border-left-color: #0d6efd; background-color: #e9ecef4d; }

/* Tinh chỉnh hiển thị Meta (Tác giả & Ngày) */
.post-meta span {
    display: inline-flex;
    align-items: center;
}

/* ========================================= */
/* ===== NÂNG CẤP TRANG DANH SÁCH TIN TỨC ===== */
/* ========================================= */

/* BÀI VIẾT NỔI BẬT (FEATURED POST) */
.featured-post-card {
    border: none;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease-in-out;
}

.featured-post-card .featured-image {
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 2.5rem;
}

.featured-post-content .post-title a {
    color: #1A2A56; /* Màu xanh đậm thương hiệu */
    text-decoration: none;
    transition: color 0.3s;
}

.featured-post-content .post-title a:hover {
    color: #0d6efd; /* Màu xanh primary */
}

/* TINH CHỈNH THẺ BÀI VIẾT (BLOG CARD) */
.blog-card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card-title {
    line-height: 1.4;
}

.blog-card .blog-card-title {
    transition: color 0.3s ease;
}

.blog-card .blog-card-title:hover {
    color: #0d6efd !important;
}

/* Đảm bảo responsiveness cho bài viết nổi bật */
@media (max-width: 991.98px) {
    .featured-post-card .featured-image {
        min-height: 300px;
        border-radius: 12px 12px 0 0;
    }
    .featured-post-content {
        padding: 2rem;
    }
}

/* ========================================= */
/* ===== SỬA LỖI HÌNH ẢNH BÀI NỔI BẬT ===== */
/* ========================================= */

.featured-image-wrapper {
    max-height: 450px; /* Giới hạn chiều cao tối đa của ảnh */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Thêm màu nền cho đẹp khi ảnh tải */
}

.featured-image-wrapper .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đây là thuộc tính quan trọng nhất */
    transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-image {
    transform: scale(1.05);
}

/* Ghi đè lại style cũ không cần thiết */
.featured-post-card .featured-image {
    min-height: auto; /* Bỏ min-height cũ */
}

/* ========================================= */
/* ===== WIDGET CHỦ ĐỀ BÀI VIẾT (TAGS) ===== */
/* ========================================= */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Khoảng cách giữa các tag */
}
.tag-badge {
    display: inline-block;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background-color: #f0f2f5;
    border-radius: 20px; /* Bo tròn kiểu viên thuốc */
    text-decoration: none;
    transition: all 0.2s ease;
}
.tag-badge:hover {
    color: #fff;
    background-color: #0d6efd; /* Màu primary của bạn */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}


