/* Ðã s?a margin-bottom thành 0 và ép height 100vh d? tràn vi?n hoàn toàn */
.hero-slide-widget {
    position: relative;
    margin-bottom: 0; 
    background: #0f2237;
    width: 100vw;
    height: 100vh !important;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.hero-slide-widget__carousel {
    margin: 0;
    height: 100vh !important;
}

/* Ép các class c?a thu vi?n Owl Carousel và Item cao 100vh */
.hero-slide-widget__carousel .owl-wrapper-outer,
.hero-slide-widget__carousel .owl-stage-outer,
.hero-slide-widget__carousel .owl-wrapper,
.hero-slide-widget__carousel .owl-stage,
.hero-slide-widget__carousel .owl-item,
.hero-slide-widget__item {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
}

.hero-slide-widget__item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-widget__link,
.hero-slide-widget__media {
    position: relative;
    display: block;
    width: 100%;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
    background: linear-gradient(135deg, #12304b 0%, #1d5070 55%, #277aa1 100%);
}

.hero-slide-widget__image,
.hero-slide-widget__video {
    display: block;
    width: 100%;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

/* Fix Iframe Youtube Full Màn Hình & C?t Vi?n Ðen */
iframe.hero-slide-widget__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw !important;
    height: 56.25vw !important; /* T? l? 16:9 theo width */
    min-width: 177.78vh !important; /* T? l? 16:9 theo height */
    min-height: 100vh !important;
    max-width: none !important;
    transform: translate(-50%, -50%) scale(1.3) !important; /* Zoom 30% gi?u vi?n */
    transform-origin: center center;
    pointer-events: none !important;
    border: none !important;
}

.hero-slide-widget__item--video .hero-slide-widget__link,
.hero-slide-widget__item--video .hero-slide-widget__media {
    overflow: hidden;
}

.hero-slide-widget__item--fallback .hero-slide-widget__link,
.hero-slide-widget__item--fallback .hero-slide-widget__media {
    background:
        radial-gradient(circle at 76% 24%, rgba(79, 147, 183, .34), transparent 30%),
        radial-gradient(circle at 86% 82%, rgba(25, 104, 138, .24), transparent 34%),
        linear-gradient(135deg, #0d2236 0%, #143d5d 54%, #286d93 100%);
}

.hero-slide-widget__item--fallback .hero-slide-widget__image {
    display: none;
}

.hero-slide-widget__brand-mark {
    position: absolute;
    right: clamp(32px, 8vw, 150px);
    top: 50%;
    width: clamp(220px, 28vw, 430px);
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
    border-radius: 34px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: .1;
    filter: blur(.4px);
    pointer-events: none;
}

.hero-slide-widget__shade {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-slide-widget__item--fallback .hero-slide-widget__shade {
    background: none;
}

.hero-slide-widget__slide-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-slide-widget__slide-content-inner {
    width: min(1300px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.hero-slide-widget__slide-title {
    display: inline-flex;
    align-items: center;
    max-width: 540px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .01em;
    backdrop-filter: blur(10px);
}

.hero-slide-widget__slide-meta,
.hero-slide-widget__slide-cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .01em;
    backdrop-filter: blur(12px);
}

.hero-slide-widget__slide-meta {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .14);
}

.hero-slide-widget__slide-cta {
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: linear-gradient(135deg, #ff9f2f 0%, #ff7a3d 100%);
    box-shadow: 0 18px 42px rgba(255, 127, 54, .28);
    text-decoration: none;
}

.hero-slide-widget__slide-cta:hover,
.hero-slide-widget__slide-cta:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-slide-widget__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(10, 28, 45, .56);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    box-shadow: 0 18px 44px rgba(8, 20, 33, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(.94);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease, background .18s ease;
    backdrop-filter: blur(12px);
}

.hero-slide-widget__nav--prev {
    left: clamp(16px, 3vw, 46px);
}

.hero-slide-widget__nav--next {
    right: clamp(16px, 3vw, 46px);
}

.hero-slide-widget:hover .hero-slide-widget__nav,
.hero-slide-widget:focus-within .hero-slide-widget__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.hero-slide-widget__nav:hover,
.hero-slide-widget__nav:focus {
    background: rgba(13, 49, 78, .82);
    color: #fff;
    outline: none;
}

.hero-slide-widget .owl-pagination {
    display: none;
}

.hero-slide-widget__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(18px, 4vh, 42px);
    pointer-events: none;
}

.hero-slide-widget__overlay .container {
    width: 100%;
}

.hero-slide-widget__panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(10, 28, 45, .72);
    box-shadow: 0 26px 60px rgba(8, 20, 33, .28);
    color: #fff;
    box-sizing: border-box;
    backdrop-filter: blur(16px);
    pointer-events: auto;
}

.hero-slide-widget__eyebrow,
.hero-slide-widget__title {
    display: none;
}

.hero-slide-widget__desc {
    max-width: none;
    margin: 0 0 10px;
    color: rgba(236, 244, 251, .88);
    font-size: 15px;
    line-height: 1.5;
}

.hero-search-form {
    margin: 0;
}

.hero-search-form__types {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.hero-search-form__type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-search-form__type i.fa,
.hero-search-form__route i.fa,
.hero-search-form__submit i.fa {
    width: 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

.hero-search-form__type:hover,
.hero-search-form__type:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-search-form__type.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2e8ae6 0%, #5bc1ff 100%);
    box-shadow: 0 10px 22px rgba(52, 148, 255, .26);
}

.hero-search-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
    gap: 12px;
    align-items: stretch;
}

.hero-search-form__field {
    position: relative;
}

.hero-search-form__input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    color: #17324d;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
}

.hero-search-form__input:focus {
    border-color: #5bc1ff;
    box-shadow: 0 0 0 4px rgba(83, 177, 255, .18);
    outline: none;
}

.hero-search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f17f33 0%, #ff9b4b 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(241, 127, 51, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-search-form__submit:hover,
.hero-search-form__submit:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(241, 127, 51, .32);
}

.hero-search-form .error_search {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    color: #ffd8d8;
    font-size: 12px;
    font-weight: 700;
}

.hero-search-form__routes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.hero-search-form__routes-label {
    color: rgba(229, 241, 252, .74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-search-form__route {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}

.hero-search-form__route:hover,
.hero-search-form__route:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
@keyframes hideYoutubeUIOnLoad {
    0% { opacity: 0; }
    75% { opacity: 0; } 
    100% { opacity: 1; }
}

iframe.hero-slide-widget__video {
    /* Thêm dòng animation này vào iframe */
    animation: hideYoutubeUIOnLoad 2.5s ease-in-out forwards !important;
}

/* MEDIA QUERIES - XÓA B? HEIGHT C? Ð?NH, Ð?U K? TH?A 100VH */

@media (max-width: 1199px) {
    .hero-slide-widget__brand-mark {
        right: 4vw;
        width: clamp(200px, 30vw, 360px);
    }
}

@media (max-width: 991px) {
    .hero-slide-widget__item--fallback .hero-slide-widget__image,
    .hero-slide-widget__brand-mark {
        display: none;
    }
    .hero-slide-widget__panel {
        max-width: none;
        margin: 0;
        padding: 22px 20px 18px;
        border-radius: 24px;
    }
}

@media (max-width: 767px) {
    .hero-slide-widget__overlay {
        padding: 0 12px 14px;
    }
    .hero-slide-widget__panel {
        padding: 12px;
        border-radius: 18px;
    }
    .hero-slide-widget__desc {
        margin-bottom: 9px;
        font-size: 13px;
        line-height: 1.45;
    }
    .hero-slide-widget__slide-content {
        display: none;
    }
    .hero-search-form__types {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        min-width: 0;
    }
    .hero-search-form__type {
        justify-content: center;
        min-width: 0;
        max-width: 100%;
        min-height: 36px;
        padding: 8px 9px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
        overflow: hidden;
    }
    .hero-search-form__row {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .hero-search-form__input,
    .hero-search-form__submit {
        height: 46px;
        border-radius: 14px;
    }
    .hero-slide-widget__slide-content-inner {
        width: calc(100% - 28px);
        gap: 10px;
    }
    .hero-slide-widget__nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
        opacity: .92;
        visibility: visible;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 420px) {
    .hero-slide-widget__overlay {
        padding-right: 10px;
        padding-bottom: 12px;
        padding-left: 10px;
    }
    .hero-slide-widget__panel {
        padding: 10px;
        border-radius: 16px;
    }
    .hero-search-form__type {
        gap: 6px;
        padding-right: 7px;
        padding-left: 7px;
    }
}