html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Kanit', sans-serif;
}

/* ===== BOOTSTRAP CONTAINER REM OVERRIDES ===== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: 0.9375rem;
    /* 15px */
    padding-left: 0.9375rem;
    /* 15px */
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {

    .container,
    .container-sm {
        max-width: 33.75rem;
        /* 540px */
    }
}

@media (min-width: 768px) {

    .container,
    .container-sm,
    .container-md {
        max-width: 45rem;
        /* 720px */
    }
}

@media (min-width: 992px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg {
        max-width: 60rem;
        /* 960px */
    }
}

@media (min-width: 1200px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl {
        max-width: 71.25rem;
        /* 1140px */
    }
}

@media (min-width: 1400px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 82.5rem;
        /* 1320px */
    }
}


/* ===== HERO VIDEO SECTION ===== */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-video {
        display: none;
    }

    .hero-video-section::before {
        background: url(../images/mb-head-bg.png);
        background-size: cover;
        background-position: center;
    }

    .hero-secondary-btns {
        padding-top: 0.9375rem;
    }

    .d-none.d-md-flex {
        display: flex !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}


/* Content sits above overlay */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 5rem 0 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Fallback when no video is present — dark gradient */
.hero-video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../images/mb-head-bg.png);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.09375rem;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator .chevron {
    width: 1.25rem;
    height: 1.25rem;
    border-right: 0.125rem solid rgba(255, 255, 255, 0.4);
    border-bottom: 0.125rem solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.hero-roof-decoration {
    width: 100%;
    z-index: 2;
    pointer-events: none;
    line-height: 0;
}

.hero-roof-decoration img {
    display: block;
    width: 100%;
}

.rem-container {
    width: 100%;
    max-width: 83rem;
}

/* ===== TOP MENU ===== */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 3rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.top-menu .menu-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0 0.3125rem;
}

.top-menu .menu-item i {
    font-size: 1rem;
    color: #ffd200;
    /* Goldish accent */
}

.top-menu .menu-item:hover {
    color: #fff;
    text-shadow: 0 0 0.625rem rgba(255, 255, 255, 0.5);
    transform: translateY(-0.0625rem);
}

.top-menu .menu-item.enter-site {
    background: linear-gradient(90deg, #ffd200, #ff9000);
    color: #442200;
    padding: 0.25rem 0.9375rem;
    border-radius: 1.25rem;
    font-weight: 600;
}

.top-menu .menu-item.enter-site i {
    color: #442200;
}

.top-menu .menu-item.enter-site:hover {
    box-shadow: 0 0 0.9375rem rgba(255, 210, 0, 0.4);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .top-menu .container {
        justify-content: center !important;
        gap: 0.9375rem !important;
    }

    .top-menu .menu-item {
        font-size: 0.75rem;
    }

    .top-menu .menu-item i {
        font-size: 0.9rem;
    }

    .top-menu .menu-item.enter-site {
        padding: 0.1875rem 0.625rem;
    }
}

/* ===== PC NOTICE BADGE ===== */
.pc-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);
    border: 0.0625rem solid rgba(255, 210, 0, 0.3);
    padding: 0.375rem 1rem;
    border-radius: 3.125rem;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.625rem 0 0;
    color: #fff !important;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.2);
    animation: fadeInRequirement 1s ease-out;
}

.pc-notice i {
    color: #ffd200;
    font-size: 0.85rem;
    filter: drop-shadow(0 0 5px rgba(255, 210, 0, 0.5));
}

@keyframes fadeInRequirement {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustment for the container */
.hero-content .flex-wrap {
    flex-direction: column;
    align-items: center;
}

/* ===== FLOATING BANNER ===== */
.floating-banner {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    width: 12.5rem;
    transition: all 0.3s ease;
    animation: bounceIn 1s ease-out;
}

.floating-banner:hover {
    transform: translateY(-5px);
}

.floating-banner .close-banner {
    position: absolute;
    top: -0.625rem;
    right: -0.625rem;
    width: 1.5625rem;
    height: 1.5625rem;
    background: #ff0000;
    color: white;
    border: 0.125rem solid #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: background 0.2s;
}

.floating-banner .close-banner:hover {
    background: #cc0000;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.9) translateY(5px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .floating-banner {
        width: 9.375rem;
        bottom: 0.9375rem;
        right: 0.9375rem;
    }
}