
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    line-height: 1.4;
}

.site-header {
    background-color: #fff;
}
.top-sub-bar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
    font-size: 11px;
    color: #555;
}
.container-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
}
.logo-area {
    padding: 10px 0;
}

.site-logo {
    height: 52px;
    width: auto;
    display: block;
}


.main-nav-red {
    background-color: #d30000;
    padding: 0;
}
.main-nav-red .container-header {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.main-nav-red a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.main-nav-red a:hover, .main-nav-red a.active {
    background-color: #b00000;
}
.btn-highlight-yellow {
    background-color: #ffeb3b;
    color: #000 !important;
}


.wrapper {
    max-width: 1180px;
    margin: 10px auto;
    display: flex;
    gap: 12px;
    padding: 0 10px;
}

.sidebar-left {
    width: 220px;
    flex-shrink: 0;
}
.sidebar-right {
    width: 250px;
    flex-shrink: 0;
}
.main-content {
    flex-grow: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    min-width: 0;
}


.btn-yellow-wide {
    width: 100%;
    background-color: #ffb700;
    color: #000;
    border: 1px solid #e0a000;
    font-weight: bold;
    font-size: 12px;
    padding: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 3px;
}
.province-list {
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
.province-list li {
    padding: 5px 8px;
    font-size: 11px;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}
.province-list a {
    color: #333;
    text-decoration: none;
}
.province-list a:hover {
    color: #d30000;
}
.dots {
    color: #aaa;
}

.small-news-item {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px;
    margin-bottom: 8px;
    font-size: 11px;
}
.news-thumb {
    width: 50px;
    height: 40px;
    object-fit: cover;
}


.red-header-title {
    background-color: #d30000;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 10px;
}


.lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    color: #000;
    margin-bottom: 12px;
}
.lottery-table th, 
.lottery-table td {
    border: 1px solid rgba(168, 168, 168, 0.4);
    padding: 6px;
    text-align: center;
    background-color: #fff;
    font-weight: bold;
}
.lottery-table td {
    width: 90px;
}
.hide-header thead {
    display: none;
}

#resultDB, #resultG7_1, #resultG7_2, #resultG7_3, #resultG7_4,
#resultDNew, #resultG7_1New, #resultG7_2New, #resultG7_3New, #resultG7_4New {
    color: red;
    font-weight: 900;
    font-size: 28px;
}
#resultG1, #resultG1New {
    color: #000;
    font-weight: 800;
    font-size: 24px;
}


.custom-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}
.custom-table {
    width: 49%;
    border-collapse: collapse;
}
.custom-table th, .custom-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    background-color: #fff;
    font-size: 12px;
}
.custom-table th {
    background-color: #d30000;
    color: #fff;
    font-weight: bold;
}
.custom-table td span {
    color: red;
    font-weight: bold;
}

#datePickerNew {
    padding: 8px;
    font-size: 15px;
    border-radius: 3px;
    border: 1px solid rgba(168, 168, 168, 0.4);
    background-color: #f9f9f9;
    color: #333;
    width: 100%;
    margin-bottom: 10px;
}


.loading, .loading-new {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top: 2px solid red;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.banner-card {
    margin-bottom: 12px;
}
.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.bottom-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 11px;
}
.bottom-grid-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
    background-color: #fff;
}


.widget-card {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}
.widget-header-light {
    background-color: #f0f0f0;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 8px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}
.widget-link-list {
    list-style: none;
    padding: 5px 8px;
}
.widget-link-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    font-size: 11px;
}
.widget-link-list a {
    color: #333;
    text-decoration: none;
}
.widget-link-list a:hover {
    color: #d30000;
}


.site-footer {
    background-color: #fff;
    border-top: 1px solid #ccc;
    padding: 12px 0;
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 20px;
}
.tag-list {
    font-size: 10px;
    color: #888;
    margin-top: 5px;
}


@media (max-width: 900px) {
    .wrapper { flex-direction: column; }
    .sidebar-left, .sidebar-right { width: 100%; }
}