@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Lao', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.navbar {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    border-bottom: 1px solid #e5e7eb;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b7908;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    margin-left: 15px;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.nav-menu a.active {
    background-color: #A7940B;
    color: #ffffff;
}

.top-banner {
    width: 100%;
    max-width: 1100px;
    margin: 10px auto;
    padding: 0 10px;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.main-container {
    display: flex;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 10px;
    gap: 20px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.news-card img, .ad-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.news-card p {
    font-size: 0.8rem;
    margin-top: 6px;
    color: #334155;
    line-height: 1.3;
}

.content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-divider {
    text-align: center;
    border-bottom: 2px dashed #A7940B;
    line-height: 0.1em;
    margin: 10px 0 15px;
}

.section-divider span {
    background: #f8f9fa;
    padding: 0 15px;
    color: #A7940B;
    font-weight: bold;
    font-size: 1.1rem;
}

/* สไตล์การ์ดผลหลัก */
.custom-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding-bottom: 15px;
    overflow: hidden;
}

.custom-header {
    background: linear-gradient(to bottom, #A7940B, #8C7C09);
    color: #fff;
    padding: 10px;
    text-align: center;
}

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

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

h3 {
    font-size: 0.95rem;
    text-align: center;
    color: #444;
    margin-bottom: 12px;
}

.custom-table {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.95rem;
    width: 90%;
}

.custom-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    width: 50%;
    background-color: #ffffff;
}

#custom-table-container table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

#custom-table-container th, 
#custom-table-container td {
    border: 1px solid #ccc;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.85rem;
}

#custom-table-container th {
    background-color: #A7940B;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 5px;
}

.pagination button {
    border: 1px solid #ccc;
    padding: 4px 10px;
    cursor: pointer;
    background-color: #fff;
    font-size: 0.85rem;
}

.pagination button.active {
    background-color: #A7940B;
    color: #fff;
    border-color: #A7940B;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column-reverse;
    }
    .sidebar {
        width: 100%;
    }
    .nav-menu {
        display: none;
    }
}