.container-fluid {
    z-index: 50;
}

#Sec-Preregis {
    background: url(../images/bg-sec-1-sm.webp?v=3.05) top center no-repeat;
    background-size: 140%;
    max-width: 2500px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    padding-top: 13%;
    /* overflow: ; */
}

#Sec-Preregis::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    z-index: 10;
}


#Sec-Preregis .container {
    position: relative;
    z-index: 5;
}


#Sec-Preregis.update {
    max-width: 2500px !important;
    background-size: cover !important;
    padding-top: 50px;
}

#Sec-Event.update {
    max-width: 2500px !important;
    padding: 100px 0;
    /* height: 100vh; */
}

#Sec-News.update {
    max-width: 2500px !important;
    background-size: cover !important;
    height: fit-content;
}

#Sec-CRT.update {
    max-width: 2500px !important;
    background-size: cover !important;
    padding: 0 60px;
}

#Sec-System.update {
    max-width: 2500px !important;
    background-size: cover !important;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}


.col-logo {
    width: 70%;
    max-width: 400px;
    margin: auto;
    padding-left: 10%;
}

.text-detail {
    font-size: 3vw;
    color: #636363;
}

.text-detail.update.linear {
    font-weight: 600;
    background: linear-gradient(90deg, #B198F6, #457DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-detail.update {
    width: fit-content;
    font-size: 5vw;
    color: #3a3a3a;
    margin: 0 auto 0;
    background: linear-gradient(90deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 50%) 10%, rgb(255 255 255 / 70%) 50%, rgb(255 255 255 / 50%) 90%, rgb(255 255 255 / 0%) 100%);
}

