/* ---------------------- banner styles ---------------------- */

/* Skeleton banner — hiện phía sau video cho đến khi video render frame đầu */
@keyframes row-video-skeleton {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes row-video-spin {
    to {
        transform: rotate(360deg);
    }
}

.section-bn-video .row-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.section-bn-video .row-video-skeleton {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background-color: #e8eef4;
    background-image: linear-gradient(
        90deg,
        #e8eef4 0%,
        #f5f8fb 50%,
        #e8eef4 100%
    );
    background-size: 200% 100%;
    animation: row-video-skeleton 1.4s ease-in-out infinite;
    pointer-events: none;
}

.section-bn-video .row-video-skeleton::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(39, 187, 255, 0.2);
    border-top-color: #27bbff;
    border-radius: 50%;
    animation: row-video-spin 0.75s linear infinite;
}

.video-background {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
    border: 0;
    background-color: #e8eef4;
}

.section-bn-video {
    position: relative;
    width: 100%;
    height: 772px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
    margin-bottom: 40px;
}

.section-bn-video::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0);
    z-index: -1;
}

.section-bn-video .box-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.content-banner {
    width: 586px;
}

.content-banner .row-text {
    text-align: center;
}

.content-banner .row-text .label {
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    color: #27BBFF;
    line-height: 21px;
}

.content-banner .row-text .title {
    font-weight: bold;
    font-size: 52px;
    letter-spacing: 0%;
    text-align: center;
    color: #252525;
    margin: 8px 0 12px;
    line-height: 120%;
}

.content-banner .row-text .title span {
    color: #F75501;
}

.content-banner .row-text .desc {
    font-weight: 500;
    font-size: 20px;
    color: #3D3D3D;
    margin: 0;
}

/* row button  */
.row-button-banner {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
    width: 450px;
    max-width: 100%;
    margin: 32px auto 0;
}

/* end row button  */

.btn-bn-orange,
.btn-bn-blue {
    width: 200px;
    padding: 0;
    text-align: center;
}

.btn-bn-orange {
    background:
    url('../images/btn-bg.png') center center repeat,
    linear-gradient(
        180deg,
        #ff8a1e 0%,
        #ff6500 45%,
        #ff5a00 100%);

    box-shadow:
    0 0 0 6px rgba(255, 125, 40, 0.19),
    0 24px 50px rgba(255, 110, 20, 0.55),
    inset 0 8px 20px rgba(255,255,255,0.25),
    inset 0 -10px 20px rgba(255,120,0,0.35);
    border: 1px solid rgba(255, 237, 220, 0.7);
}

.btn-bn-orange:hover {
    box-shadow:
    0 0 0 6px rgba(255, 125, 40, 0.16),
    0 24px 44px rgba(255, 110, 20, 0.4),
    inset 0 8px 20px rgba(255,255,255,0.25),
    inset 0 -10px 20px rgba(255,120,0,0.35);
}


.btn-bn-blue {
    background:
    url('../images/btn-bg-blue.png') center center repeat,
    linear-gradient(
        180deg,
        #96CBFF 0%,
        #37A6FF 45%,
        #2AA0FF 100%);
    box-shadow:
    0 0 0 6px rgba(150, 203, 255, 0.35),
    0 24px 50px rgba(55, 166, 255, 0.4),
    inset 0 8px 20px rgba(255,255,255,0.25),
    inset 0 -10px 20px rgba(24, 152, 255, 0.4);
    border: 1px solid rgba(255, 237, 220, 0.7);
}

.btn-bn-blue:hover {
    box-shadow:
    0 0 0 6px rgba(150, 203, 255, 0.25),
    0 24px 44px rgba(55, 166, 255, 0.25),
    inset 0 8px 20px rgba(255,255,255,0.25),
    inset 0 -10px 20px rgba(24, 152, 255, 0.3);
}
.btn-bn-orange, .btn-bn-blue {
    font-size: 18px;
    height: 80px;
    background-size: auto 80px;
    border-radius: 24px;
}

.btn-bn-blue::before {
    background: rgba(24, 152, 255, 0.3);
}
.btn-bn-orange small,
.btn-bn-blue small {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 1);
    margin-top: 8px;
    font-weight: 500;
}
@media (max-width: 1366px) {
    .section-bn-video {
       height: 580px;
    }
}
@media (max-width: 1200px) {
    .section-bn-video {
        padding: 0 10px;
        height: 520px;
    }
    .content-banner {
        width: calc(50% + 10vw); 
    }
}
@media (max-width: 1024px) {
    .section-bn-video {
       margin-bottom: 30px;
       height: 440px;
    }
    .section-bn-video .box-container {
        align-items: flex-end;
        padding-bottom: 40px;
    }
    .content-banner {
        width: 48%;
    }
    .content-banner .row-text .label {
        font-size: 18px;
    }
    .content-banner .row-text .title {
        font-size: 32px;
    }
    .content-banner .row-text .desc{
        font-size: 18px;
    }
    .btn-bn-orange, .btn-bn-blue {
        width: 186px;
        padding: 0;
        font-size: 16px;
        height: 62px;
        font-weight: 600;
        background-size: auto 62px;
    }
}
@media (max-width: 834px) {
    .content-banner {
        width: calc(60% + 15vw);
    }
}
@media (max-width: 768px) {
    .section-bn-video {
        /* height: auto; */
    }
    .section-bn-video .box-container {
        min-height: 100%;
    }
    .content-banner {
        width: 100%;
        padding-bottom: 24px;
    }
    .section-bn-video .box-container {
        align-items: flex-end;
        padding-bottom: 0px;
    }
}
@media (max-width: 540px) {
    .section-bn-video {
        height: 88vh;
        padding: 0;
        justify-content: flex-end;
    }
    .video-background {
        /* position: relative;
        left: unset;
        top: unset;
        transform: translate(0, 0); */
    }
    .section-bn-video .box-container {
        min-height: auto;
        padding-bottom: 32px;
    }
    .content-banner .row-text .label {
        font-size: 14px;
    }
    .content-banner .row-text .title {
        font-size: 26px;
        line-height: 36px;
    }
    .content-banner .row-text .desc {
        font-size: 16px;
    }
    .row-button-banner {
        gap: 20px
    }
    .btn-bn-orange,
    .btn-bn-blue {
        width: 180px;
        font-size: 14px;
    }
}
@media (max-width: 375px) {
    .row-button-banner {
        gap: 18px
    }
   .btn-bn-orange small, .btn-bn-blue small {
        font-size: 12px;
        letter-spacing: -0.03em;
    } 
}
/* ---------------------- */