/* ==================================================
   BANNER TRANG CHỦ - BẢO ANH ADS
================================================== */

.hero {
    position: relative;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 90px);
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background-image: url("../images/banner/banner-home.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 24, 49, 0.94) 0%,
            rgba(4, 24, 49, 0.76) 52%,
            rgba(4, 24, 49, 0.38) 100%
        );
}

.hero .container {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    padding: 80px 0;
    color: #ffffff;
}

.hero-label,
.hero h4 {
    display: block;
    margin: 0 0 18px;
    color: #f5b82e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hero h1 {
    width: 100%;
    max-width: 850px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    overflow-wrap: break-word;
}

.hero h1 span:not(.hero-title-line) {
    color: #f5b82e;
}

.hero-description,
.hero p {
    width: 100%;
    max-width: 700px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.7;
}

.hero-actions,
.hero-button {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 0;
}

.button,
.hero-button a {
    display: inline-flex;
    min-height: 52px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.button:hover,
.hero-button a:hover {
    transform: translateY(-2px);
}

.button-primary,
.hero-button a:first-child {
    color: #082544;
    background: #f5b82e;
}

.button-primary:hover,
.hero-button a:first-child:hover {
    color: #082544;
    background: #ffffff;
}

.button-outline,
.hero-button a:last-child {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
}

.button-outline:hover,
.hero-button a:last-child:hover {
    color: #082544;
    background: #ffffff;
    border-color: #ffffff;
}

/* ==================================================
   MÁY TÍNH BẢNG
================================================== */

@media screen and (max-width: 992px) {
    .hero {
        min-height: 680px;
        background-position: 62% center;
    }

    .hero-content {
        max-width: 760px;
        padding: 70px 0;
    }

    .hero h1 {
        max-width: 700px;
        font-size: clamp(40px, 7vw, 62px);
    }

    .hero-description,
    .hero p {
        max-width: 620px;
        font-size: 18px;
    }
}

/* ==================================================
   ĐIỆN THOẠI
================================================== */

@media screen and (max-width: 768px) {
    .hero {
        min-height: auto;
        align-items: flex-start;
        background-position: 68% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(4, 24, 49, 0.94) 0%,
                rgba(4, 24, 49, 0.84) 55%,
                rgba(4, 24, 49, 0.76) 100%
            );
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 52px 0 48px;
    }

    .hero-label,
    .hero h4 {
        margin-bottom: 14px;
        font-size: 12px;
        line-height: 1.45;
        letter-spacing: 1px;
        white-space: normal;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -0.4px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-description,
    .hero p {
        width: 100%;
        max-width: 100%;
        margin-bottom: 26px;
        font-size: 16px;
        line-height: 1.6;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .hero-actions,
    .hero-button {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .button,
    .hero-button a {
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;
        box-sizing: border-box;
        font-size: 15px;
        text-align: center;
    }

    .button:hover,
    .hero-button a:hover {
        transform: none;
    }
}

/* ==================================================
   ĐIỆN THOẠI NHỎ
================================================== */

@media screen and (max-width: 480px) {
    .hero {
        background-position: 72% center;
    }

    .hero .container {
        padding: 0 14px;
    }

    .hero-content {
        padding: 42px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .hero-description,
    .hero p {
        font-size: 15px;
        line-height: 1.55;
    }

    .button,
    .hero-button a {
        min-height: 48px;
        font-size: 14px;
    }
}

/* ==================================================
   ĐIỆN THOẠI RẤT NHỎ
================================================== */

@media screen and (max-width: 360px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-label,
    .hero h4 {
        font-size: 11px;
    }

    .hero-description,
    .hero p {
        font-size: 14px;
    }
}


/* Bảo vệ chống tràn ngang do CSS khác ghi đè */
.hero,
.hero .container,
.hero-content,
.hero h1,
.hero-description,
.hero p,
.hero-button {
    min-width: 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .hero-content {
        margin: 0 !important;
    }

    .hero h1,
    .hero-description,
    .hero p {
        width: auto !important;
    }
}

/* ==================================================
   TIÊU ĐỀ HERO TRÊN MÁY TÍNH
   Cố định đúng 2 dòng và hiển thị dấu tiếng Việt đẹp
================================================== */

.hero-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-synthesis: none;
    text-rendering: geometricPrecision;
}

.hero-title-line {
    color: #ffffff;
}

@media screen and (min-width: 993px) {

    .hero .container {
        width: min(1380px, calc(100% - 64px));
    }

    .hero-content {
        width: 100%;
        max-width: 1180px;
        padding: 72px 0;
    }

    .hero h1.hero-title {
        width: 100%;
        max-width: none;
        margin: 0 0 24px;
        padding: 0;
        color: #ffffff;
        font-size: clamp(50px, 4.15vw, 64px);
        font-weight: 700;
        line-height: 1.12;
        letter-spacing: -0.8px;
        overflow: visible;
    }

    .hero h1.hero-title .hero-title-line {
        display: block;
        width: 100%;
        max-width: none;
        white-space: nowrap;
        overflow: visible;
        color: #ffffff;
    }
}

/* Màn hình máy tính có chiều rộng vừa */
@media screen and (min-width: 993px) and (max-width: 1250px) {

    .hero h1.hero-title {
        font-size: 52px;
        letter-spacing: -0.6px;
    }
}

/* Giữ nguyên khả năng xuống dòng trên tablet và điện thoại */
@media screen and (max-width: 992px) {

    .hero h1.hero-title .hero-title-line {
        display: block;
        width: auto;
        max-width: 100%;
        white-space: normal;
        color: #ffffff;
    }
}


