*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #000;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== Background Video ===== */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bg-pc {
    display: none;
}

.bg-mb {
    display: block;
}

/* ===== Page Layout ===== */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 16px;
}

/* ===== Logo ===== */
.logo-wrap {
    flex-shrink: 0;
    padding-top: 48px;
    display: flex;
    justify-content: center;
}

.logo {
    width: 160px;
    max-width: 42vw;
    display: block;
}

/* ===== Banner – Mobile =====
   flex: 1  →  banner fill hết phần còn lại giữa logo và flags
   object-fit: contain + object-position: top  →  ảnh gắn trên đầu,
   phần còn thừa ở dưới hiện video background (không có khoảng trắng thật sự)
*/
.banner-wrap {
    position: relative;
    width: 100%;
    margin-top: 16px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

.banner-pc {
    display: none;
}

.banner-mb {
    display: block;
}

.pc-box {
    display: none;
}

.cta-pc {
    display: none;
}

.cta-btn {
    position: absolute;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(to bottom, #2b1500, #120800);
    border: 2px solid #F97316;
    color: #F97316;
    font-size: clamp(13px, 3.8vw, 18px);
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px 10px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(220, 130, 0, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cta-mb {
    top: 91vw;
    left: 51%;
    transform: translateX(-50%);
}

.cta-btn:hover {
    border-color: #ffa500;
    color: #ffa500;
    box-shadow: 0 0 22px rgba(255, 160, 0, 0.65), inset 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ===== Flags ===== */
.flags {
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 8px 16px 8px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.flag-item img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.flag-item span {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
@media (min-width: 375px) and (max-width: 420px) {
    .banner-wrap { margin-top: 64px; }
}

@media (min-width: 376px) and (max-width: 430px) {
    .banner-wrap {
        margin-top: 50px;
    }
    .flags {
        padding-bottom: 130px;
    }
}
@media (max-width: 390px){
    .flags {
        padding-bottom: 100px;
    }
}
@media (max-width: 375px) {
    .logo-wrap {
        padding-top: 16px;
    }
    .banner-wrap {
        margin-top: 8px;
    }
    .flags {
        padding-bottom: 40px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .cta-pc {
        bottom: 1% !important;
    }
}

/* ===== Desktop (≥768px) ===== */
@media (min-width: 768px) {

    .bg-pc {
        display: block;
    }

    .bg-mb {
        display: none;
    }

    .banner-pc {
        display: block;
    }

    .banner-mb {
        display: none;
    }

    .page {
        justify-content: space-between;
        padding-bottom: 0;
    }

    .logo-wrap {
        padding-top: 22px;
    }

    .logo {
        width: 220px;
        max-width: 22vw;
    }

    .banner-wrap {
        margin-top: 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        width: 90%;
        align-self: center;
    }

    .pc-box {
        display: block;
        position: relative;
        width: 100%;
        max-width: 603px;
    }

    .banner {
        width: 100%;
        height: auto;
        max-width: 603px;
        max-height: 467px;
        object-fit: contain;
        object-position: center center;
    }

    .cta-mb {
        display: none;
    }

    .cta-pc {
        display: inline-block;
        top: unset;
        bottom: 0%;
        left: 50%;
        transform: translateX(-45%);
        font-size: 16px;
        padding: 10px 10px;
        border-radius: 15px;
    }

    .flags {
        margin-top: 0;
        gap: 56px;
        padding: 10px 40px 22px;
    }

    .flag-item img {
        width: 110px;
        height: 110px;
    }

    .flag-item span {
        font-size: 13px;
        letter-spacing: 0.8px;
    }
}

/* ===== Large Desktop (≥1280px) ===== */
@media (min-width: 1280px) {
    .banner-wrap {
        max-width: 1100px;
        width: 78%;
    }

    .logo {
        width: 260px;
    }

    .cta-btn {
        font-size: 22px;
        padding: 13px 10px;
    }

    .flags {
        gap: 80px;
        padding: 12px 60px 24px;
    }

    .flag-item img {
        width: 130px;
        height: 130px;
    }

    .flag-item span {
        font-size: 14px;
    }
}

@media (min-width: 2560px) {
    .cta-pc {
        bottom: -1%;
    }
    .banner-wrap {
        align-items: center;
    }
}

/* ===== Turkey Popup ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
}

.popup-overlay[hidden] {
    display: none;
}

.popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.popup-content img {
    display: block;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}