
* {
    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;
}
.header-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 10px;
}
.logo-box {
    display: flex;
    align-items: center;
}

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

.main-nav-red {
    background-color: #a80000;
    padding: 0;
}
.nav-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.main-nav-red a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 10px;
    display: inline-block;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.main-nav-red a.active, .main-nav-red a:hover {
    background-color: #d90000;
}

.sub-links-bar {
    max-width: 1150px;
    margin: 8px auto 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
}
.sub-links-bar a {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 15px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


.wrapper {
    max-width: 1150px;
    margin: 12px auto;
    display: flex;
    gap: 15px;
    padding: 0 10px;
}
.main-content {
    flex-grow: 1;
    background: #fff;
    padding: 12px;
    border: 1px solid #ddd;
    min-width: 0;
}
.sidebar-right {
    width: 300px;
    flex-shrink: 0;
}


.yellow-header {
    background-color: #eab308;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 2px;
}


.lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    color: #000;
}
.lottery-table th, 
.lottery-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    background-color: #fff;
    font-weight: bold;
}
.lottery-table td {
    width: 100px;
}
.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: 800;
    font-size: 26px;
}
#resultG1, #resultG1New {
    color: #000;
    font-weight: 800;
    font-size: 22px;
}

.feature-block {
    display: flex;
    margin: 15px 0;
    border: 1px solid #ddd;
    background-color: #111;
}
.feature-banner {
    width: 60%;
}
.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feature-side-links {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-side-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    font-size: 12px;
    border-bottom: 1px solid #222;
}
.feature-side-links a:hover {
    background-color: #222;
    color: #ffcc00;
}


#datePickerNew {
    padding: 8px;
    font-size: 15px;
    border-radius: 3px;
    border: 1px solid #ccc;
    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); }
}


.articles-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.article-col {
    width: 50%;
}
.article-col h2 {
    font-size: 15px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}
.article-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}
.article-links {
    list-style: none;
}
.article-links li {
    font-size: 12px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #eee;
}
.article-links a {
    color: #333;
    text-decoration: none;
}
.article-links a:hover {
    color: #a80000;
}

.widget-card {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}
.widget-title {
    background-color: #eee;
    color: #000;
    font-weight: bold;
    font-size: 13px;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
}
.widget-list {
    list-style: none;
    padding: 5px 10px;
}
.widget-list li {
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #f2f2f2;
}
.widget-list li:last-child {
    border-bottom: none;
}
.widget-list a {
    color: #333;
    text-decoration: none;
}
.widget-list a:hover {
    color: #a80000;
}

/* Footer */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    margin-top: 20px;
}
.footer-container {
    max-width: 1150px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .wrapper { flex-direction: column; }
    .sidebar-right { width: 100%; }
    .articles-grid { flex-direction: column; }
    .article-col { width: 100%; }
    .feature-block { flex-direction: column; }
    .feature-banner, .feature-side-links { width: 100%; }
}