﻿/* ==================== BANNER DIAGONAL LAYOUT - TỈ LỆ 2/8 ==================== */
/* ✅ SỬ DỤNG CSS VARIABLES TỪ site.css (Setting Database) */
/* --ashico-red: #ec2028 (Color1) */
/* --ashico-blue: #034ea2 (Color2) */

/* ✅ XÓA TOÀN BỘ PSEUDO ELEMENT VÀ LINE SHAPE */
.banner-one::before,
.banner-one::after {
    display: none !important;
}

.banner-one__line-shpae1,
.banner-one__line-shpae2 {
    display: none !important;
}

.banner-one__pattern {
    display: none !important;
}

.banner-one__shape-3 {
    display: none !important;
}

/* ✅ BANNER CONTAINER - TỈ LỆ 20/80 - XANH BÊN TRÁI + ĐỎ Ở GIỮA */
/* ⭐ THÊM margin-top: 0 ĐỂ XÓA KHOẢNG TRỐNG VỚI HEADER ⭐ */
.banner-one {
    position: relative !important;
    overflow: hidden !important;
    min-height: 70vh !important;
    height: 70vh !important;
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(to right, var(--ashico-blue) 0%, var(--ashico-blue) 20%, var(--ashico-red) 20%, var(--ashico-red) 100%) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* ✅ TEXT BÊN TRÁI - CHIẾM 20% */
.banner-one .container {
    padding-left: 30px !important;
    padding-right: 10px !important;
    position: relative;
    z-index: 10;
    width: 20% !important;
    max-width: 20% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.banner-one__inner {
    width: 100% !important;
}

.banner-one__content-box {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
}           

/* ✅ TEXT COLOR - TITLE màu trắng */
.banner-one__title {
    color: #fff !important; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ✅ SUB-TITLE (CÔNG TY CỔ PHẦN...) - MÀU TRẮNG + THU GỌN KHOẢNG CÁCH */
.banner-one__sub-title,
.banner-one .banner-one__content-box .banner-one__sub-title {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ===== TITLE (ASHICO + One Sail One Success) ===== */
.banner-one .banner-one__content-box .banner-one__title {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
}

/* ⭐ TYPED EFFECT - MÀU ĐỎ ASHICO (từ CSS Variable) */
.banner-one .banner-one__title .typed-effect,
.banner-one .banner-one__title #type-1,
.banner-one__title span.typed-effect {
    color: var(--ashico-red) !important;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 -1px 0 #fff,
        0 1px 0 #fff,
        -1px 0 0 #fff,
        1px 0 0 #fff !important;
}

/* Typed cursor cũng màu đỏ */
.banner-one .typed-cursor,
.banner-one__title .typed-cursor {
    color: var(--ashico-red) !important;
}

/* ✅ DÒNG TEXT MÔ TẢ - MÀU TRẮNG */
.banner-one__text,
.banner-one .banner-one__content-box .banner-one__text {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ⭐ BUTTON BOX - THÊM MARGIN BOTTOM ĐỂ KHÔNG SÁT LỀ ⭐ */
.banner-one .banner-one__btn-and-review-box .banner-one__btn-box .thm-btn {
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    display: inline-flex !important;
}

/* ✅ ẢNH SLIDER BÊN PHẢI - CHIẾM 80% */
.banner-one__img-slider {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 80% !important;
    height: 100% !important;
    z-index: 5 !important;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%) !important;
}

/* Owl Carousel */
.banner-slider {
    width: 100% !important;
    height: 100% !important;
}

.banner-slider .item {
    width: 100% !important;
    height: 70vh !important;
    overflow: hidden !important;
}

.banner-slider .item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 1920px !important;
    image-rendering: -webkit-optimize-contrast !important;
}

/* ✅ ẨN NÚT MŨI TÊN TRÁI/PHẢI */
.banner-slider .owl-nav {
    display: none !important;
}

.banner-slider .owl-nav button {
    display: none !important;
}

/* Owl Dots */
.banner-slider .owl-dots {
    position: absolute !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 8px !important;
}

.banner-slider .owl-dots .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.banner-slider .owl-dots .owl-dot.active span {
    background: #fff !important;
    width: 28px !important;
    border-radius: 5px !important;
}

/* ✅ ẨN ẢNH TĨNH CŨ */
.banner-one__img {
    display: none !important;
}

/* ✅ ẨN HAPPY CUSTOMERS */
.banner-one__review-box {
    display: none !important;
}

/* ⭐ CĂN BUTTON THẲNG HÀNG VỚI TEXT + THÊM MARGIN BOTTOM ⭐ */
.banner-one__btn-and-review-box {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important; /* ⭐ THÊM MARGIN BOTTOM ⭐ */
}

.banner-one__btn-box {
    margin: 0 !important;
    padding: 0 !important;
}

.banner-one__btn-box .thm-btn {
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    display: inline-flex !important;
}

/* ✅ RESPONSIVE CHO MÀN FULL HD (1920x1080) */
@media (min-width: 1920px) {
    .banner-one {
        min-height: 75vh !important;
        height: 75vh !important;
    }
    
    .banner-slider .item {
        height: 75vh !important;
    }
    
    .banner-slider .item img {
        max-width: 100% !important;
    }
    
    /* ⭐ MARGIN BOTTOM LỚN HƠN CHO FULL HD ⭐ */
    .banner-one__btn-and-review-box {
        margin-bottom: 25px !important;
    }
}

/* ✅ RESPONSIVE - ĐỒNG BỘ VỚI about-new.css */
@media (max-width: 1600px) {
    .banner-one {
        min-height: 65vh !important;
        height: 65vh !important;
    }
    
    .banner-slider .item {
        height: 65vh !important;
    }
}

@media (max-width: 1366px) {
    .banner-one {
        min-height: 60vh !important;
        height: 60vh !important;
    }
    
    .banner-slider .item {
        height: 60vh !important;
    }
    
    .banner-one__title {
        font-size: 26px !important;
    }
    
    .banner-one__sub-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    
    .banner-one__text {
        font-size: 13px !important;
    }
    
    /* ⭐ MARGIN BOTTOM NHỎ HƠN CHO 1366px ⭐ */
    .banner-one__btn-and-review-box {
        margin-bottom: 18px !important;
    }
}

/* ⭐ MOBILE - XÓA HOÀN TOÀN KHOẢNG HỞ ⭐ */
@media (max-width: 991px) {
    .banner-one {
        background: var(--ashico-blue) !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        flex-direction: column !important;
    }
    
    .banner-one .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 15px 0 15px !important;
    }
    
    .banner-one__img-slider {
        position: relative !important;
        width: 100% !important;
        height: 50vh !important;
        clip-path: none !important;
        margin-top: 0 !important; /* ⭐ XÓA MARGIN - TỪ 15px → 0 ⭐ */
    }
    
    .banner-slider .item {
        height: 50vh !important;
    }
    
    .banner-one__title {
        font-size: 26px !important;
    }
    
    .banner-one__sub-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    .banner-one__text {
        font-size: 13px !important;
    }
    
    /* ⭐ BUTTON NHỎ GỌN TRÊN TABLET ⭐ */
    .banner-one__btn-box .thm-btn {
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
    
    .banner-one__btn-box .thm-btn > span {
        width: 32px !important;
        height: 32px !important;
        font-size: 10px !important;
    }
    
    /* ⭐ MARGIN BOTTOM CHO TABLET ⭐ */
    .banner-one__btn-and-review-box {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 767px) {
    .banner-one .container {
        padding: 12px 15px 0 15px !important;
    }
    
    .banner-one__img-slider {
        margin-top: 0 !important; /* ⭐ XÓA MARGIN - TỪ 12px → 0 ⭐ */
    }
    
    .banner-slider .item {
        height: 40vh !important;
    }
    
    .banner-one__title {
        font-size: 20px !important;
    }
    
    .banner-one__sub-title {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .banner-one__text {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }
    
    /* ⭐ BUTTON NHỎ GỌN HƠN TRÊN MOBILE ⭐ */
    .banner-one__btn-box .thm-btn {
        font-size: 11px !important;
        padding: 6px 14px !important;
        gap: 5px !important;
    }
    
    .banner-one__btn-box .thm-btn > span {
        width: 28px !important;
        height: 28px !important;
        font-size: 9px !important;
    }
    
    /* ⭐ MARGIN BOTTOM CHO MOBILE ⭐ */
    .banner-one__btn-and-review-box {
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .banner-one__title {
        font-size: 18px !important;
    }
    
    .banner-one__sub-title {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .banner-one__text {
        font-size: 10px !important;
        margin-bottom: 10px !important;
    }
    
    /* ⭐ BUTTON NHỎ NHẤT TRÊN MÀN HÌNH NHỎ ⭐ */
    .banner-one__btn-box .thm-btn {
        font-size: 10px !important;
        padding: 5px 12px !important;
        gap: 4px !important;
    }
    
    .banner-one__btn-box .thm-btn > span {
        width: 24px !important;
        height: 24px !important;
        font-size: 8px !important;
    }
    
    /* ⭐ MARGIN BOTTOM CHO MÀN HÌNH NHỎ ⭐ */
    .banner-one__btn-and-review-box {
        margin-bottom: 10px !important;
    }
}

@media (min-width: 1200px) {
    .banner-one .container {
        max-width: 20% !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .banner-one .container {
        max-width: 22% !important;
    }
}

/* ⭐ XÓA KHOẢNG TRỐNG GIỮA HEADER VÀ BANNER ⭐ */
.page-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-wrapper > .banner-one:first-child {
    margin-top: 0 !important;
}

/* ⭐ ĐẢM BẢO MAIN HEADER KHÔNG TẠO KHOẢNG TRỐNG ⭐ */
.main-header + .page-wrapper,
.main-header ~ .page-wrapper {
    margin-top: 0 !important;
}