* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Lao', BoonHome, sans-serif;
}

body {
    background-color: #f4f5f7;
    color: #333333;
    line-height: 1.5;
}


.top-red-bar {
    background-color: #c81919;
    color: #ffffff;
    font-size: 11px;
    padding: 6px 0;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar-flex {
    display: flex;
    justify-content: flex-end;
}

.top-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
}

.top-links a:hover {
    text-decoration: underline;
}

.main-header {
    background-color: #ffffff;
    border-bottom: 3px solid #c81919;
    padding: 10px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.site-logo {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.nav-item:hover {
    color: #c81919;
}


.page-wrapper {
    max-width: 1100px;
    margin: 15px auto;
    padding: 0 15px;
}

.banner-section {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.main-banner-img {
    width: 100%;
    height: auto;
    display: block;
}


.main-grid {
    display: flex;
    gap: 20px;
}

.left-sidebar {
    width: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-content {
    flex: 1;
}

.ad-poster-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    display: block;
}

.custom-container {
    width: 100%;
    border: 1px solid #791B1B;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.custom-header {
    background: linear-gradient(to bottom, #791B1B, #9b2424, #791B1B);
    color: #ffffff;
    padding: 12px;
    text-align: center;
}

.custom-numbers {
    display: flex;
    padding: 20px 10px 5px;
    justify-content: center;
    gap: 10px;
}

.custom-numbers div {
    background-color: #ffffff;
    border-radius: 6px;
    width: 55px;
    height: 70px;
    border: 1px solid #333333;
    font-weight: 800;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

h3#current-date-display {
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    color: #333333;
    margin: 10px 0 15px;
}

.custom-table {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 15px;
    width: 85%;
    table-layout: fixed;
}

.custom-table td {
    border: 1px solid #333333;
    padding: 8px !important;
    text-align: center;
    width: 50%;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    font-weight: bold;
}

.history-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 10px;
    margin-bottom: 25px;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
}

#data-table th, #data-table td {
    border: 1px solid #333333;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

#data-table th {
    background-color: #791B1B;
    color: #ffffff;
}

#data-table td {
    color: #000000;
    background-color: #ffffff;
}

#data-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}


.main-footer {
    background-color: #e2e8f0;
    color: #64748b;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #cbd5e1;
}


@media (max-width: 850px) {
    .main-grid {
        flex-direction: column;
    }
    .left-sidebar {
        width: 100%;
    }
    .top-bar-flex {
        justify-content: center;
    }
    .top-links a {
        margin: 0 6px;
    }
}