* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans Lao", Arial, sans-serif;
    background: #f3f6fa;
    color: #17243c;
}

img {
    max-width: 100%;
}

.site-header {
    width: 100%;
    background: #ffffff;
    border-top: 4px solid #135cc7;
}

.header-container {
    width: calc(100% - 40px);
    max-width: 1380px;
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 65px;
    height: 65px;
    padding: 5px;
    overflow: hidden;
    border: 2px solid #d3ad4c;
    border-radius: 50%;
    background: #fff;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h1 {
    margin: 0;
    color: #123f83;
    font-size: 25px;
    font-weight: 800;
}

.brand-text span {
    display: block;
    margin-top: 2px;
    color: #ba9137;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.header-status {
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #e1e8f2;
    border-radius: 40px;
    background: #f8faff;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1688dd;
    box-shadow: 0 0 0 5px rgba(22, 136, 221, 0.12);
}

.header-status small {
    display: block;
    color: #8a96a8;
    font-size: 10px;
}

.header-status strong {
    display: block;
    color: #123f83;
    font-size: 13px;
}

.main-nav {
    width: 100%;
    background: #102c59;
    box-shadow: 0 4px 15px rgba(16, 44, 89, 0.15);
}

.nav-container {
    width: calc(100% - 40px);
    max-width: 1380px;
    min-height: 55px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-container a {
    min-height: 55px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #dce7f7;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.nav-container a:hover,
.nav-container a.active {
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: #d8ae4a;
    color: #ffffff;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #102c59 0%, #1459a7 60%, #188fd3 100%);
}

.hero-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.shape-one {
    width: 500px;
    height: 500px;
    top: -330px;
    left: -100px;
}

.shape-two {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -320px;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1380px;
    min-height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    color: #e8c76e;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.25;
    font-weight: 800;
}

.hero-content h2 span {
    color: #e4bf5d;
}

.hero-content > p {
    margin: 10px 0 25px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

.hero-meta {
    display: flex;
    gap: 12px;
}

.hero-meta > div {
    min-width: 175px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.meta-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #e8c76e;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.hero-meta small {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
}

.hero-meta strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 12px;
}

.hero-visual {
    padding-right: 45px;
}

.asean-circle {
    width: 210px;
    height: 210px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.asean-circle-inner {
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 188, 91, 0.6);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.asean-circle-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-container {
    width: calc(100% - 30px);
    max-width: 1380px;
    margin: 0 auto;
    padding: 35px 0 60px;
}

.result-section {
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(22, 54, 105, 0.08);
}

.result-top {
    min-height: 85px;
    padding: 17px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e9f0;
}

.result-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-mark {
    width: 5px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(#1679ce, #d1a846);
}

.result-title small,
.section-header small {
    display: block;
    margin-bottom: 2px;
    color: #bd933a;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.result-title h2 {
    margin: 0;
    color: #172d4e;
    font-size: 20px;
}

.current-date {
    padding: 8px 14px;
    border-radius: 30px;
    background: #f2f6fc;
    color: #718097;
    font-size: 11px;
}

.result-main {
    padding: 30px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 25px;
}

.jackpot-box {
    min-height: 330px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(28, 122, 205, 0.09), transparent 45%),
        #f8faff;
}

.jackpot-top {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #718198;
    font-size: 10px;
}

.live-circle {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1688dd;
    box-shadow: 0 0 0 4px rgba(22, 136, 221, 0.12);
}

.jackpot-label {
    margin-bottom: 9px;
    color: #52637d;
    font-size: 14px;
    font-weight: 600;
}

.jackpot-number {
    width: 355px;
    max-width: 100%;
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #176bc0;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
        0 10px 25px rgba(21, 91, 167, 0.11),
        inset 0 -5px 0 #f0f5fb;
    color: #102d56;
    font-family: Arial, sans-serif;
    font-size: 68px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 8px;
}

.jackpot-time {
    margin-top: 14px;
    color: #8a96a7;
    font-size: 11px;
}

.jackpot-time strong {
    color: #c29738;
}

.sub-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sub-result {
    min-height: 155px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    background: #ffffff;
    transition: 0.2s;
}

.sub-result:hover {
    transform: translateY(-2px);
    border-color: #b7cae2;
    box-shadow: 0 8px 22px rgba(27, 65, 119, 0.07);
}

.sub-number-label {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf4fc;
    color: #176bc0;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.sub-info {
    min-width: 0;
}

.sub-info span {
    display: block;
    color: #8793a4;
    font-size: 11px;
}

.sub-info strong {
    display: block;
    margin-top: 5px;
    color: #142e55;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.content-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 25px;
    align-items: start;
}

.left-content {
    min-width: 0;
}

.history-section,
.news-section,
.sidebar {
    overflow: hidden;
    border: 1px solid #e0e6ee;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(25, 53, 96, 0.04);
}

.section-header {
    min-height: 80px;
    padding: 17px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e5eaf1;
}

.section-header > div {
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    color: #172e50;
    font-size: 18px;
}

.section-line {
    width: 100%;
    height: 1px;
    background: #e4e9f0;
}

#history-container {
    width: 100%;
    overflow-x: auto;
}

#history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#history-table th,
#history-table td {
    padding: 15px 8px;
    border-right: 1px solid #e1e7ef;
    border-bottom: 1px solid #e1e7ef;
    text-align: center;
    vertical-align: middle;
}

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

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

#history-table th {
    background: #f5f8fc;
    color: #56667e;
    font-size: 12px;
    font-weight: 700;
}

