* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #ffffff;

    color: #172033;

    font-family:
        "Noto Sans Lao",
        "Phetsarath OT",
        Arial,
        sans-serif;

    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font-family: inherit;
}



.site-container {
    width: 1280px;

    max-width:
        calc(100% - 28px);

    margin-left: auto;
    margin-right: auto;
}



.top-header {
    width: 100%;

    background: #24272b;

    border-bottom:
        1px solid #35383c;
}

.top-header-inner {
    height: 96px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    color: white;

    font-size: 25px;

    font-weight: 700;
}

.brand-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;

    border-radius: 50%;
}

.top-slogan {
    color: white;

    font-size: 29px;

    font-weight: 700;
}


.page-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 820px)
        400px;

    justify-content: space-between;

    align-items: start;

    gap: 25px;

    padding-top: 45px;

    padding-bottom: 40px;
}

.main-content,
.right-sidebar {
    min-width: 0;
}



.news-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;

    margin-bottom: 55px;
}

.news-card {
    overflow: hidden;

    border:
        1px solid #d8e0e8;

    border-radius: 12px;

    background: white;

    box-shadow:
        0
        2px
        10px
        rgba(0, 0, 0, 0.04);
}

.news-card img {
    width: 100%;

    height: 220px;

    object-fit: cover;
}

.news-content {
    padding:
        18px
        20px
        20px;
}

.news-content p {
    margin: 0;

    color: #1b1b1b;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.65;
}


.section-heading {
    margin-bottom: 43px;

    border-bottom:
        2px solid #242424;
}

.section-heading h2 {
    margin:
        0
        0
        11px;

    color: #202020;

    font-size: 25px;

    font-weight: 700;
}

.history-card {
    width: 100%;

    padding:
        22px
        24px
        25px;

    border:
        1px solid #dbe2ea;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0
        4px
        17px
        rgba(0, 0, 0, 0.07);
}

.history-card-title {
    margin-bottom: 18px;

    display: flex;

    align-items: center;

    gap: 10px;

    color: #222;

    font-size: 15px;

    font-weight: 700;
}

.red-line {
    width: 4px;
    height: 26px;

    display: inline-block;

    background: #e32820;
}


.table-responsive-wrapper {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid #d8dfe7;

    border-radius: 5px;
}


#history-table {
    width: 100%;

    min-width: 720px;

    border-collapse: collapse;

    table-layout: fixed;

    background: white;
}

#history-table thead th {
    height: 58px;

    padding:
        10px
        8px;

    border-right:
        1px solid #334052;

    background: #172235;

    color: white;

    text-align: center;

    font-size: 13px;

    font-weight: 700;
}

#history-table thead th:last-child {
    border-right: 0;
}

#history-table tbody td {
    height: 58px;

    padding:
        10px
        8px;

    border-right:
        1px solid #d6dee7;

    border-bottom:
        1px solid #d6dee7;

    color: #213148;

    text-align: center;

    font-size: 14px;

    font-weight: 600;
}

#history-table tbody td:last-child {
    border-right: 0;
}

#history-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

#history-table tbody tr:last-child td {
    border-bottom: 0;
}

#history-table tbody td:first-child {
    color: #526985;
}


/* 5 DIGIT PRIZE */

#history-table tbody td:nth-child(2) {
    color: #f12d20;

    font-weight: 800;
}

.history-loading {
    min-height: 80px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;
}

.loader {
    width: 20px;
    height: 20px;

    border:
        3px solid #dce4ec;

    border-top-color:
        #e42a1c;

    border-radius: 50%;

    animation:
        loadingSpin
        0.8s
        linear
        infinite;
}

@keyframes loadingSpin {

    to {
        transform: rotate(360deg);
    }

}

.ad-card {
    margin-bottom: 45px;

    overflow: hidden;

    border-radius: 9px;

    background: white;
}

.ad-card img {
    width: 100%;

    height: auto;
}

.result-card {
    margin-bottom: 42px;

    overflow: hidden;

    border:
        1px solid #d8e0e8;

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0
        3px
        14px
        rgba(0, 0, 0, 0.06);
}


.custom-header {
    min-height: 104px;

    padding:
        18px
        20px;

    display: flex;

    align-items: center;

    gap: 16px;

    border-bottom:
        4px solid #ec2e21;

    background: #111b30;

    color: white;
}

.custom-flag {
    width: 52px;
    height: 52px;

    flex-shrink: 0;
}

