﻿/* Banner lấy hình ảnh làm trọng tâm */
#home.hero-carousel {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: calc(100svh - 88px);
    min-height: 600px;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #102d43;
    color: #fff;
}

#home::before,
#home::after {
    display: none;
}

/* Ảnh làm nền toàn khung */
#home .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
}

    #home .hero-visual img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        margin: 0;
        padding: 0;
        object-fit: cover;
        object-position: center;
        background: #fff;
    }

/* Phủ tối chủ yếu ở phần dưới, giữ ảnh sáng phía trên */
#home .hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(5, 24, 39, 0.88) 0%, rgba(5, 24, 39, 0.58) 25%, rgba(5, 24, 39, 0.12) 55%, transparent 80% );
}

/* Đặt nội dung gọn ở góc dưới */
#home .hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    width: 90%;
    max-width: 1600px;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0 0 115px;
    gap: 0;
}

#home .hero-copy {
    width: min(600px, 100%);
    margin: 0;
}

#home .eyebrow {
    margin: 0 0 14px;
    color: #e6f1f8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

#home h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(28px, 2.7vw, 44px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

    #home h1 span {
        color: #fff;
    }

#home .lead {
    max-width: 530px;
    margin: 0 0 22px;
    color: #e4edf4;
    font-size: 15px;
    line-height: 1.7;
}

#home .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#home .button {
    padding: 11px 19px;
    border: 1px solid #ef8a32;
    border-radius: 3px;
    background: #ef8a32;
    color: #102d43;
    font-size: 12px;
    font-weight: 750;
}

    #home .button.ghost {
        border-color: rgba(255, 255, 255, 0.6);
        background: transparent;
        color: #fff;
    }

/* Bỏ dòng chú thích lặp lại bên dưới nút */
#home .hero-caption {
    display: none;
}

#home .hero-bottom {
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: 28px;
    left: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#home .carousel-controls {
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* Giữ màn hình logo mở đầu */
#home .hero-intro {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
}

    #home .hero-intro[hidden] {
        display: none;
    }

    #home .hero-intro img {
        width: min(760px, 88vw);
        height: min(68svh, 660px);
        object-fit: contain;
    }

#home.intro-active .hero-copy,
#home.intro-active .hero-bottom {
    visibility: hidden;
}

@media (max-width: 760px) {
    #home.hero-carousel {
        height: calc(100svh - 76px);
        min-height: 600px;
    }

    #home .hero-grid {
        padding-bottom: 145px;
    }

    #home h1 {
        font-size: 30px;
    }

    #home .lead {
        font-size: 13px;
        line-height: 1.65;
    }

    #home .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        bottom: 22px;
    }

    #home .hero-visual img {
        object-position: center;
    }
}
