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

body {
    background-color: #f1f3f6;
    color: #333;
    line-height: 1.5;
}


.top-header {
    background: linear-gradient(to bottom, #38003C, #4d0e51);
    color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.site-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}


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

/* Banner Slideshow */
.banner-slideshow {
    margin-bottom: 20px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.fade {
    animation: fadeAnim 1.5s ease-in-out;
}

@keyframes fadeAnim {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Main Grid Layout */
.main-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.left-content {
    flex: 1;
    max-width: 680px;
}

.right-sidebar {
    width: 380px;
    flex-shrink: 0;
}

/* Custom Live Container */
.custom-container {
    width: 100%;
    border: 1px solid #38003C;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.custom-header {
    background: linear-gradient(to bottom, #38003C, #4d0e51, #38003C);
    color: #ffffff;
    padding: 12px;
    text-align: center;
}

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

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

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

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

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

/* News Thumbnails Row */
.news-thumbnails {
    display: flex;
    gap: 12px;
}

.thumb-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 11px;
}

.thumb-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.thumb-card p {
    margin-top: 6px;
    color: #333;
}

/* Right Sidebar Box */
.sidebar-container {
    text-align: center;
    border: 1px solid #38003C;
    border-radius: 10px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-title {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #38003C;
    font-weight: bold;
}

.custom-subtitle {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 12px;
}

.input-box {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    outline: none;
}

.button {
    background: linear-gradient(to bottom, #38003C, #4d0e51, #38003C);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-bottom: 15px;
}

.button:hover {
    opacity: 0.9;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.item span {
    font-size: 11px;
    color: #333;
    text-align: left;
}

.blinking-dots {
    display: flex;
    margin-left: 8px;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #38003C;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.dot.active {
    opacity: 1;
}

/* History Section */
.history-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
}

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

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

#data-table th {
    background: linear-gradient(to bottom, #38003C, #4d0e51, #38003C);
    color: #ffffff;
}

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

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


.main-footer {
    background-color: #38003C;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 12px;
}

@media (max-width: 850px) {
    .main-grid {
        flex-direction: column;
    }
    .left-content, .right-sidebar {
        width: 100%;
        max-width: 100%;
    }
}