.text-preregis-title.update {
    font-family: 'Unblocker', sans-serif !important;
    color: #fff !important;
    filter: drop-shadow(0px 2px 5.5px #4bb7ff) !important;
    font-size: 70px !important;
    line-height: .9 !important;
    text-transform: uppercase;

}

.text-preregis-title.update span {
    font-family: "Mitr", sans-serif !important;
    color: #fff !important;
    font-size: 65px !important;
}

.btn-detail {
    position: absolute;
    bottom: 14%;
    right: 3%;
    background: transparent;
    border: none;
    z-index: 100;
    width: 35%;
    aspect-ratio: 1/1;
    max-width: 45px;
    padding: 0;
}

.btn-detail img {
    width: 100%;
}

.navbar-tr {
    z-index: 100;
}

.modal-backdrop.show {
    z-index: 100;
    opacity: .9;
}


.modal.show .modal-dialog {
    transform: none;
    z-index: 1000;
}

.side-nav {
    z-index: 52;
}

/* crt-sec-hero */
.crt-sec-hero-1 {
    position: absolute;
    left: -140px;
    top: 0px;
    z-index: 3;
    width: 490px;
    display: none;

}

.crt-sec-hero-2 {
    position: absolute;
    right: 0px;
    left: auto;
    bottom: 91px;
    z-index: 2;
    width: 465px;
    transform: scaleX(-1);
    display: none;
}

.text-detail-preregis {
    font-size: 12px;
    font-weight: 400;
    color: #6E6E6E;
    width: 100%;
    order: 5;
}

.float-up-down {
    animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

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

.float-delay-1 {
    animation-delay: 0s;
}

.float-delay-2 {
    animation-delay: 1s;
}

/* crt-sec-hero */




/* Modal Customization */
.detail-item .modal-dialog {
    max-width: 600px;
}

.detail-item .modal-content.custom-modal-content {
    background-color: transparent;
    border: none;
    position: relative;
    padding: 20px;
}

/* Close Button (Top Right) */
.btn-close-custom {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1056;
    background: url('/images/ic-close.webp?v=2.55') no-repeat center center;
    background-size: 100%;
    border: none;
}


.btn-more {
    color: #fff;
    background: #ffffff3b;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: .3em 1em;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #fff;
}

/* Header */
.modal-header-custom {
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-header-custom .modal-title {
    background: url('/images/modal-header-custom.webp?v=2.55') no-repeat center center;
    background-size: 100%;
    color: white;
    padding: 10px 40px;
    font-size: 1.3rem;
    display: inline-block;
    position: relative;
    min-width: 400px;
}

/* Add sparkles manually if no image provided, using pseudo elements for simple decoration */
.modal-header-custom .modal-title::before,
.modal-header-custom .modal-title::after {
    content: '✦';
    color: #fff;
    font-size: 1.2rem;
    margin: 10px;
}

.modal-header-custom .modal-title::before {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-header-custom .modal-title::after {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}


/* Item Cards */
.modal-body-custom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.item-card {
    background: linear-gradient(90deg, #9ca3ff 0%, #b09aff 100%);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.item-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.item-desc {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Footer Button */
.modal-footer-custom {
    text-align: center;
    margin-top: 30px;
}

.btn-action {
    background: linear-gradient(90deg, #854dff 0%, #4b8bd0 100%);
    color: white;
    border: none;
    padding: 10px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(92, 107, 192, 0.4);
    transition: transform 0.2s;
}

.btn-action:hover {
    transform: scale(1.05);
}

.reward-item {
    width: 80%;
    max-width: 500px;
    margin: auto;
}

@media (min-width: 540px) {

    .text-detail-preregis {
        top: 770px;
    }

    .inbox-timeline-mst {
        font-size: 9pt;
    }

    .box-timeline-mst {
        padding-top: 2%;
    }

    .col-item-preregis {
        margin: -10% 0;
    }

    .text-preregis-title {
        font-size: 60px;
    }

    .col-run-1m {
        width: 80%;
        margin: 0 auto;
        font-size: 25px;
    }

}

@media (min-width: 720px) {
    .inbox-timeline-mst {
        font-size: 12pt;
    }

    .text-detail-preregis {
        font-size: 16px;
    }

    .btn-detail {
        width: 25%;
        bottom: 5%;
    }

    .all-timeline-mst {
        margin-top: 80px;
    }

    #Sec-Preregis {
        padding-top: 11%;
    }

    .col-run-1m {
        width: 600px;
        font-size: 30px;
    }

    .text-detail.update.linear {
        font-size: 30px;
    }

    .text-detail {
        font-size: 20px;
    }

    .milestone-container {
        margin: 35px auto 3%;
    }

    .all-timeline-mst {
        margin-top: 60px;
    }

}


@media (min-width: 820px) {
    .text-detail-preregis {
        top: 860px;
    }
}

@media (min-width: 960px) {
    .inbox-timeline-mst {
        font-size: 15pt;
    }

    .text-detail-preregis {
        top: 620px;
    }

    #Sec-Preregis {
        background: url(../images/bg-sec-1-mb.webp?v=3.05) top center no-repeat;
        background-size: 100%;
        padding-top: 13%;
    }

    .text-preregis-title {
        font-size: 60px;
        filter: drop-shadow(0px 1px 4px #ffffff);
    }

    .milestone-container {
        max-width: 90%;
    }
}

@media (min-width: 1025px) {

    .crt-sec-hero-1 {
        display: block;
    }

    .text-detail {
        font-size: 18px;
    }

    .crt-sec-hero-2 {
        display: block;
        background: url(../images/crt-sec-hero-2-2.webp?v=3.05) top center no-repeat;
        background-size: 100%;
        width: 230px;
        aspect-ratio: 1/1.4;
        right: 0;
        bottom: 120px;
    }

    .text-preregis-title {
        color: transparent;
        font-size: 90px;
        filter: drop-shadow(0px 1px 5px #00629b);
    }

    .bg-video {
        min-width: 1440px;
        /* width: 1440px; */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #Sec-Preregis {
        padding-top: 6%;
        padding-bottom: 60px;
        background: #fff;
        /* aspect-ratio: 16/9; */
    }

    .text-detail.update.linear {
        filter: drop-shadow(0px 0px 2px #ffffff);

    }

    .btn-read-preregis {
        font-size: 16px;
    }

    .text-detail.update.linear {
        font-size: 28px;
    }

    .col-run-1m {
        width: 650px;
        font-size: 35px;
    }

    .milestone-line {
        width: 79%;
    }

    .all-timeline-mst {
        margin-top: 70px;
    }
}

@media (min-width: 1140px) {
    .inbox-timeline-mst {
        font-size: 14pt;
    }

    .bg-video {
        width: 1740px;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0%);
        bottom: 0;
    }

    .crt-sec-hero-1 {
        position: absolute;
        left: -280px;
        top: -50px;
        z-index: 20;
        width: 800px;
    }

    .crt-sec-hero-2 {
        display: block;
        background: url(../images/crt-sec-hero-2.webp?v=3.05) top center no-repeat;
        background-size: 100%;
        width: 500px;
        aspect-ratio: 1 / 1.4;
        right: auto;
        left: -40px;
        bottom: -280px;
        z-index: 19;
    }

    .text-preregis-title {
        font-size: 110px;
    }

    #Sec-Preregis {
        height: 1080px;

    }

    .col-run-1m {
        margin-bottom: 20px;
    }

    .milestone-line {
        width: 80%;
    }
}

@media (min-width: 1200px) {
    /* .milestone-line {
        width: 74%;
    } */

    .text-detail-preregis {
        top: 690px;
    }
}

@media (min-width: 1300px) {
    /* .milestone-line {
        width: 74%;
    } */

    .text-detail-preregis {
        top: 710px;
    }
}

@media (min-width: 1441px) {
    .bg-video {
        width: 1920px;
    }

    .milestone-line {
        width: 70%;
    }

    .text-detail-preregis {
        top: 720px;
    }

}

@media (min-width: 1921px) {
    #Sec-Preregis {
        height: 1080px;
        max-width: 2500px;
        background: url(../images/bg-pre-regis.webp?v=3.05) top center no-repeat;
        background-size: 2500px;
        aspect-ratio: auto;
    }

    .crt-sec-hero-1 {
        left: -40px;
    }

    .crt-sec-hero-2 {
        left: 306px;
    }

    .vdo-frame {
        background: #000;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0%);
        background: url(../images/frame-vdo-bg.webp?v=3.05) top center no-repeat;
        width: 1920px;
        height: 100%;
        z-index: 10;
        position: absolute;
        pointer-events: none;
    }
}