/*
Theme Name: Rongbachkim
Theme URI: https://rongbachkim.net/
Author: RBK
Author URI: https://rongbachkim.net/
Description: Theme convert from HTML for Rongbachkim.net with lottery data scraping.
Version: 1.0.0
Text Domain: rongbachkim
*/

/* ============================================
   RBK - Rongbachkim Lottery Results
   Main Stylesheet
   ============================================ */

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    color: #333;
    background-color: #e8e8e8;
    line-height: 1.5;
}

a {
    color: #006674;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #004d57;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    padding: 8px 0;
    border-bottom: 2px solid #004d57;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.header-right {
    color: #fff;
    font-size: 12px;
}

.header-right a {
    color: #ffcc00;
    font-weight: 600;
}

.header-right .fa-caret-down {
    margin-left: 3px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
    padding: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    border-right: 1px solid #ddd;
    transition: background-color 0.2s;
}

.main-nav ul li a:hover,
.main-nav ul li.active a,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a,
.main-nav ul li.current-menu-ancestor a {
    background-color: #006674;
    color: #fff !important;
    text-decoration: none;
}

/* ============================================
   Main Container
   ============================================ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

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

/* ============================================
   Page Title
   ============================================ */
.page-title h1 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.page-title .date-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.live-notice {
    border: 1px dashed #ff0000;
    padding: 6px 10px;
    font-size: 12px;
    color: #ff0000;
    margin-bottom: 12px;
    background: #fff9f9;
}

/* ============================================
   Lottery Results Table
   ============================================ */
.result-section {
    margin-bottom: 15px;
}

.result-table-wrapper {
    display: flex;
    gap: 0;
    border: 1px solid #999;
    background: #fff;
}

.result-main-table {
    flex: 1;
}

.result-main-table table {
    width: 100%;
    border-collapse: collapse;
}

.result-main-table table caption,
.result-table-header {
    caption-side: top;
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
    text-align: center;
}

.result-main-table table th {
    background: #f0f4f7;
    color: #333;
    font-weight: 600;
    border: 1px solid #bbb;
    padding: 4px 8px;
    font-size: 12px;
    text-align: center;
    width: 50px;
}

.result-main-table table td {
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.result-main-table table td.prize-label {
    background: #f5f5f5;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    width: 40px;
    padding: 4px;
}

.prize-db {
    color: #ff0000 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

/* Specific Date Filter Bar */
.result-filter-bar {
    background: #006674;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.result-filter-bar label {
    font-weight: 600;
    font-size: 12px;
    margin-right: 5px;
}

.result-filter-bar .form-select-sm,
.result-filter-bar .form-control-sm {
    font-size: 12px;
    padding: 2px 5px;
}

.result-filter-bar .form-check-label {
    font-size: 12px;
    font-weight: normal;
}

/* Only DB View Mode */
.result-table-wrapper.only-db .result-main-table tr:not(:first-child) {
    display: none;
}

.result-table-wrapper.only-db .dau-duoi-section {
    display: none;
}

/* Đầu Đuôi tables */
.dau-duoi-wrapper {
    display: flex;
    flex-direction: column;
}

.dau-table,
.duoi-table {
    width: 100%;
}

.dau-table table,
.duoi-table table {
    width: 100%;
    border-collapse: collapse;
}

/* Đầu - Orange theme */
.dau-col .table-title {
    background: #f0ad4e;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 8px;
    text-align: center;
}

.dau-col table th {
    background: #fff3cd;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #ddc68b;
    padding: 3px 5px;
    text-align: center;
    width: 30px;
    color: #333;
}

.dau-col table td {
    border: 1px solid #ddc68b;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    background: #fff;
}

/* Đuôi - Pink/Magenta theme */
.duoi-col .table-title {
    background: #d98fc7;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 8px;
    text-align: center;
}

.duoi-col table th {
    background: #f8e0f0;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #d4a5c7;
    padding: 3px 5px;
    text-align: center;
    width: 30px;
    color: #333;
}

.duoi-col table td {
    border: 1px solid #d4a5c7;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    background: #fff;
}

.dau-duoi-section {
    display: flex;
    border-left: 1px solid #999;
    min-width: 300px;
}

.dau-duoi-section .dau-col,
.dau-duoi-section .duoi-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dau-duoi-section .dau-col {
    border-right: 1px solid #999;
}

.dau-duoi-section .dau-col table,
.dau-duoi-section .duoi-col table {
    width: 100%;
    border-collapse: collapse;
    flex: 1;
}

.dau-duoi-section .dau-col table td,
.dau-duoi-section .dau-col table th,
.dau-duoi-section .duoi-col table td,
.dau-duoi-section .duoi-col table th {
    border: 1px solid #ccc;
    padding: 3px 5px;
    font-size: 12px;
    vertical-align: middle;
}

/* ============================================
   Bảng Vàng Lotto Section
   ============================================ */
.lotto-section {
    margin-bottom: 15px;
}

.lotto-header {
    font-size: 13px;
    color: #006674;
    margin-bottom: 5px;
    cursor: pointer;
}

.lotto-header .fa {
    margin-right: 5px;
}

.thongke-header {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
    margin-bottom: 0;
}

.lotto-gan-section,
.lotto-frequency-section {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
}

.lotto-gan-section h3,
.lotto-frequency-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.lotto-gan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.lotto-gan-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 2px 4px;
}

.lotto-gan-item .number {
    color: #ff0000;
    font-weight: 700;
    margin-right: 3px;
    min-width: 20px;
}

.lotto-gan-item .days {
    color: #666;
    font-size: 11px;
}

.lotto-freq-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.lotto-freq-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 2px 4px;
}