#history-table td {
    color: #52617a;
    font-family: Arial, "Noto Sans Lao", sans-serif;
    font-size: 13px;
}

#history-table tbody tr:hover {
    background: #f8faff;
}

#history-table th:first-child {
    width: 100px;
}

.news-section {
    margin-top: 25px;
}

.featured-news {
    padding: 20px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.featured-image span {
    position: absolute;
    left: 13px;
    bottom: 13px;
    padding: 5px 10px;
    border-radius: 30px;
    background: #155eaf;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    margin: 0 0 10px;
    color: #203653;
    font-size: 20px;
    line-height: 1.65;
}

.featured-content p {
    margin: 0;
    color: #8a95a5;
    font-size: 12px;
    line-height: 1.9;
}

.news-row {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.news-card {
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
}

.news-card img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
}

.news-card-body {
    padding: 13px;
}

.news-card-body span {
    color: #b38a31;
    font-size: 9px;
    font-weight: 700;
}

.news-card-body h3 {
    margin: 6px 0 0;
    color: #2c3d57;
    font-size: 13px;
    line-height: 1.7;
}

.sidebar {
    padding: 18px;
}

.sidebar-title {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.sidebar-title span {
    width: 4px;
    height: 22px;
    border-radius: 10px;
    background: #176bc0;
}

.sidebar-title h2 {
    margin: 0;
    color: #1c3355;
    font-size: 16px;
}

.side-card {
    padding-bottom: 17px;
    margin-bottom: 17px;
    border-bottom: 1px solid #e3e8ef;
}

.side-card img {
    width: 100%;
    height: 145px;
    display: block;
    object-fit: cover;
    border-radius: 9px;
}

.side-card > div {
    padding: 9px 2px 0;
}

.side-card span {
    color: #bd9236;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
}

.side-card h3 {
    margin: 4px 0 0;
    color: #33455f;
    font-size: 12px;
    line-height: 1.7;
}

.info-box {
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #102e5c, #176fbd);
    color: #ffffff;
}

.info-box > span {
    color: #e1bc5d;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.info-box h3 {
    margin: 7px 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
}

.info-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    line-height: 1.7;
}

.site-footer {
    width: 100%;
    background: #0d2448;
}

.footer-container {
    width: calc(100% - 40px);
    max-width: 1380px;
    min-height: 125px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-logo strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
}

.footer-logo span {
    display: block;
    color: #e1bc5d;
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
}

.footer-container p {
    color: #8192ad;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .result-main {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .sidebar-title,
    .info-box {
        grid-column: 1 / -1;
    }

    .side-card {
        margin: 0;
        padding: 0;
        border: 0;
    }
}

@media (max-width: 700px) {
    .header-container {
        width: calc(100% - 24px);
        min-height: 82px;
    }

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

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text span,
    .header-right {
        display: none;
    }

    .main-nav {
        overflow-x: auto;
    }

    .nav-container {
        width: max-content;
        min-width: 100%;
    }

    .nav-container a {
        flex-shrink: 0;
        padding: 0 18px;
    }

    .hero-container {
        width: calc(100% - 30px);
        min-height: 240px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-visual {
        display: none;
    }

    .hero-meta {
        gap: 7px;
    }

    .hero-meta > div {
        min-width: 0;
        padding: 8px 10px;
    }

    .page-container {
        width: calc(100% - 20px);
        padding-top: 20px;
    }

    .result-top {
        display: block;
        text-align: center;
    }

    .result-title {
        justify-content: center;
    }

    .current-date {
        display: inline-block;
        margin-top: 10px;
    }

    .result-main {
        padding: 15px;
    }

    .jackpot-box {
        min-height: 260px;
        padding: 20px 10px;
    }

    .jackpot-number {
        width: 285px;
        min-height: 95px;
        font-size: 52px;
        letter-spacing: 5px;
    }

    .sub-results {
        gap: 10px;
    }

    .sub-result {
        min-height: 110px;
        padding: 10px;
        gap: 9px;
    }

    .sub-number-label {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 16px;
    }

    .sub-info strong {
        font-size: 21px;
    }

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

    .featured-news {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .featured-image img {
        height: 220px;
    }

    .news-row {
        padding: 0 15px 15px;
    }

    .sidebar {
        display: block;
    }

    .side-card {
        padding-bottom: 17px;
        margin-bottom: 17px;
        border-bottom: 1px solid #e3e8ef;
    }

    .footer-container {
        min-height: 110px;
        display: block;
        padding: 25px 0;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-container p {
        margin-top: 15px;
    }
}

@media (max-width: 450px) {
    .hero-meta > div:nth-child(2) {
        display: none;
    }

    .sub-results {
        grid-template-columns: 1fr 1fr;
    }

    .sub-result {
        display: block;
        text-align: center;
    }

    .sub-number-label {
        margin: 0 auto 7px;
    }

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