
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        "Noto Sans Lao",
        Arial,
        sans-serif;

    background: #ffffff;

    color: #444;
}


.site-header {
    width: 100%;
    height: 165px;

    background: #fff;
}

.header-inner {
    width: 100%;
    max-width: 1280px;
    height: 100%;

    margin: 0 auto;

    padding: 8px 20px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.logo-area img {
    width: 390px;
    max-width: 100%;
    height: 150px;

    display: block;

    object-fit: contain;
    object-position: left center;
}
.header-right {
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: flex-end;
    justify-content: space-between;

    padding: 3px 0 10px;
}

.current-date {
    font-size: 16px;
    color: #555;
}


.social-icons {
    display: flex;
    gap: 6px;
}

.social {
    width: 47px;
    height: 47px;

    border-radius: 6px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;

    font-size: 25px;
    font-weight: 700;

    text-decoration: none;
}

.facebook {
    background: #3b5998;
}

.twitter {
    background: #1da1f2;
}

.youtube {
    background: #d71920;
}

.main-nav {
    width: 100%;

    background: #f20d0d;

    border-bottom: 1px solid #d40000;
}

.nav-inner {
    width: 100%;
    max-width: 1280px;

    min-height: 60px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 0 20px;
}

.nav-inner a {
    display: flex;
    align-items: center;

    min-height: 60px;

    padding: 0 28px;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.nav-inner a:hover {
    background: rgba(0, 0, 0, 0.08);
}


.page-container {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 10px 10px 25px;
}

.result-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2.05fr)
        minmax(340px, 1fr);

    gap: 20px;

    align-items: start;
}

.lao-lottery-widget {
    width: 100%;
}

.main-content {
    width: 100%;

    min-height: 500px;

    border: 3px solid #ff1010;
    border-radius: 10px;

    background: #fff;

    text-align: center;

    padding: 28px 55px 30px;
}
.title {
    margin: 0;

    font-size: 22px;
    font-weight: 700;

    color: #444;
}

.subtitle {
    margin: 3px 0 0;

    font-size: 16px;
    font-weight: 400;

    color: #555;
}

.broadcast {
    margin-top: 4px;

    font-size: 14px;

    color: #555;
}


.main-label {
    margin: 38px 0 25px;

    font-size: 17px;
    font-weight: 400;

    color: #444;
}

.prize-main {
    width: 260px;
    height: 84px;

    margin: 0 auto;

    border: 3px solid #ff1010;
    border-radius: 10px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #fff;

    color: #333;

    font-size: 57px;
    line-height: 1;
    font-weight: 800;

    text-shadow:
        2px 3px 3px rgba(0, 0, 0, 0.25);
}


.prize-secondary-container {
    display: grid;

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

    gap: 38px;

    margin-top: 78px;
}

.prize-secondary-item {
    min-width: 0;
}

.label-text {
    display: block;

    margin-bottom: 13px;

    font-size: 15px;

    color: #444;
}

.number-box {
    width: 100%;
    height: 62px;

    border: 3px solid #ff1010;
    border-radius: 10px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #fff;

    font-size: 27px;
    font-weight: 700;

    color: #333;
}

.history-box {
    min-height: 280px;

    border: 3px solid #ff1010;
    border-radius: 10px;

    padding: 25px 10px 35px;

    background: #fff;
}

.history-title {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-bottom: 45px;

    white-space: nowrap;

    font-size: 20px;

    color: #444;
}

#history-container {
    width: 100%;

    overflow-x: auto;
}

#history-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    font-size: 13px;
}

#history-table th,
#history-table td {
    border: 1px solid #d2d2d2;

    text-align: center;

    padding: 10px 4px;
}

#history-table th {
    height: 98px;

    background: #f3f3f3;

    color: #222;

    font-weight: 700;

    line-height: 1.6;
}

#history-table td {
    color: #444;
}


.bottom-content {
    display: grid;

    grid-template-columns:
        1.55fr
        1fr
        1fr
        1fr;

    gap: 20px;

    margin-top: 30px;

    align-items: stretch;
}

.left-banners {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.left-banners img {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 10px;

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



.info-card {
    min-height: 545px;

    border: 1px solid #e3e3e3;
    border-radius: 10px;

    background: #fff;

    padding: 10px 15px 25px;

    text-align: center;
}

.info-image {
    width: 100%;
    height: 230px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.info-image img {
    max-width: 100%;
    max-height: 210px;

    display: block;

    object-fit: contain;
}

.construction-logo img {
    max-width: 210px;
}

.info-card h3 {
    margin: 8px 0 15px;

    font-size: 17px;
    font-weight: 600;

    color: #555;
}

.info-card p {
    margin: 0;

    font-size: 14px;

    line-height: 2;

    color: #999;
}



.page-bottom {
    width: 100%;
    height: 180px;

    margin-top: 0;

    background: #edf7ff;
}



@media (max-width: 1050px) {

    .logo-area img {
        width: 330px;
    }


    .result-grid {
        grid-template-columns: 1fr;
    }


    .history-box {
        min-height: auto;
    }


    .history-title {
        margin-bottom: 25px;
    }


    .bottom-content {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .left-banners {
        grid-row: span 2;
    }

}


@media (max-width: 768px) {

    .site-header {
        height: auto;
    }

    .header-inner {
        padding: 10px 15px;

        align-items: center;
    }

    .logo-area img {
        width: 250px;
        height: 105px;
    }

    .current-date {
        display: none;
    }

    .header-right {
        justify-content: center;
    }

    .social {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .nav-inner {
        overflow-x: auto;

        padding: 0;
    }

    .nav-inner a {
        flex-shrink: 0;

        padding: 0 18px;

        font-size: 13px;
    }


    .page-container {
        padding: 10px;
    }

    .main-content {
        min-height: auto;

        padding: 22px 15px 25px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
    }

    .broadcast {
        font-size: 13px;
    }

    .main-label {
        margin-top: 30px;
    }

    .prize-main {
        width: 220px;
        height: 72px;

        font-size: 48px;
    }


    .prize-secondary-container {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 22px 15px;

        margin-top: 50px;
    }


    .number-box {
        height: 58px;
    }

    .history-box {
        padding: 20px 10px;
    }

    .history-title {
        font-size: 17px;
    }

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



    .bottom-content {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: auto;
    }

    .info-image {
        height: 200px;
    }


    .page-bottom {
        height: 100px;
    }

}


@media (max-width: 480px) {

    .header-inner {
        display: block;
    }

    .logo-area img {
        width: 230px;

        margin: auto;
    }

    .header-right {
        display: none;
    }


    .prize-secondary-container {
        gap: 18px 10px;
    }

    .label-text {
        font-size: 13px;
    }

    .number-box {
        font-size: 23px;
    }

}