.lotto-freq-item .number {
    color: #006674;
    font-weight: 700;
    margin-right: 3px;
}

.lotto-freq-item .count {
    color: #666;
    font-size: 11px;
}

/* Lotto Cặp Dẫn Đầu */
.lotto-cap-section {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
}

.lotto-cap-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lotto-cap-section ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 12px;
}

.lotto-cap-section ul li {
    margin-bottom: 4px;
}

.lotto-cap-section .highlight-num {
    color: #ff0000;
    font-weight: 700;
}

.lotto-cap-section a {
    color: #006674;
}

.note-text {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

/* Các cặp lô tô lớn cùng gan */
.loto-lon-section {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
}

.loto-lon-section h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gan-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    height: 120px;
}

.gan-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gan-bar {
    width: 40px;
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    border-radius: 3px 3px 0 0;
    position: relative;
}

.gan-bar-label {
    font-size: 11px;
    color: #666;
    position: absolute;
    top: -18px;
    width: 100%;
    text-align: center;
}

.gan-bar-number {
    background: #006674;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 4px;
    width: 40px;
    border-radius: 0 0 3px 3px;
}

/* ============================================
   Đặc biệt lâu chưa ra
   ============================================ */
.dacbiet-section {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
}

.dacbiet-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dacbiet-table {
    width: 100%;
    border-collapse: collapse;
}

.dacbiet-table td {
    border: 1px solid #ccc;
    padding: 3px 5px;
    font-size: 12px;
}

.dacbiet-table td.db-num {
    font-weight: 700;
    color: #ff0000;
    text-align: center;
    width: 28px;
    background: #f8f8f8;
}

.dacbiet-table td.db-days {
    color: #333;
    font-size: 11px;
    white-space: nowrap;
}

/* Color coding for rows */
.dacbiet-table tr:nth-child(1) td.db-num {
    background: #ffe0e0;
}

.dacbiet-table tr:nth-child(2) td.db-num {
    background: #fff0d0;
}

.dacbiet-table tr:nth-child(3) td.db-num {
    background: #e0ffe0;
}

.dacbiet-table tr:nth-child(4) td.db-num {
    background: #e0e0ff;
}

.dacbiet-table tr:nth-child(5) td.db-num {
    background: #ffe0ff;
}

/* ============================================
   Thống kê gan đặc biệt (Bar Charts)
   ============================================ */
.thongke-gan-section {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 10px;
}

