/* ==========================================================================
   1. ĐIỀU CHỈNH ẨN / HIỆN VÀ TỶ LỆ MOBILE 16:13
   ========================================================================== */
@media (min-width: 768px) {
    .banner-mobile { display: none !important; }
    .banner-desktop { display: flex !important; }
}

@media (max-width: 767px) {
    .banner-desktop { display: none !important; }
    .banner-mobile { 
        display: flex !important; 
        width: 100%;
        aspect-ratio: 1/1; /* Khóa tỷ lệ khung hình 16:13 cho Mobile */
        height: auto !important; /* Vô hiệu hóa chiều cao cứng */
    }
}

/* Định dạng cấu trúc cơ bản */
.banner-version {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.banner-desktop {
    height: 550px; /* Chiều cao cố định trên Desktop */
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

.banner-content-inner {
    max-width: 550px;
    color: #ffffff;
    text-align: left;
}

/* ==========================================================================
   2. HIỆU ỨNG CHUYỂN SLIDE MỜ DẦN (FADE EFFECT)
   ========================================================================== */
.home-fading-slider .flickity-slider {
    transform: none !important; /* Chặn chuyển động trượt ngang mặc định */
}

.home-fading-slider .slide-banner-item {
    left: 0 !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Thời gian chuyển cảnh mờ dần */
    z-index: 1;
    pointer-events: none; /* Tránh tương tác nhầm slide đang ẩn */
}

/* Chỉ hiện slide đang hoạt động */
.home-fading-slider .slide-banner-item.is-selected {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* ==========================================================================
   3. HIỆU ỨNG NỘI DUNG HIỆN LÊN VÀ CHẠY NGANG QUA TRÁI (SLIDE-IN LEFT)
   ========================================================================== */
.home-fading-slider .slide-banner-item .banner-content-inner {
    opacity: 0;
    transform: translateX(50px); /* Bắt đầu lệch sang bên phải 50px */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Kích hoạt chuyển động khi slide được chọn */
.home-fading-slider .slide-banner-item.is-selected .banner-content-inner {
    opacity: 1;
    transform: translateX(0); /* Trượt về vị trí cũ (tương đương chạy qua trái) */
    transition-delay: 0.3s; /* Độ trễ nhẹ để ảnh nền bắt đầu mờ dần trước */
}

/* ==========================================================================
   4. ĐỊNH DẠNG TEXT & BUTTONS (VÀ RESPONSIVE MOBILE)
   ========================================================================== */
.b-prefix {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    color: #f1f1f1;
    letter-spacing: 1px;
}
.b-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
}
.b-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e5e5e5;
}
.b-buttons {
    display: flex;
    gap: 15px;
}
.b-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}
.b-btn.btn-primary {
    background-color: transparent;
    color: #ffffff;
}
.b-btn.btn-primary:hover {
    background-color: #ffffff;
    color: #002D62; /* Màu chữ khi hover nút */
}
.b-btn.btn-secondary {
    background-color: transparent;
    color: #ffffff;
}
.b-btn.btn-secondary:hover {
    background-color: #ffffff;
    color: #002D62;
}

/* CSS Tối ưu không gian hiển thị cho màn hình di động (Do giới hạn tỷ lệ 16:13) */
@media (max-width: 767px) {
    .banner-container {
        padding: 0 15px;
    }
    .banner-content-inner {
        max-width: 100%;
        padding: 10px 5px;
    }
    .b-prefix {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .b-title {
        font-size: 20px; /* Thu nhỏ tiêu đề vừa vặn khung 16:13 */
        margin-bottom: 8px;
    }
    .b-desc {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    .b-buttons {
        gap: 8px;
    }
    .b-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
	.article-inner .entry-title {
		font-size: 25px;
	}
}

/* ==========================================================================
   TÙY BIẾN VÀ ÉP CĂN GIỮA HOÀN HẢO DẤU DOTS CHO BANNER
   ========================================================================== */

/* Ép hiển thị và căn giữa tuyệt đối bằng kỹ thuật left 50% + transform */
.home-fading-slider .flickity-page-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute !important;
    bottom: 30px !important; /* Khoảng cách từ đáy lên trên Desktop */
    left: 50% !important;
    right: auto !important; /* Ghi đè nếu Flatsome dùng thuộc tính right */
    transform: translateX(-50%) !important; /* Dịch chuyển ngược lại 50% chiều rộng của chính nó để căn giữa */
    width: auto !important; /* Reset độ rộng 100% để tránh bị lệch */
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99 !important;
    list-style: none !important;
}

/* Kiểu dáng chấm tròn không hoạt động (Inactive) - Vòng tròn rỗng */
.home-fading-slider .flickity-page-dots .dot {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 8px !important; /* Khoảng cách giữa các chấm */
    background: transparent !important; /* Làm trống phần bên trong */
    border: 3px solid rgba(255, 255, 255, 0.4) !important; /* Tạo viền xám mờ bao quanh */
    border-radius: 50% !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* Kiểu dáng chấm tròn đang hoạt động (Active) - Trắng đặc hoàn toàn */
.home-fading-slider .flickity-page-dots .dot.is-selected {
    background: #ffffff !important; /* Điền đầy màu trắng bên trong */
    border-color: #ffffff !important; /* Chuyển viền thành màu trắng sáng */
    transform: scale(1.05) !important;
}

/* Điều chỉnh vị trí và kích thước trên thiết bị di động (Mobile) */
@media (max-width: 767px) {
    .home-fading-slider .flickity-page-dots {
        bottom: 20px !important; /* Đẩy sát đáy hơn trên tỷ lệ màn hình 16:13 */
    }
    .home-fading-slider .flickity-page-dots .dot {
        width: 11px !important;
        height: 11px !important;
        border-width: 2.5px !important; /* Giảm nhẹ độ dày viền trên điện thoại */
        margin: 0 5px !important;
    }
}