/* 
 * ===== XOSO THEME CSS - PROFESSIONAL VERSION =====
 * Modern lottery website theme with responsive design
 * Version: 2.0.0 | Navigation System: Inline v2.0
 * Last Updated: August 2024
 */

/* Reset và Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand / semantic colors */
    --color-primary: #D32F2F;
    --color-primary-700: #B71C1C;
    --color-primary-50: #FFEBEE;

    /* Region colors — chuẩn màu 3 miền xổ số Việt Nam */
    --region-mb: #C62828;
    /* Đỏ đậm — Miền Bắc */
    --region-mt: #2E7D32;
    /* Xanh lá — Miền Trung */
    --region-mn: #1565C0;
    /* Xanh dương — Miền Nam */

    --color-bg: #F7F7F8;
    --color-surface: #FFFFFF;
    --color-surface-2: #F9FAFB;

    --color-text: #111827;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;

    /* Semantic utility colors */
    --color-footer-bg: #2c3e50;
    --color-success: #28a745;
    --color-info: #17a2b8;
    --color-text-secondary: #495057;
    --color-surface-hover: #f8f9fa;

    /* Type */
    --font-sans: 'Roboto', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* UI */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.08);

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;

}

/* Header Styles */
.site-header {
    background: var(--color-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

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

@media (max-width: 768px) {
    .header-top-content {
        justify-content: space-between;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 15px;
        align-items: center;
    }

    .logo {
        justify-self: start;
    }

    /* Mobile menu toggle moved to navigation.css */
}

.logo-link {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
}

.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input-group {
    display: flex;
    border: 2px solid var(--color-primary);
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--color-primary-700);
}

/* Navigation styles moved to navigation.css */
/* For professional separation of concerns */


/* Main Content */
.main-content {
    padding: var(--space-4) 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-5);
}