.thongke-gan-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.gan-chart-container {
    display: flex;
    align-items: flex-end;
    padding: 10px 5px;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.gan-chart-y-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 10px;
    color: #888;
    margin-right: 5px;
    align-self: flex-start;
}

.gan-chart-bars {
    display: flex;
    gap: 4px;
    flex: 1;
    align-items: flex-end;
}

.gan-chart-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bar-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar-wrapper.bar-sm {
    height: 100px;
}

.bar {
    width: 80%;
    max-width: 45px;
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    position: relative;
    min-height: 3px;
    border-radius: 2px 2px 0 0;
}

.bar.bar-pink {
    background: linear-gradient(180deg, #e9a0d4 0%, #c76bb0 100%);
}

.bar.bar-zero {
    background: #ddd;
}

.bar-val {
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.bar-label {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-top: 4px;
    text-align: center;
}

.thongke-note {
    font-size: 12px;
    color: #555;
    padding: 8px 0;
    line-height: 1.5;
}

.thongke-note .highlight-num {
    color: #006674;
    font-weight: 700;
}

/* ============================================
   News / Discussion Section
   ============================================ */
.news-section {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.news-header {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 12px;
    text-align: center;
}

.news-notice {
    font-size: 12px;
    color: #ff0000;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    background: #fffbe6;
}

.news-notice a {
    color: #006674;
    font-weight: 600;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li strong {
    color: #006674;
    font-weight: 700;
}

.news-real li {
    display: flex;
    align-items: center;
}

.news-real li i {
    color: #ff0000;
    margin-right: 8px;
    font-size: 14px;
}

.news-real li a {
    color: #006674;
    text-decoration: none;
    font-weight: 600;
}

.news-real li a:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* ============================================
   News List Page
   ============================================ */
.breadcrumb {
    background: #fdfdfd;
    padding: 10px 15px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #006674;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: 600;
}

.news-list-page {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
}

.news-list-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff0000;
}

.news-list-header h2 {
    font-size: 18px;
    color: #006674;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-thumb {
    width: 150px;
    min-width: 150px;
    margin-right: 15px;
}

.news-thumb img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-thumb img:hover {
    opacity: 0.8;
}

.news-info {
    flex: 1;
}

.news-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #ff0000;
}

.news-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.news-meta span {
    margin-right: 15px;
}

.news-meta i {
    margin-right: 4px;
}

.news-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

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

.page-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #e9e9e9;
    color: #ff0000;
}

.page-link.active {
    background: #006674;
    color: #fff;
    border-color: #006674;
}

/* ============================================
   News Detail Page
   ============================================ */
.news-detail-page {
    background: #fff;
    border: 1px solid #ccc;
    padding: 25px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 22px;
    color: #006674;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.4;
}

.article-meta {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    font-size: 12px;
    color: #777;
}

.article-meta span {
    display: inline-block;
    margin-right: 15px;
}

.article-meta i {
    margin-right: 5px;
}

.article-sapo {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.article-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h3 {
    font-size: 16px;
    color: #ff0000;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.article-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.article-content ul li {
    margin-bottom: 8px;
}

.article-image {
    text-align: center;
    margin: 25px 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eaeaea;
    padding: 3px;
    border-radius: 4px;
}

.image-caption {
    font-style: italic;
    color: #666;
    font-size: 12px;
    margin-top: 8px !important;
}

.article-note {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 25px;
    font-size: 13.5px;
}

.related-news {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.related-news h3 {
    font-size: 16px;
    color: #006674;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 13.5px;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list i {
    color: #ff0000;
    margin-right: 8px;
    font-size: 12px;
}

.related-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.related-list a:hover {
    color: #ff0000;
}

.related-list span {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #006674;
    color: #fff;
    padding: 20px 0 10px 0;
    margin-top: 20px;
    border-top: 4px solid #ff0000;
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.site-footer .footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.site-footer .footer-info {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer .footer-info p {
    margin: 0;
    color: #e0e6ed;
}

.site-footer .footer-info strong {
    color: #fff;
    font-size: 14px;
}

.site-footer .footer-info a {
    color: #ffcc00;
    text-decoration: none;
}

.site-footer .footer-info a:hover {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #b0c4de;
}

/* ============================================
   Sidebar
   ============================================ */
/* Calendar Widget */
.calendar-widget {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}

.calendar-header {
    display: flex;
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.calendar-header .time-col {
    flex: 1;
    text-align: center;
    padding: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-header .day-col {
    flex: 1;
    text-align: center;
    padding: 6px;
    color: #ffcc00;
}

.calendar-body {
    text-align: center;
    padding: 10px;
}

.calendar-date {
    font-size: 28px;
    font-weight: 800;
    color: #ff0000;
    margin-bottom: 5px;
}

.calendar-date span {
    display: block;
    font-size: 28px;
}

.calendar-info {
    display: flex;
    margin-bottom: 8px;
}

.calendar-info .lunar-date {
    flex: 1;
    border-right: 1px solid #ddd;
    padding: 5px;
}

.calendar-info .lunar-date .label {
    font-size: 11px;
    color: #888;
}

.calendar-info .lunar-date .value {
    font-size: 20px;
    font-weight: 800;
    color: #ff0000;
}

.calendar-info .lunar-date .sub-value {
    font-size: 12px;
    color: #666;
}

.calendar-info .lunar-detail {
    flex: 1;
    padding: 5px;
    font-size: 11px;
    color: #666;
    text-align: left;
    padding-left: 10px;
}

.calendar-info .lunar-detail .label-item {
    color: #ff0000;
    font-weight: 600;
}

.hoang-dao {
    font-size: 11px;
    color: #333;
    padding: 5px 10px;
    text-align: left;
    border-top: 1px solid #eee;
}

.hoang-dao strong {
    color: #ff0000;
}

.hoang-dao a {
    display: block;
    text-align: right;

    color: #006674;
    font-size: 11px;
    margin-top: 3px;
}

/* ============================================
   Cầu Loto Section
   ============================================ */
.cau-loto-section {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    padding: 0;
}

.cau-loto-header {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
    text-align: center;
}

.cau-loto-body {
    padding: 8px;
}

.cau-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.cau-num {
    text-align: center;
    font-weight: 700;
    font-size: 15px;

    color: #006674;
    padding: 4px;
    border: 1px solid #ddd;
    background: #f8f9ff;
}

/* ============================================
   Tìm Cầu Section
   ============================================ */
.tim-cau-section {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    padding: 10px;
}

.tim-cau-section .note-star {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
}

.tim-cau-section .note-star a {
    color: #006674;
}

.tim-cau-title {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.tim-cau-desc {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.tim-cau-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tim-cau-form label {
    font-size: 13px;
    font-weight: 600;
    color: #ff0000;
}

.tim-cau-form input[type="text"] {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.tim-cau-form button {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    border: 1px solid #006674;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tim-cau-form button:hover {
    background: linear-gradient(180deg, #5a7fb7 0%, #2d4a88 100%);
}

.lo-top-links {
    font-size: 12px;
    margin-bottom: 10px;
}

.lo-top-links a {
    color: #006674;
    margin: 0 3px;
}

/* ============================================
   Bảng Lô Top Section
   ============================================ */
.lo-top-section {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}

.lo-top-header {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
    text-align: center;
}

.lo-top-numbers {
    padding: 10px;
    text-align: center;
}

.lo-top-numbers .big-numbers {
    font-size: 24px;
    font-weight: 800;
    color: #ff0000;
    line-height: 1.4;
    letter-spacing: 2px;
}

.lo-top-numbers .view-all {
    font-size: 12px;

    color: #006674;
    margin-top: 5px;
}

/* Bảng Top Description */
.bang-top-desc {
    font-size: 12px;
    color: #555;
    padding: 8px 10px;
    border-top: 1px solid #eee;
}

.bang-top-desc strong {
    color: #333;
}

.ban-note {
    font-size: 11px;
    color: #ff0000;
    font-style: italic;
    margin-top: 5px;
}

.cap-nhat-time {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* Bảng Top Tabs */
.bang-top-tabs {
    display: flex;
    background: #e8edf3;
    border-top: 1px solid #ccc;
}

.bang-top-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-right: 1px solid #ccc;
    color: #333;
    text-transform: uppercase;
}

.bang-top-tabs .tab:last-child {
    border-right: none;
}

.bang-top-tabs .tab.active {
    background: linear-gradient(180deg, #007a8b 0%, #006674 100%);
    color: #fff;
}

.bang-top-tabs .tab:hover:not(.active) {
    background: #d8dfe8;
}

/* Bảng Top Table */
.bang-top-table {
    width: 100%;
    border-collapse: collapse;
}

.bang-top-table th {
    background: #e8edf3;
    font-size: 11px;
    font-weight: 600;
    padding: 5px;
    border: 1px solid #ccc;
    text-align: center;
}

.bang-top-table td {
    padding: 5px 8px;
    border: 1px solid #eee;
    font-size: 12px;
}

.bang-top-table td.rank {
    text-align: center;
    font-weight: 700;
    width: 30px;
}

.bang-top-table td.site-name {
    color: #333;
}

.bang-top-table td.site-name .icon-a {
    color: #ff0000;
    font-weight: 700;
}

.bang-top-table td.site-name .icon-b {
    color: #006674;
}

.bang-top-table td.points {
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* ============================================
   Chuyển bảng kết quả Link
   ============================================ */
.chuyenban-link {
    text-align: right;
    font-size: 11px;
    margin-top: 5px;
}

.chuyenban-link a {
    color: #006674;
}

/* ============================================
   Di chuyển bảng kết quả
   ============================================ */
.move-result-link {
    text-align: right;
    font-size: 12px;

    color: #006674;
    padding: 5px 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .result-table-wrapper {
        flex-direction: column;
    }

    .dau-duoi-section {
        min-width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    /* Mobile Menu styles */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        transition: 0.3s;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .container {
        padding: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px 20px;
        font-size: 14px;
        color: #333 !important;
    }

    .main-nav ul li a:hover,
    .main-nav ul li.active a {
        background: #f5f5f5;
        color: #006674 !important;
    }

    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    .lotto-gan-grid,
    .lotto-freq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fixed table and chart overflow on mobile */
    .dacbiet-section,
    .thongke-gan-section {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 10px;
    }

    .dacbiet-table,
    .gan-chart-container {
        min-width: 500px;
    }

    body.menu-open {
        overflow: hidden;
    }

}

/* ============================================
   Banner Quảng Cáo
   ============================================ */
.rbk-banner {
    text-align: center;
    overflow: hidden;
}

.rbk-banner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.rbk-banner a {
    display: inline-block;
}

.rbk-banner iframe {
    max-width: 100%;
}

/* ============================================
   Page Content Section (Read More)
   ============================================ */
.page-content-section {
    background: #fff;
    border: 1px solid #ccc;
    overflow: hidden;
}

.page-content-wrapper {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
    padding: 12px 15px 0;
}

.page-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-content-wrapper.expanded {
    max-height: none;
}

.page-content-wrapper.expanded::after {
    opacity: 0;
}

.page-content-inner {
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

.page-content-inner h2,
.page-content-inner h3,
.page-content-inner h4 {
    color: #006674;
    margin: 12px 0 6px;
}

.page-content-inner h2 {
    font-size: 16px;
}

.page-content-inner h3 {
    font-size: 14px;
}

.page-content-inner p {
    margin-bottom: 8px;
}

.page-content-inner ul,
.page-content-inner ol {
    padding-left: 20px;
    margin-bottom: 8px;
}

.page-content-inner a {
    color: #006674;
}

.page-content-toggle {
    text-align: center;
    padding: 8px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.page-content-toggle button {
    background: none;
    border: 1px solid #006674;
    color: #006674;
    padding: 5px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.page-content-toggle button:hover {
    background: #006674;
    color: #fff;
}

.page-content-toggle button i {
    transition: transform 0.3s ease;
    margin-right: 4px;
}

.page-content-toggle button.expanded i {
    transform: rotate(180deg);
}