/* ==========================================================================
   HERO SWIPER SLIDER BANNER (ĐỒNG BỘ THEO HỆ THỐNG GLOBAL LEXEND & BRAND COLORS)
   ========================================================================== */
.hero {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero__container,
.hero__swiper,
.hero .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(480px, 60vh, 650px) !important;
}

/* KHÓA CHIỀU CAO & DÙNG FLEXBOX CĂN CHÍNH GIỮA */
.hero__slide {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(480px, 60vh, 650px) !important;
    background-size: cover !important; /* Phủ kín 100% tràn viền */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Ép chữ vào chính giữa chiều dọc */
    align-items: center !important;     /* Ép chữ vào chính giữa chiều ngang */
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    box-sizing: border-box !important;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero__slide > .container {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* KHUNG NỘI DUNG CHỮ: CĂN GIỮA TUYỆT ĐỐI */
.hero__content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 850px !important;
    color: var(--text-white, #ffffff) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* CĂN LỀ TRÁI (ALIGN-LEFT) */
.hero__content.align-left {
    align-items: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
    max-width: 720px !important;
}

.hero__content.align-left h1,
.hero__content.align-left h2,
.hero__content.align-left .font-h2-l,
.hero__content.align-left .font-h2-m,
.hero__content.align-left .font-h2-s,
.hero__content.align-left > span,
.hero__content.align-left > div,
.hero__content.align-left p {
    text-align: left !important;
}

.hero__content.align-left h2 {
    text-transform: none !important;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 16px !important;
}

.hero__content.align-left h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* TIÊU ĐỀ CHÍNH (ĐỒNG BỘ PHÔNG CHỮ LEXEND) */
.hero__content h1,
.hero__content h2,
.hero__content .font-h2-l,
.hero__content .font-h2-m,
.hero__content .font-h2-s {
    font-family: var(--font-lexend), sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: calc(var(--section-gap, 30px) / 6) !important;
    color: var(--text-white, #ffffff) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}

/* SUBTITLE VÀ MÔ TẢ (SỬ DỤNG BIẾN TEXT-WHITE) */
.hero__content > span {
    font-family: var(--font-lexend), sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 3px !important;
    text-align: center !important;
    display: block !important;
    color: var(--text-white, #ffffff) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero__content > div,
.hero__content p {
    font-family: var(--font-lexend), sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 0.3px !important;
    margin-top: 2px !important;
    opacity: 0.95 !important;
    text-align: center !important;
    color: var(--text-white, #ffffff) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* THẺ PHÂN TRANG NÚT TRÒN (NẰM SÁT DƯỚI ĐÁY) */
.hero__pagination {
    position: absolute;
    bottom: 22px !important;
    left: 0;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hero__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-white, #ffffff) !important;
    opacity: 0.45 !important;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

/* NÚT HOẠT ĐỘNG: ĐỒNG BỘ SANG MÀU XANH ACCENT CHỦ ĐẠO */
.hero__pagination .swiper-pagination-bullet-active {
    background-color: var(--color-accent, #027CC5) !important;
    opacity: 1 !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(1.2);
}

/* ==========================================================================
   RESPONSIVE MOBILE (< 767PX): GIỮ VỮNG CHÍNH GIỮA
   ========================================================================== */
@media (max-width: 767px) {
    .hero,
    .hero__container,
    .hero__swiper,
    .hero .swiper-wrapper,
    .hero__slide {
        min-height: 380px !important;
        height: auto !important;
    }

    .hero__slide {
        justify-content: center !important;
        align-items: center !important;
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }

    .hero__content {
        text-align: center !important;
        align-items: center !important;
    }

    .hero__content.align-left {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .page-about .hero,
    .page-about .hero__container,
    .page-about .hero__swiper,
    .page-about .hero .swiper-wrapper,
    .page-about .hero__slide,
    .page-gioi-thieu .hero,
    .page-gioi-thieu .hero__container,
    .page-gioi-thieu .hero__swiper,
    .page-gioi-thieu .hero .swiper-wrapper,
    .page-gioi-thieu .hero__slide {
        min-height: 380px !important;
    }

    .hero__pagination {
        bottom: 12px !important;
        gap: 6px;
    }

    .hero__pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .hero__pagination .swiper-pagination-bullet-active {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================================
   STYLE BANNER DÀNH RIÊNG CHO TRANG CHI TIẾT DỰ ÁN (.site-duan-single)
   ========================================================================== */
.site-duan-single .hero__slide { align-items: flex-start !important; }
.site-duan-single .hero__slide > .container { 
    margin: 0 auto !important; 
    padding-left: var(--container-pad-x, 40px) !important; 
    padding-right: var(--container-pad-x, 40px) !important; 
    max-width: var(--container-max-w, 1200px) !important; 
    width: 100% !important; 
}
.site-duan-single .hero__content {
    margin-left: 0 !important; margin-right: auto !important; text-align: left !important; align-items: flex-start !important;
    max-width: 460px !important; background: rgba(0, 0, 0, 0.48) !important; padding: 36px 40px !important;
    border-radius: 4px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.12);
}
.site-duan-single .hero__content h2 {
    font-family: var(--font-lexend), sans-serif !important;
    font-size: clamp(20px, 2.4vw, 34px) !important; font-weight: 600 !important; letter-spacing: 0.03em !important;
    text-transform: uppercase !important; color: var(--text-white, #FFFFFF) !important; line-height: 1.3 !important;
    margin-bottom: 5px !important;
    border-bottom: none !important; padding-bottom: 0 !important; width: 100% !important; text-align: left !important;
}
.site-duan-single .hero__content div { font-size: 14px !important; line-height: 1.4 !important; color: rgba(255, 255, 255, 0.88) !important; width: 100% !important; text-align: left !important; }
.site-duan-single .hero__content div strong {
    display: block !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.05em !important;
    text-transform: uppercase !important; color: var(--text-white, #FFFFFF) !important; margin-top: 8px !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important; text-align: left !important;
}
.site-duan-single .hero__content div strong:first-child { margin-top: 0 !important; }

/* STYLES CHO PROJECT SPECS */
.hero__project-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin: 8px 0 10px 0;
}

.hero__project-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.hero__spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-duan-single .hero__content .hero__spec-label,
.hero__spec-label {
    font-family: var(--font-lexend), sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-white, #ffffff) !important;
    opacity: 1 !important;
    margin-top: 6px !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.site-duan-single .hero__content .hero__spec-item:first-child .hero__spec-label,
.hero__spec-label {
    margin-top: 0 !important;
}

.site-duan-single .hero__content .hero__spec-value,
.hero__spec-value {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   BREADCRUMB BÊN TRONG HERO BANNER
   ========================================================================== */
.hero__breadcrumb,
.hero__breadcrumb nav,
.hero__breadcrumb .hero-breadcrumb-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 4px !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

/* DI CHUỂN CHUỘT: CHUYỂN SANG MÀU CHỦ ĐẠO ACCENT */
.hero__breadcrumb a:hover {
    color: var(--color-accent, #027CC5) !important;
}

.hero__breadcrumb .midori-breadcrumb-sep,
.hero__breadcrumb .separator::after,
.hero__breadcrumb .delimiter::after {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ALIGN LEFT CHO HERO BANNER */
.hero__content.align-left {
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
}

.hero__content.align-left h2,
.hero__content.align-left p,
.hero__content.align-left span {
    text-align: left !important;
}

/* BANNER TRANG CHI TIẾT DỊCH VỤ (.site-dichvu-single) */
.site-dichvu-single .hero__container,
.site-dichvu-single .hero__slide {
    min-height: 400px !important;
}

.site-dichvu-single .hero__slide {
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 110px !important;
    padding-bottom: 40px !important;
}

.site-dichvu-single .hero__content {
    max-width: 1000px !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
}

.site-dichvu-single .hero__content h2 {
    font-family: var(--font-lexend), sans-serif !important;
    font-size: clamp(24px, 3.2vw, 42px) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 3px !important;
    text-align: left !important;
}

.site-dichvu-single .hero__breadcrumb {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* ==========================================================================
   BỔ SUNG QUY CHUẨN: ĐỔI BG MOBILE, ÉP BR NGẮT DÒNG VÀ ĐẨY NÚT PAGINATION LÊN TRÊN
   ========================================================================== */

/* 1. Ép thẻ <br> ngắt xuống dòng chuẩn */
.hero__content br {
    display: block !important;
    content: "" !important;
}

/* 2. Tự động đổi ảnh nền Mobile theo CSS Variable */
.hero__slide {
    background-image: var(--bg-mb);
}

@media (min-width: 768px) {
    .hero__slide {
        background-image: var(--bg-desk);
    }
}

/* 3. Phân biệt văn bản hiển thị Desktop và Mobile */
.hero__text-desktop,
.hero__text-mobile {
    display: inline;
}

@media (max-width: 767px) {
    .hero__text-desktop {
        display: none !important;
    }
    .hero__text-mobile {
        display: inline !important;
    }
}

@media (min-width: 768px) {
    .hero__text-desktop {
        display: inline !important;
    }
    .hero__text-mobile {
        display: none !important;
    }
}

/* 4. Ép hiển thị các nút chấm tròn phân trang Pagination trên Mobile */
.hero__pagination,
.hero .swiper-pagination-lock {
    display: flex !important;
    position: absolute !important;
    bottom: 22px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    justify-content: center !important;
    align-items: center !important;
}

@media (max-width: 767px) {
    .hero__pagination,
    .hero .swiper-pagination-lock {
        bottom: 12px !important;
    }
}

.hero__pagination .swiper-pagination-bullet {
    display: inline-block !important;
    opacity: 0.45 !important;
}

.hero__pagination .swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* ==========================================================================
   5. LAYOUT CAROUSEL: BANNER NỀN + SLIDER 4 ẢNH HOA (THEO MẪU TRANG CHỦ)
   ========================================================================== */
.hero--no-overlay .hero__overlay {
    display: none !important;
}

.hero--carousel {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 480px !important;
    padding-top: 130px !important;
    padding-bottom: 45px !important;
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.hero__carousel-container {
    max-width: 1240px !important;
    width: 100% !important;
    margin: auto auto !important;
    padding: 0 20px 35px 20px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.hero__swiper-carousel {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 10px 0 14px 0 !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.hero__swiper-carousel:active {
    cursor: grabbing !important;
}

.hero__swiper-carousel .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Hiệu ứng Animation xuất hiện khi load trang */
@keyframes heroCardIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero__carousel-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    height: auto !important;
    animation: heroCardIn 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) backwards !important;
}

.hero__carousel-slide:nth-child(1) { animation-delay: 0.1s !important; }
.hero__carousel-slide:nth-child(2) { animation-delay: 0.2s !important; }
.hero__carousel-slide:nth-child(3) { animation-delay: 0.3s !important; }
.hero__carousel-slide:nth-child(4) { animation-delay: 0.4s !important; }

.hero__card {
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    aspect-ratio: 1 / 1.06 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform: translateZ(0) !important;
}

.hero__card-link {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    text-decoration: none !important;
}

.hero__card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Hiệu ứng Hover 3D mượt mà */
.hero__card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25) !important;
}

.hero__card:hover .hero__card-img {
    transform: scale(1.08) !important;
}

.hero--carousel .hero__pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.hero--carousel .hero__pagination .swiper-pagination-bullet {
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.hero--carousel .hero__pagination .swiper-pagination-bullet-active {
    background-color: #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.3) !important;
}

@media (max-width: 767px) {
    .hero--carousel {
        min-height: 320px !important;
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    .hero__carousel-container {
        padding: 0 16px 28px 16px !important;
    }
}

@media (max-width: 479px) {
    .hero__carousel-slide {
        display: flex !important;
        justify-content: center !important;
    }

    .hero__card {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}