.col-left {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    /* Fix overflow issues */
    min-width: 0;
    /* Allow flex/grid child to shrink */
    overflow-x: auto;
    /* Handle horizontal overflow */
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.col-right {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
}

/* Lottery Table Styles */
.lottery-table-wrapper {
    margin-bottom: 30px;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.lottery-table th,
.lottery-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.lottery-table th {
    background: var(--color-surface-2);
    font-weight: 600;
    color: #495057;
}

.prize-row:nth-child(even) {
    background: #f8f9fa;
}

.lottery-number {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    background: var(--color-primary);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.lottery-number:hover {
    background: var(--color-primary-700);
    transform: scale(1.1);
}

/* Lô tô Section */
.loto-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.loto-title {
    margin-bottom: 15px;
    color: #495057;
}

.loto-numbers {
    display: flex;
    gap: 20px;
}

.loto-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loto-number {
    padding: 5px 10px;
    background: #28a745;
    color: white;
    border-radius: 4px;
}

.loto-number.head {
    background: #17a2b8;
}

.loto-number.tail {
    background: #6f42c1;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.digit-controls {
    display: flex;
    gap: 10px;
}

.radio-control {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-copy,
.btn-share {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-copy {
    background: #28a745;
    color: white;
}

.btn-share {
    background: #17a2b8;
    color: white;
}

.btn-copy:hover {
    background: #218838;
}

.btn-share:hover {
    background: #138496;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--color-primary);
}

/* Category Posts Widget */
.category-posts-widget .category-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-posts-widget .post-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.category-posts-widget .post-item:hover {
    background-color: #f8f9fa;
}

.category-posts-widget .post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.category-posts-widget .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-posts-widget .post-item:hover .post-image {
    transform: scale(1.05);
}

.category-posts-widget .post-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 20px;
    text-decoration: none;
}

.category-posts-widget .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-posts-widget .post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.category-posts-widget .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-posts-widget .post-title a:hover {
    color: var(--color-primary);
}

.category-posts-widget .post-meta {
    font-size: 12px;
    color: #6c757d;
}

.category-posts-widget .post-date {
    font-weight: 400;
}

/* Draw Schedule */
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-time {
    font-weight: 600;
    color: var(--color-primary);
}

.schedule-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-waiting {
    background: #fff3cd;
    color: #856404;
}

.status-drawing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* Yesterday Results */
.yesterday-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yesterday-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.yesterday-link:hover {
    background: #e9ecef;
}

.region-name {
    font-weight: 600;
}

.result-preview {
    color: #6c757d;
    font-size: 14px;
}

/* Predictions */
.prediction-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prediction-region {
    font-weight: 600;
    color: var(--color-primary);
}

.prediction-confidence {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.prediction-numbers {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.prediction-number {
    padding: 4px 8px;
    background: var(--color-primary);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.prediction-note {
    color: #6c757d;
    font-style: italic;
}

/* Hot Numbers */
.hot-numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hot-number-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hot-number-item:hover {
    background: var(--color-primary);
    color: white;
}

.hot-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.hot-frequency {
    font-size: 12px;
    color: #6c757d;
}

/* Lottery Tools */
.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.tool-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.tool-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

.tool-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    margin-top: 50px;
}

.footer-main {
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    background: #34495e;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 10px;
}

.legal-links a:hover {
    color: var(--color-primary);
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 2000;
}

.btn-back-to-top {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.85);
    /* neutral, not a red focal point */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;

    /* hidden by default; shown via JS */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.btn-back-to-top i {
    display: none;
}

.btn-back-to-top::before {
    content: '';
    width: 18px;
    height: 18px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Inline SVG arrow-up (white) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 4l-7 7 1.41 1.41L11 7.83V20h2V7.83l4.59 4.58L19 11z'/%3E%3C/svg%3E");
}

.btn-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-back-to-top:focus-visible {
    outline: 3px solid rgba(211, 47, 47, 0.25);
    outline-offset: 3px;
}

.footer-disclaimer {
    background: #e74c3c;
    padding: 15px 0;
    text-align: center;
}

.disclaimer-text {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .header-top-content {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        display: grid;
        grid-template-columns: 1fr auto;
    }





    .footer-content {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Loading States */
.loading-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-stats {
    color: #999;
    font-size: 14px;
    padding: 5px 10px;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

/* Enhanced Result Cards */
.result-card {
    /* background: #fff; */
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    /* padding: 20px; */
    /* Bỏ transition */
    /* border-left: 4px solid transparent; */
    position: relative;
}

.result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.result-card.result-mien-bac {
    border-left-color: #2196F3;
}

.result-card.result-mien-trung {
    border-left-color: #FF9800;
}

.result-card.result-mien-nam {
    border-left-color: #4CAF50;
}

.result-card[class*="result-mien-trung-"] {
    border-left-color: #FF9800;
}

.result-card[class*="result-mien-nam-"] {
    border-left-color: #4CAF50;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.result-title a {
    color: #333;
    text-decoration: none;
}

.result-title a:hover {
    color: var(--color-primary);
}

.result-time {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    gap: 5px;
}

.preview-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.preview-number {
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.result-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.result-status.completed {
    background: #e8f5e8;
    color: #2e7d2e;
}

.result-actions {
    margin-top: 15px;
}

.btn-view-result {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-view-result:hover {
    background: var(--color-primary-700);
}

.result-waiting {
    text-align: center;
    padding: 20px 0;
}

.waiting-indicator img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.waiting-indicator p {
    color: #666;
    margin-bottom: 15px;
}

.countdown {
    color: var(--color-primary);
    font-weight: 600;
}

.countdown-time {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: 18px;
}

/* Enhanced Statistics */
.stat-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.hot-number,
.gan-number,
.cam-number,
.dau-duoi-number {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    min-width: 35px;
    text-align: center;
    cursor: pointer;
    /* Bỏ transition */
}

.hot-number {
    background: #ffeb3b;
    color: #333;
}

.hot-number:hover {
    background: #ffc107;
}

.gan-number {
    background: #ff9800;
    color: white;
}

.gan-number:hover {
    background: #f57c00;
}

.cam-number {
    background: #9c27b0;
    color: white;
}

.cam-number:hover {
    background: #7b1fa2;
}

.dau-duoi-number {
    background: #2196f3;
    color: white;
}

.dau-duoi-number:hover {
    background: #1976d2;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #4caf50;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196f3;
}

.notification-warning {
    background: #ff9800;
}

/* Detailed Results Tables */
.detailed-results {
    margin-top: 30px;
}

.result-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, var(--color-primary), #ff4757);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.result-time {
    font-size: 16px;
    font-weight: 500;
}

/* Lottery Table Styles */
.lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.lottery-table thead {
    background: #f8f9fa;
}

.lottery-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.lottery-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.prize-name {
    background: #f8f9fa;
    font-weight: 600;
    width: 120px;
}

.prize-numbers {
    text-align: center;
}

.lottery-number {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 6px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    cursor: pointer;
    /* Bỏ transition */
}

.lottery-number:hover {
    background: var(--color-primary-700);
    transform: scale(1.05);
}

.lottery-number.highlighted {
    background: #ffc107;
    color: #333;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Prize-specific colors */
.prize-db .lottery-number {
    background: #dc3545;
    font-size: 18px;
    font-weight: 700;
}

.prize-g1 .lottery-number {
    background: #fd7e14;
}

.prize-g2 .lottery-number {
    background: #ffc107;
    color: #333;
}

.prize-g3 .lottery-number {
    background: #20c997;
}

.prize-g4 .lottery-number {
    background: #0dcaf0;
    color: #333;
}

.prize-g5 .lottery-number {
    background: #6f42c1;
}

.prize-g6 .lottery-number {
    background: #6610f2;
}

.prize-g7 .lottery-number {
    background: #d63384;
}

.prize-g8 .lottery-number {
    background: #495057;
}

/* Lô tô section */
.loto-section {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
}

.loto-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.loto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.loto-column {
    text-align: center;
}

.loto-header {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.loto-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.loto-number {
    background: white;
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    min-width: 30px;
    text-align: center;
}

/* Result Footer */
.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 1px solid #dee2e6;
    position: relative;
}

.result-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b, var(--color-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.result-date {
    font-weight: 700;
    font-size: 1.1rem;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-view-all {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-view-all:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Bỏ pseudo-element ::before cho button */

/* Bỏ hiệu ứng hover cho button */

/* Enhanced Result Card */
.result-card {
    /* background: white; */
    /* border-radius: 20px; */
    /* box-shadow: 0 15px 40px rgba(0,0,0,0.1); */
    /* overflow: hidden; */
    /* Bỏ transition */
    /* border: 1px solid #e9ecef; */
    position: relative;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b, var(--color-primary));
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

/* Bỏ hiệu ứng hover cho result-card */

/* Statistics Section */
.statistics-summary {
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    /* Bỏ transition */
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.stat-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.stat-number {
    background: #f8f9fa;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

.stat-number.total {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-700));
    color: white;
    font-size: 1.2rem;
    padding: 12px 20px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Quick Tools Section */
.quick-tools {
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tool-description {
    color: #666;
    line-height: 1.5;
}

/* Latest News Section */
.latest-news {
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-content {
    padding: 25px;
}

.news-title {
    margin-bottom: 15px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.news-category {
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 15px;
    color: #666;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    /* Bỏ transition */
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 28, 37, 0.3);
}

/* Section Link */
.section-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--color-primary-700);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .prize-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .prize-label {
        min-width: auto;
    }

    .loto-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .result-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .region-title {
        font-size: 1rem;
    }

    .result-date {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .btn-view-all {
        font-size: 0.85rem;
        padding: 6px 12px;
        min-width: 90px;
    }



    .stat-card {
        padding: 20px;
    }

    .tool-card {
        padding: 25px 20px;
    }
}

/* Loto Section */
.loto-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.loto-title {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.loto-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Loto tables cho Miền Trung và Miền Nam */
.loto-tables-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.loto-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.loto-table-content th {
    background: #f8f9fa;
    color: #333;
    padding: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.loto-table-content td {
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.loto-table-content tr:hover {
    background: #f8f9fa;
}

.loto-head {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 16px;
}

.loto-tail {
    color: #333;
    font-weight: 500;
}

/* Responsive cho Lô tô */
@media (max-width: 768px) {
    .loto-tables {

        gap: 15px;
    }

    .loto-table-content th,
    .loto-table-content td {
        padding: 5px;
        font-size: 13px;
    }
}

/* Prize Results - Center alignment for Miền Bắc */
.prize-results {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.prize-row {
    display: flex;
    align-items: center;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;

}

.prize-row-mtn {
    align-items: center;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;

}

/* Bỏ hiệu ứng hover cho prize-row */

.prize-row:last-child {
    margin-bottom: 0;
}

button.last-numbers-btn {
    padding: 2px;
}

button.last-numbers-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 6px;
}

/* Radio buttons for result view options */
.last-numbers-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 8px;
}

.last-numbers-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.last-numbers-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.last-numbers-radio span {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-width: 72px;
    text-align: center;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.last-numbers-radio:hover span {
    background: #e9ecef;
    border-color: #adb5bd;
}

.last-numbers-radio input[type="radio"]:checked+span {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.25);
}

.last-numbers-radio input[type="radio"]:focus+span {
    outline: 2px solid rgba(211, 47, 47, 0.25);
    outline-offset: 2px;
}

/* Keep "Xem theo số cuối" in one row on mobile */
@media (max-width: 480px) {
    .last-numbers-options {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: flex-start;
        margin: 3px;
    }

    .last-numbers-radio {
        margin-right: 0;
        flex: 0 0 auto;
    }

    .last-numbers-radio span {
        min-width: 0;
        padding: 5px 8px;
        font-size: 12px;
        white-space: nowrap;
        min-height: 28px;
        border-width: 1px;
    }
}

.prize-label {
    flex: 0 0 140px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 13px;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #dee2e6;
    min-width: 80px;
}

/* Prize Numbers - Cải thiện layout và wrap */
.prize-numbers {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;
    align-content: flex-start;
    padding-left: 20px;
    min-width: 0;
}

/* Số trúng giải - Tối ưu cho wrap */
.number {
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
    /* Không cho phép số bị co lại */
    box-sizing: border-box;
    /* Đảm bảo padding không làm tăng kích thước */
    white-space: nowrap;
    /* Không cho phép text bị wrap */
    overflow: hidden;
    /* Ẩn text bị tràn */
    text-overflow: ellipsis;
    /* Hiển thị ... khi text bị tràn */
}

/* Bỏ pseudo-element ::before cho number */

/* Bỏ hiệu ứng hover cho number */

/* Số đặc biệt */
.special-number {
    background: #C62828;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}


@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Số giải nhất */
.first-number {

    font-size: 20px;
    font-weight: 800;
    position: relative;
}



@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Responsive cho prize results */
@media (max-width: 768px) {
    .prize-row {
        flex-direction: row;
        /* Giữ layout ngang như desktop */
        align-items: flex-start;
        /* Căn từ trên xuống để wrap hoàn hảo */
        gap: 10px;
        padding: 0px;
        margin-bottom: 3px;
    }

    .prize-label {
        flex: 0 0 80px;
        width: 80px;
        font-size: 12px;
        align-self: flex-start;
        margin-top: 2px;
    }

    .prize-numbers {
        flex: 1;
        justify-content: flex-start;
        /* Căn trái để tối ưu không gian */
        gap: 4px;
        /* Giảm gap để fit nhiều số hơn */
        padding-left: 10px;
        min-width: 0;
        /* Cho phép flex item co lại */
        align-content: flex-start;
        /* Căn các dòng từ trên xuống */
    }

    .number {
        min-width: 50px;
        /* Giảm min-width để fit mobile */
        font-size: 13px;
        border-radius: 8px;
        flex-shrink: 0;
        /* Không cho phép số bị co lại */
    }

    .special-number,
    .first-number {
        font-size: 13px;
        min-width: 55px;
        /* Số đặc biệt và giải nhất hơi rộng hơn */
    }

    /* Responsive cho các giải có nhiều số */
    .prize-row:nth-child(3) .prize-numbers,
    /* Giải nhì */
    .prize-row:nth-child(4) .prize-numbers,
    /* Giải ba */
    .prize-row:nth-child(5) .prize-numbers,
    /* Giải tư */
    .prize-row:nth-child(6) .prize-numbers,
    /* Giải năm */
    .prize-row:nth-child(7) .prize-numbers,
    /* Giải sáu */
    .prize-row:nth-child(8) .prize-numbers {
        /* Giải bảy */
        gap: 3px;
        /* Giảm gap hơn nữa cho các giải nhiều số */
    }

    /* Đảm bảo các số wrap xuống dòng đúng cách */
    .prize-numbers {
        flex-wrap: wrap;
        align-content: flex-start;
    }
}

h4.province-loto-title {
    text-align: center;
}


/* Result Header */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    color: white;
    position: relative;
    overflow: hidden;
    gap: 15px;
}



.result-card-mien-bac .result-header {
    background: var(--region-mb);
}

.result-card-mien-trung .result-header {
    background: var(--region-mt);
}

.result-card-mien-nam .result-header {
    background: var(--region-mn);
}

/* Loto table header theo màu miền */
.result-card-mien-bac .loto-tables-2 th {
    background: var(--region-mb);
}

.result-card-mien-trung .loto-tables-2 th {
    background: var(--region-mt);
}

.result-card-mien-nam .loto-tables-2 th {
    background: var(--region-mn);
}

/* Border-left prize-label theo màu miền */
.result-card-mien-bac .prize-label {
    border-left: 3px solid var(--region-mb);
}

.result-card-mien-trung .prize-label {
    border-left: 3px solid var(--region-mt);
}

.result-card-mien-nam .prize-label {
    border-left: 3px solid var(--region-mn);
}

/* btn-view-all màu theo miền */
.result-card-mien-trung .btn-view-all,
.result-card-mien-nam .btn-view-all {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
}

.region-info {
    flex: 1;
    position: relative;
    z-index: 2;
    width: 33%;
}

.region-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.region-schedule {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.result-date {
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.draw-time::before {
    content: '🕒';
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .result-header {
        flex-direction: row;
        text-align: center;
        padding: 10px 15px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .region-title {
        font-size: 1rem;
    }

    .result-date {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .btn-view-all {
        font-size: 0.8rem;
        padding: 5px 10px;
        min-width: 80px;
    }

    .prize-numbers-table {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .province-column {
        padding: 4px;
        gap: 4px;
    }

    .province-name {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .province-column .number {
        min-width: 40px;
        font-size: 0.8rem;
        padding: 2px 4px;
    }



    .last-numbers-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Analysis Section Mobile */
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .analysis-card {
        padding: 20px;
    }

    .analysis-title {
        font-size: 1.2rem;
    }

    .hot-numbers,
    .cold-numbers {
        gap: 8px;
    }

    .hot-number,
    .cold-number {
        min-width: 35px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    /* Guide Section Mobile */
    .guide-list li {
        padding: 12px 0;
        font-size: 0.95rem;
    }

    /* Tips Section Mobile */
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tip-card {
        padding: 20px;
    }

    .tip-title {
        font-size: 1.1rem;
    }

    /* Company Info Mobile */
    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-card {
        padding: 20px;
    }

    .company-name {
        font-size: 1.1rem;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 15px 20px;
        flex-direction: row;
    }

    .faq-question h4 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .faq-answer {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* More aggressive col-left optimization for small screens */
    .col-left {
        padding: 5px;
        margin: 0;
    }

    /* Reduce min-width on very small screens */
    .number {
        min-width: 35px !important;
        /* Override existing min-width */
        font-size: 0.8rem;
        padding: 4px 6px;
    }

    .special-number,
    .first-number {
        min-width: 40px !important;
        /* Slightly larger for important numbers */
        font-size: 1.3rem;
    }

    .days-list li a {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    /* Compact spacing for small screens */
    .xsmb-analysis,
    .xsmb-guide,
    .xsmb-tips,
    .xsmb-prize-structure,
    .xsmb-company-info,
    .xsmb-faq {
        margin: 30px 0;
        padding: 20px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .analysis-card,
    .tip-card,
    .company-card {
        padding: 15px;
    }

    .hot-number,
    .cold-number {
        min-width: 32px;
        padding: 5px 8px;
        font-size: 0.85rem;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question h4 {
        font-size: 0.95rem;
    }

    .faq-toggle {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .days-list li a {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .last-numbers-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .analysis-card,
    .tip-card,
    .company-card {
        padding: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .hot-number,
    .cold-number {
        min-width: 30px;
        padding: 4px 6px;
        font-size: 0.8rem;
    }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.no-results p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== XSMB PRIZE STRUCTURE SECTION ===== */
.xsmb-prize-structure {
    margin: 60px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

/* Prize Structure Tabs */
.prize-tabs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.prize-tab {
    flex: 1;
    padding: 15px 25px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.prize-tab:hover {
    background: #f8f9fa;
    color: #495057;
}

.prize-tab.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.prize-tab:not(:last-child) {
    border-right: 1px solid #e9ecef;
}

.prize-tab.active:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Prize Table Title */
.prize-table-title {
    text-align: center;
    color: #495057;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Prize Table Wrapper with Tab Functionality */
.prize-table-wrapper {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.prize-table-wrapper.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.prize-structure-table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.prize-structure-table th {
    padding: 18px 15px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.prize-structure-table th:last-child {
    border-right: none;
}

.prize-structure-table tbody tr {
    transition: background-color 0.3s ease;
}

.prize-structure-table tbody tr:hover {
    background-color: #f8f9fa;
}

.prize-structure-table tbody tr.alt-row {
    background-color: #f1f3f5;
}

.prize-structure-table tbody tr.special-row {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    font-weight: 700;
}

.prize-structure-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.prize-structure-table td:last-child {
    border-right: none;
}

.prize-structure-table .prize-name {
    font-weight: 600;
    color: #495057;
    text-align: left;
}

.prize-structure-table .prize-value {
    font-weight: 700;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.prize-structure-table .prize-total {
    font-weight: 700;
    color: #007bff;
    font-family: 'Courier New', monospace;
}

.prize-notes {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.prize-notes h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.prize-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prize-notes li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #6c757d;
    line-height: 1.5;
}

.prize-notes li:before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 8px;
}

/* ===== XSMB COMPANY INFO SECTION ===== */
.xsmb-company-info {
    margin: 60px 0;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.company-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.company-name {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-details p {
    margin: 12px 0;
    color: #495057;
    line-height: 1.6;
}

.company-details .address {
    color: #6c757d;
}

.company-details .phone {
    color: #28a745;
    font-weight: 600;
}

.company-details .schedule {
    color: #ffc107;
    font-weight: 600;
}

/* ===== XSMB FAQ SECTION ===== */
.xsmb-faq {
    margin: 60px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    flex: 1;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    display: block;
    border-top: 1px solid #ddd;
    padding: 0 15px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 15px;
}

.faq-answer p {
    margin: 0;
}

/* ===== PRIZE STRUCTURE TABLE RESPONSIVE ===== */
@media (max-width: 768px) {
    .prize-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .prize-structure-table {
        min-width: 650px;
        font-size: 0.85rem;
    }

    .prize-structure-table th,
    .prize-structure-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    .prize-structure-table th:first-child,
    .prize-structure-table td:first-child {
        min-width: 100px;
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
    }

    .prize-structure-table thead th:first-child {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    }

    .prize-notes {
        padding: 20px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .prize-table-wrapper {
        margin: 0 -10px;
        padding: 0 10px;
    }

    .prize-structure-table {
        min-width: 600px;
        font-size: 0.8rem;
    }

    .prize-structure-table th,
    .prize-structure-table td {
        padding: 6px 4px;
    }

    .prize-structure-table th:first-child,
    .prize-structure-table td:first-child {
        min-width: 90px;
    }

    .prize-notes {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .prize-notes h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .prize-notes li {
        padding: 6px 0 6px 20px;
        font-size: 0.85rem;
    }

    /* Prize Tabs Responsive */
    .prize-tabs {
        flex-direction: column;
        max-width: 100%;
        margin: 20px 10px;
    }

    /* Prize Structure Table Mobile Enhancements */
    .prize-table-wrapper {
        overflow-x: auto;
        /* Enable horizontal scroll for wide tables */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        margin: 0 -10px;
        /* Counteract container padding */
        padding: 0 10px;
        /* Restore padding */
    }

    .prize-structure-table {
        min-width: 600px;
        /* Ensure table has minimum width for readability */
        white-space: nowrap;
        /* Prevent text wrapping in cells */
    }

    .prize-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .prize-tab:last-child {
        border-bottom: none;
    }

    .prize-tab.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .prize-tab.active:last-child {
        border-bottom: none;
    }

    .prize-table-title {
        font-size: 1.1rem;
        padding: 12px 15px;
        margin: 15px 10px;
    }
}

/* Day of Week Navigation Tabs */
.day-of-week-nav-tabs {
    display: flex;
    justify-content: space-between;
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.day-tab {
    flex: 1;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 4px;
    border: 1px solid transparent;
}

.day-tab:hover {
    background-color: #e9e9e9;
    color: var(--color-primary);
}

.day-tab.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-700);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

img.logo-image {
    max-width: 150px;
    max-height: 7vh;
}

/* Loto Tables - Miền Trung/Nam (theo tỉnh) */
.loto-tables-2 {
    overflow-x: auto;
    margin-top: 15px;
}

.loto-tables-2 .loto-table {
    min-width: 100%;
}

.loto-tables-2 .loto-table-content {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.loto-tables-2 .loto-table-content th {
    background: var(--color-primary);
    color: white;
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    min-width: 60px;
}

.loto-tables-2 .loto-table-content td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 500;
    vertical-align: middle;
}

.loto-tables-2 .loto-table-content td.loto-head {
    background: #f8f9fa;
    font-weight: 700;
    color: var(--color-primary);
    width: 40px;
}

/* Responsive cho bảng lô tô miền Trung/Nam */
@media (max-width: 768px) {
    .loto-tables-2 {
        font-size: 11px;
    }

    .loto-tables-2 .loto-table-content th,
    .loto-tables-2 .loto-table-content td {
        padding: 4px 2px;
        font-size: 11px;
        min-width: 45px;
    }

    .loto-tables-2 .loto-table-content td.loto-head {
        width: 30px;
    }
}

/* Styling cho số lô tô */
.loto-tables-2 .loto-table-content td:not(.loto-head) {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Bảng kết quả miền Trung/Nam theo cột tỉnh - Cải thiện giao diện */
.results-table-mt-mn {
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Buttons xem số cuối cho MT/MN */
.results-table-mt-mn .last-numbers-section {
    margin-top: 15px;
    padding: 0 20px;
}

.results-table-mt-mn .last-numbers-options {

    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.results-table-mt-mn .last-numbers-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    text-align: center;
}

.results-table-mt-mn .last-numbers-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.results-table-mt-mn .last-numbers-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
    border-color: var(--color-primary-700);
    box-shadow: 0 2px 4px rgba(237, 28, 37, 0.3);
}

.results-table-mt-mn .last-numbers-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 8px;
}

.results-table-mt-mn .last-numbers-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.results-table-mt-mn .last-numbers-radio span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    text-align: center;
}

.results-table-mt-mn .last-numbers-radio:hover span {
    background: #e9ecef;
    border-color: #adb5bd;
}

.results-table-mt-mn .last-numbers-radio input[type="radio"]:checked+span {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
    border-color: var(--color-primary-700);
    box-shadow: 0 2px 4px rgba(237, 28, 37, 0.3);
}

.results-table-mt-mn .last-numbers-radio input[type="radio"]:focus+span {
    outline: 2px solid rgba(211, 47, 47, 0.25);
    outline-offset: 2px;
}

.results-table-mt-mn .table-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
    padding: 18px 24px;
    text-align: center;
    border-bottom: 2px solid var(--color-primary-700);
}

.results-table-mt-mn .table-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.results-table-mt-mn .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.lottery-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lottery-results-table th {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 2;
    vertical-align: middle;
}

.lottery-results-table th:last-child {
    border-right: none;
}

.lottery-results-table th.prize-column {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
    width: 50px;
    min-width: 50px;
    position: sticky;
    left: 0;
    z-index: 3;
    border-right: 2px solid var(--color-primary-700);
    font-size: 16px;
    font-weight: 800;
    padding: 10px 6px;
}

.lottery-results-table th.province-column {
    min-width: 120px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    padding: 10px 6px;
}

.lottery-results-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
    border-right: 1px solid #f1f3f4;
    vertical-align: middle;
    background: #fff;
    transition: background-color 0.2s ease;
    height: 45px;
}

.lottery-results-table td:last-child {
    border-right: none;
}

.lottery-results-table tr:nth-child(even) td {
    background: #fafbfc;
}

.lottery-results-table tr:hover td {
    background: #f8f9fa;
}

.lottery-results-table td.prize-label {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    font-weight: 800;
    color: var(--color-primary);
    width: 50px;
    min-width: 50px;
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 2px solid #dee2e6;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 8px 4px;
}

.lottery-results-table td.prize-label .special-prize {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(237, 28, 37, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lottery-results-table td.province-numbers {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 600;
    line-height: 1.2;
    min-width: 120px;
    padding: 2px;
    vertical-align: middle;
}

.lottery-results-table .numbers-container {

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 35px;
}

.lottery-results-table .number-break {
    margin: 2px 0;
    height: 0;
    border: none;
}

.lottery-results-table .lottery-number {
    display: inline-block;
    padding: 4px 8px;
    margin: 1px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    color: #495057;
    min-width: 40px;
    text-align: center;
    line-height: 1.2;
}

.lottery-results-table .lottery-number:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    color: white;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 8px rgba(237, 28, 37, 0.3);
    border-color: var(--color-primary-700);
}

/* Giải đặc biệt trong bảng MT/MN: flat color, chữ trắng, dễ đọc */
.lottery-results-table .lottery-number.special-number {
    background: #C62828;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    border-color: #a01218;
    box-shadow: none;
    padding: 5px 10px;
    letter-spacing: 1px;
}

.lottery-results-table .lottery-number.special-number:hover {
    background: #a01218;
    transform: none;
    box-shadow: none;
}

.lottery-results-table .no-number {
    color: #adb5bd;
    font-style: italic;
    font-size: 16px;
    font-weight: 400;
}

/* Thông tin giờ quay thưởng */
.results-table-mt-mn .draw-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
}

.results-table-mt-mn .draw-times {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.results-table-mt-mn .province-time {
    margin: 0 5px;
    white-space: nowrap;
}

/* Responsive cho bảng miền Trung/Nam - Compact */
@media (max-width: 768px) {
    .results-table-mt-mn .table-header h3 {
        font-size: 16px;
    }

    .lottery-results-table {
        font-size: 12px;

    }

    .lottery-results-table th {
        padding: 8px 6px;
        font-size: 10px;
    }

    .lottery-results-table th.prize-column {
        width: 45px;
        min-width: 45px;
        font-size: 13px;
        padding: 8px 4px;
    }

    .lottery-results-table th.province-column {
        min-width: 100px;
        max-width: 120px;
        font-size: 9px;
        padding: 8px 4px;
    }

    .lottery-results-table td {
        padding: 6px 4px;
        height: 40px;
    }

    .lottery-results-table td.prize-label {
        width: 45px;
        min-width: 45px;
        font-size: 14px;
        padding: 6px 3px;
    }

    .lottery-results-table td.province-numbers {
        min-width: 100px;
        padding: 2x;
    }

    .lottery-results-table .numbers-container {
        gap: 1px;
        min-height: 30px;
    }

    .lottery-results-table .lottery-number {
        font-size: 11px;
        padding: 3px 6px;
        margin: 0.5px;
        min-width: 32px;
    }

    .lottery-results-table .lottery-number.special-number {
        font-size: 12px;
    }

    .results-table-mt-mn .draw-times {
        font-size: 10px;
    }

    .results-table-mt-mn .province-time {
        display: block;
        margin: 1px 0;
    }
}

@media (max-width: 480px) {
    .results-table-mt-mn {
        margin: 15px 0;
        border-radius: 8px;
    }

    .results-table-mt-mn .table-header {
        padding: 14px 16px;
    }

    .results-table-mt-mn .table-header h3 {
        font-size: 16px;
    }

    .lottery-results-table {
        font-size: 12px;

    }

    .lottery-results-table th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .lottery-results-table th.prize-column {
        width: 45px;
        min-width: 45px;
        font-size: 13px;
    }

    .lottery-results-table th.province-column {
        min-width: 95px;
        max-width: 110px;
        font-size: 9px;
        padding: 10px 4px;
    }

    .lottery-results-table td {
        padding: 8px 4px;
    }

    .lottery-results-table td.prize-label {
        width: 45px;
        min-width: 45px;
        font-size: 14px;
    }

    .lottery-results-table td.province-numbers {
        min-width: 95px;
        padding: 2px;
    }

    .lottery-results-table .lottery-number {
        font-size: 11px;
        padding: 3px 5px;
        margin: 1px 0;
        min-width: 30px;
    }

    .lottery-results-table .lottery-number.special-number {
        font-size: 12px;
    }
}

/* Hiệu ứng khi click vào số */
.lottery-number.highlighted {
    background: #ffd700 !important;
    color: #333 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    transition: all 0.3s ease;
    min-width: 24px;
    text-align: center;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #e74c3c;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 24px 30px;
}

.faq-answer p {
    margin: 0 0 16px 0;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.faq-answer ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.faq-answer strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-container {
        padding: 0 15px;
    }

    .faq-question {
        padding: 20px 20px;
    }

    .faq-question h3 {
        font-size: 16px;
        padding-right: 15px;
    }

    .faq-toggle {
        font-size: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px 20px;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-container {
        padding: 0 10px;
    }

    .faq-question {
        padding: 18px 15px;
    }

    .faq-question h3 {
        font-size: 15px;
        padding-right: 10px;
    }

    .faq-toggle {
        font-size: 18px;
    }

    .faq-item.active .faq-answer {
        padding: 18px 15px;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 14px;
    }

    .faq-answer ul {
        padding-left: 15px;
    }
}

/* Multi-Province Lottery Results Table */
.prize-results.multi-province {
    margin-top: 20px;
}

.province-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.province-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.prize-row-multi {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prize-row-multi .prize-label {
    background: #f8f9fa;
    padding: 12px 20px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e1e5e9;
    font-size: 16px;
}

.prize-numbers-multi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}



.province-numbers:last-child {
    border-right: none;
}

.province-numbers:hover {
    background: #f8f9fa;
}

.province-name {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.province-numbers .number {
    display: inline-block;
    padding: 5px;

    color: rgb(0, 0, 0);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
}

.province-numbers .number:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.province-numbers .special-number {
    font-size: 25px;
    padding: 6px 12px;
    min-width: 50px;
    background: #C62828;
    color: #fff;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 1px;
}



.province-numbers .no-data {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Responsive Multi-Province Table */
@media (max-width: 1200px) {
    .prize-numbers-multi {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .prize-numbers-multi {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }



    .province-name {
        font-size: 13px;
    }

    .province-numbers .number {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }

    .province-numbers .special-number {
        padding: 6px 10px;
        font-size: 16px;
        min-width: 40px;
        background: #C62828;
        color: #fff;
    }
}

.province-numbers {
    border-right: none;
    border-bottom: 1px solid #e1e5e9;
    padding: 2px;
    text-align: center;

}

@media (max-width: 768px) {
    .prize-numbers-multi {
        grid-template-columns: 1fr;
    }

    .province-numbers {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
        padding: 2px;
        text-align: center;

    }

    .province-numbers:last-child {
        border-bottom: 1px solid #e1e5e9;

    }

    .province-header {
        padding: 12px 15px;
    }

    .province-title {
        font-size: 16px;
    }

    .prize-row-multi .prize-label {
        padding: 10px 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .province-header {
        padding: 10px 12px;
    }

    .province-title {
        font-size: 15px;
    }

    .prize-row-multi .prize-label {
        padding: 8px 12px;
        font-size: 14px;
    }



    .province-name {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .province-numbers .number {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 30px;
        margin: 1px;
    }

    .province-numbers .special-number {
        background: #C62828;
        color: #fff;
        padding: 4px 8px;
        font-size: 15px;
        min-width: 36px;
    }
}

/* Enhanced Prize Row Styling */
.prize-row-multi.prize-special {
    border-color: #ff6b6b;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.prize-row-multi.prize-special .prize-label {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-bottom-color: #ff6b6b;
}

/* Animation for numbers */
.province-numbers .number {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.prize-results.multi-province.loading {
    opacity: 0.7;
    pointer-events: none;
}

.prize-results.multi-province.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Styles for Optimized News Widget */
.news-item-optimized {
    display: flex !important;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.news-image-optimized {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.news-thumbnail-optimized {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content-optimized {
    flex-grow: 1;
}

.news-title-optimized {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.news-title-optimized a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title-optimized a:hover {
    color: var(--color-primary);
}