/* ==========================================================================
   LUI HERO BANNER & SLIDER - COMPLETE BEM STYLES (PAGINATION DETACHED FIX)
   ========================================================================== */

/* 1. ÉP SECTION HERO TRÀN VIỀN MÀN HÌNH (BREAKOUT FULLWIDTH) */
.lui-scope .crb-block-fullwidth.lui-hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.lui-scope .crb-block-fullwidth.lui-hero:not(.lui-hero--carousel) {
    min-height: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
}

/* 2. LỚP PHỦ TỐI (OVERLAY) */
.lui-scope .lui-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

.lui-scope .lui-hero--no-overlay .lui-hero__overlay {
    display: none !important;
}

/* ==========================================================================
   CAROUSEL CARDS LAYOUT (TÁCH CỤM CHẤM PHÂN TRANG RỚT DƯỚI MÉP ẢNH)
   ========================================================================== */
.lui-scope .crb-block-fullwidth.lui-hero.lui-hero--carousel,
.lui-scope .lui-hero--carousel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: clamp(520px, 58vh, 640px) !important;
    padding-top: 80px !important;
    padding-bottom: 60px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    background-color: #456967 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Các chế độ chiều cao Banner dành cho Carousel */
.lui-scope .crb-block-fullwidth.lui-hero.lui-hero--carousel.lui-hero--height-standard,
.lui-scope .lui-hero--carousel.lui-hero--height-standard {
    min-height: clamp(520px, 58vh, 640px) !important;
}

.lui-scope .crb-block-fullwidth.lui-hero.lui-hero--carousel.lui-hero--height-compact,
.lui-scope .lui-hero--carousel.lui-hero--height-compact {
    min-height: clamp(400px, 45vh, 500px) !important;
}

.lui-scope .crb-block-fullwidth.lui-hero.lui-hero--carousel.lui-hero--height-fullscreen,
.lui-scope .lui-hero--carousel.lui-hero--height-fullscreen {
    min-height: 100vh !important;
}

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

/* Tăng padding-bottom để tạo vùng trống cho chấm tròn rớt xuống */
.lui-scope .lui-hero__swiper-carousel {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 10px 0 50px 0 !important;
    /* Dành khoảng rộng 50px bên dưới thẻ */
}

.lui-scope .lui-hero__carousel-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.lui-scope .lui-hero__card {
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.lui-scope .lui-hero__card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.lui-scope .lui-hero__card-link {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.lui-scope .lui-hero__card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
}

/* ==========================================================================
   STANDARD SLIDER LAYOUT (BANNER TIÊU CHUẨN / TÙY CHỌN CHIỀU CAO)
   ========================================================================== */
.lui-scope .lui-hero__slider {
    width: 100% !important;
    height: auto !important;
    min-height: clamp(450px, 52vh, 580px);
}

.lui-scope .lui-hero__slide {
    position: relative;
    width: 100%;
    min-height: clamp(450px, 52vh, 580px);
    display: flex !important;
    align-items: center !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: var(--bg-mb);
    box-sizing: border-box;
}

/* Các chế độ chiều cao Banner */
.lui-scope .lui-hero--height-standard .lui-hero__slider,
.lui-scope .lui-hero--height-standard .lui-hero__slide {
    min-height: clamp(450px, 52vh, 580px) !important;
}

.lui-scope .lui-hero--height-compact .lui-hero__slider,
.lui-scope .lui-hero--height-compact .lui-hero__slide {
    min-height: clamp(360px, 40vh, 440px) !important;
}

.lui-scope .lui-hero--height-fullscreen .lui-hero__slider,
.lui-scope .lui-hero--height-fullscreen .lui-hero__slide {
    min-height: 100vh !important;
}

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

.lui-scope .lui-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.lui-scope .lui-hero__container-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.lui-scope .lui-hero__content {
    max-width: 760px;
    color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
}

.lui-scope .lui-hero__slide--left .lui-hero__content {
    text-align: left !important;
    align-items: flex-start !important;
    margin: 0 !important;
}

.lui-scope .lui-hero__slide--center .lui-hero__content {
    text-align: center !important;
    align-items: center !important;
    margin: 0 auto;
}

/* TYPOGRAPHY CHUẨN PHÔNG LEXEND */
.lui-scope .lui-hero__title {
    font-family: var(--font-lexend, 'Lexend'), sans-serif !important;
    font-size: clamp(28px, 3.6vw, 44px) !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    margin: 0 0 16px 0 !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-transform: none; /* Cho phép chữ viết tự nhiên theo input */
}

/* Khi căn trái: Giữ nguyên hoa/thường + tạo đường gạch ngang trắng trang trí dưới tiêu đề như ảnh mẫu */
.lui-scope .lui-hero__slide--left .lui-hero__title {
    text-align: left !important;
    text-transform: none !important;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 18px !important;
}

.lui-scope .lui-hero__slide--left .lui-hero__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

.lui-scope .lui-hero__subtitle {
    font-family: var(--font-lexend, 'Lexend'), sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 1.2px !important;
    text-transform: none; /* Cho phép chữ hoa/thường tự nhiên như 'Về Hoa Peony' */
    margin-bottom: 8px;
    opacity: 0.95;
    color: #FFFFFF !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.lui-scope .lui-hero__slide--left .lui-hero__subtitle {
    text-align: left !important;
    text-transform: none !important;
}

.lui-scope .lui-hero__breadcrumb {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.lui-scope .lui-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.lui-scope .lui-hero__breadcrumb a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.lui-scope .lui-hero__desc {
    font-family: var(--font-lexend, 'Lexend'), sans-serif !important;
    font-size: clamp(15px, 1.2vw, 17px) !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
    color: #FFFFFF !important;
    opacity: 0.95;
}

.lui-scope .lui-hero__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ==========================================================================
   PAGINATION (ĐẨY RỚT HẲN XUỐNG DƯỚI MÉP THẺ ẢNH 18-20PX)
   ========================================================================== */
.lui-scope .lui-hero__pagination {
    position: absolute !important;
    bottom: 8px !important;
    /* Vị trí rớt xuống dưới mép thẻ ảnh */
    left: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
}

.lui-scope .lui-hero__pagination .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    margin: 0 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    cursor: pointer !important;
}

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

/* RESPONSIVE MOBILE */
.lui-scope .lui-hero__text-desktop {
    display: inline;
}

.lui-scope .lui-hero__text-mobile {
    display: none;
}

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

    .lui-scope .lui-hero__text-mobile {
        display: inline !important;
    }

    .lui-scope .crb-block-fullwidth.lui-hero.lui-hero--carousel,
    .lui-scope .lui-hero--carousel {
        min-height: 380px !important;
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
}