.custom-title-block {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.custom-title-block strong {
    font-size: 18px;

    line-height: 1.35;
}

.custom-title-block span {
    color: #dde3ed;

    font-size: 12px;
}

.custom-body {
    padding:
        25px
        22px
        27px;
}

.custom-section-title {
    margin-bottom: 19px;

    color: #6a778b;

    text-align: center;

    font-size: 13px;

    font-weight: 700;
}

.custom-numbers {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 9px;

    margin-bottom: 30px;
}

.custom-numbers > div {
    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        2px solid #ccd7e3;

    border-radius: 6px;

    background: #ffffff;

    color: #172235;

    font-size: 35px;

    font-weight: 800;

    box-shadow:
        0
        2px
        4px
        rgba(0, 0, 0, 0.03);
}


.custom-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    overflow: hidden;

    border-radius: 6px;
}

.custom-table thead th {
    height: 54px;

    padding:
        10px
        8px;

    background: #172235;

    color: white;

    text-align: center;

    font-size: 13px;
}

.custom-table tbody td {
    height: 66px;

    padding:
        10px
        8px;

    border:
        1px solid #edf0f3;

    text-align: center;

    color: #172235;

    font-size: 16px;

    font-weight: 700;
}

.custom-table tbody td:first-child {
    color: #65768f;

    font-size: 14px;

    font-weight: 600;
}

.highlight-prize {
    font-size: 18px !important;

    font-weight: 800 !important;
}
.latest-date {
    margin-top: 15px;

    color: #8a97aa;

    text-align: center;

    font-size: 11px;
}

.article-section {
    margin-bottom: 30px;
}

.article-section h2 {
    margin:
        0
        0
        8px;

    color: #1f1f1f;

    font-size: 24px;
}

.article-line {
    height: 2px;

    margin-bottom: 35px;

    background: #242424;
}

.article-section p {
    margin:
        0
        0
        38px;

    color: #151515;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.8;
}

.bottom-ad {
    margin-top: 10px;
}

.site-footer {
    min-height: 45px;

    background: #56616d;

    color: white;
}

.footer-inner {
    min-height: 45px;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    font-size: 14px;
}

@media (max-width: 1000px) {

    .page-layout {
        grid-template-columns:
            minmax(0, 1fr)
            330px;

        gap: 18px;
    }


    .top-slogan {
        font-size: 23px;
    }


    .news-card img {
        height: 180px;
    }

}

@media (max-width: 800px) {

    .top-header-inner {
        height: 80px;
    }


    .brand {
        font-size: 20px;
    }


    .brand-logo {
        width: 48px;
        height: 48px;
    }


    .top-slogan {
        font-size: 18px;
    }


    .page-layout {
        display: block;

        padding-top: 25px;
    }


    .right-sidebar {
        margin-top: 30px;
    }


    .ad-card {
        max-width: 500px;

        margin-left: auto;
        margin-right: auto;
    }


    .result-card {
        max-width: 500px;

        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 600px) {

    .site-container {
        max-width:
            calc(100% - 16px);
    }

    .top-header-inner {
        height: 70px;
    }


    .brand {
        gap: 8px;

        font-size: 18px;
    }


    .brand-logo {
        width: 42px;
        height: 42px;
    }


    .top-slogan {
        display: none;
    }

    .news-grid {
        grid-template-columns:
            1fr;

        gap: 15px;

        margin-bottom: 35px;
    }


    .news-card img {
        height: auto;
    }
    .section-heading {
        margin-bottom: 25px;
    }


    .section-heading h2 {
        font-size: 20px;
    }
    .history-card {
        padding:
            15px
            10px;
    }


    .history-card-title {
        font-size: 13px;
    }


    #history-table {
        min-width: 670px;
    }


    #history-table thead th,
    #history-table tbody td {
        font-size: 12px;
    }

    .custom-header {
        min-height: 87px;

        padding:
            14px
            13px;
    }


    .custom-flag {
        width: 44px;
        height: 44px;
    }


    .custom-title-block strong {
        font-size: 15px;
    }


    .custom-body {
        padding:
            20px
            12px;
    }


    .custom-numbers {
        gap: 5px;
    }


    .custom-numbers > div {
        height: 60px;

        font-size: 28px;
    }


    .custom-table thead th {
        font-size: 11px;
    }


    .custom-table tbody td {
        height: 57px;

        font-size: 14px;
    }


    .article-section h2 {
        font-size: 20px;
    }

}