/* ============ CSS VARIABLES ============ */
:root {
    --primary-color: #00AEEF;
    --secondary-color: #FF9500;
    --text-color: #585858;
    --border-color: #D9D9D9;
    --container-max-width: 1300px;
    --transition-speed: 0.2s;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============ GLOBAL RESET FOR CONSISTENT RENDERING ============ */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Force consistent scaling */
@media screen {

    html,
    body {
        zoom: 1 !important;
        -webkit-transform: scale(1) !important;
        -moz-transform: scale(1) !important;
        transform: scale(1) !important;
    }
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
    height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100%;
    font-size: 16px;
    line-height: 1.5;
    zoom: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    background: url(../images/background.mp4);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Container bao video */
.video-bg {
    position: fixed;
    /* luôn đứng sau */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /* cho video xuống dưới toàn bộ */
}

/* Video fill full màn hình */
.video-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* đảm bảo video bao toàn màn hình */
    object-position: center;
}

.video-bg-mobile {
    display: none;
}

/* ============ HEADER ============ */
.header {
    display: flex;
    align-items: center;
    position: relative;
}

.header .back-home {
    position: absolute;
}

.header .logo {
    text-align: center;
    width: 100%;
}

.header .logo img {
    width: 400px;
}

.header .back-home img {
    width: 150px;
}

.main-layout .content-box .content-box-item {
    position: relative;
    text-align: center;
}

.main-layout .content-box .content-box-item img.img-fluid.icon-football {
    position: absolute;
    width: 230px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.main-layout .content-box .content-box-item img.img-fluid.icon-iframe-football {
    width: 350px;
}

.main-layout .content-box .content-box-item .content-box-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 68%;
}

.main-layout .content-box-speed {
    background: url(../images/bg-speed.webp) no-repeat center;
    background-size: 100% 100%;
    position: relative;
}

.main-layout .content-box-speed img.img-fluid.decoration-speed {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.btn-access-link {
    border: 1px solid #fff;
    background: linear-gradient(178deg, #00C1A8, #008876);
    color: #fff;
    font-weight: bold;
    padding: 5px 0;
}

.wp-footer {
    display: flex;
    justify-content: center;
}

.wp-footer .download-app {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    background-color: #00000069;
    width: 50%;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #8b8b8b;
}

.slogan-gg88 {
    display: none;
}

.content-box-speed-item {
    position: relative;
}

.content-box-speed-item .speed-meter {
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    font-weight: bold;
}

/* ============ RESPONSIVE STYLES ============ */
@media (max-width: 768px) {
    .video-bg {
        display: none;
    }
    .video-bg-mobile{
        display: block;
    }
    .video-bg-mobile {
        position: fixed;
        /* luôn đứng sau */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -1;
        /* cho video xuống dưới toàn bộ */
    }

    .-video {
        object-position: center top;
    }

    .back-home {
        display: none;
    }

    .header .logo img {
        width: 300px;
    }

    .slogan {
        display: flex;
        justify-content: center;
    }

    .slogan .slogan-gg88 {
        display: block;
    }

    .main-layout .content-box .content-box-item img.img-fluid.icon-football {
        width: 150px;
    }

    .main-layout .content-box .content-box-item img.img-fluid.icon-iframe-football {
        width: 225px;
    }

    .btn-access-link {
        padding: 0;
        font-size: 14px;
    }

    .main-layout .content-box-speed img.img-fluid.decoration-speed {
        width: 200px;
    }

    .wp-footer .download-app {
        width: 100%;
    }

    .main-layout .content-box {
        padding-top: 1.5rem;
    }

    .main-layout .content-box-speed .col-4 {
        padding-bottom: 10px;
    }

    .content-box-speed-item .speed-meter {
        font-size: 14px;
    }
}