/* Hanoi Lottery Styles - Orange Theme */
.hl-container-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Sarabun', 'Prompt', sans-serif;
}

.hl-top-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Main Card */
.hl-main-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
    flex: 3; /* Takes 3/4 space (75%) */
}

.hl-card-header {
    background: linear-gradient(135deg, #F6A52E 0%, #d97706 100%) !important;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.hl-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff !important;
    line-height: 1.4;
    font-weight: 700;
}

.hl-date {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
    opacity: 0.9;
}

.hl-card-body {
    padding: 25px;
}

/* Prize Rows */
.hl-prize-row {
    text-align: center;
    margin-bottom: 25px;
    background: #fff8f0;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #F6A52E;
}

.hl-prize-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.hl-big-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d97706;
    line-height: 1;
    letter-spacing: 2px;
}

.hl-prize-grid-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.hl-prize-item {
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.hl-prize-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Toggle Button */
.hl-toggle-btn-wrap {
    text-align: center;
    margin-top: 15px;
}

.hl-toggle-btn {
    background: transparent;
    border: 1px solid #F6A52E;
    color: #F6A52E;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hl-toggle-btn:hover {
    background: #F6A52E;
    color: #fff;
}

.hl-more-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #d97706;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

#hl-more-prizes {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.hl-prize-row-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.hl-prize-row-small h4 {
    margin: 0;
    font-size: 1rem;
    color: #d97706;
}

/* Sidebar Search (New Style) */
.hl-sidebar-search {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    flex: 1; /* Takes 1/3 space */
    min-width: 300px;
    height: fit-content;
}

.hl-sidebar-search h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #333;
    border-left: 4px solid #F6A52E;
    padding-left: 10px;
    font-weight: 700;
}

.hl-check-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hl-check-form-wrap label {
    font-weight: 600;
    color: #555;
    margin-bottom: -10px;
    font-size: 0.9rem;
}

.hl-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    height: 45px;
    box-sizing: border-box;
}

.hl-btn-primary {
    background: #F6A52E;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    height: 45px;
    transition: background 0.2s;
    width: 100%;
}

.hl-btn-primary:hover {
    background: #d97706;
}

/* Result Box */
.hl-result-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.hl-won { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.hl-lost { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Past Results Grid */
.hl-past-results-section {
    margin-top: 40px;
}

.hl-past-results-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
    border-left: 4px solid #F6A52E;
    padding-left: 12px;
}

/* History Grid */
.hl-past-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hl-l2-past-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hl-l2-past-card:hover {
    transform: translateY(-3px);
}

.hl-l2-past-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hl-l2-past-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.hl-l2-past-day {
    background: #F6A52E;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hl-l2-past-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

.hl-l2-past-date-text {
    color: #6b7280;
    font-weight: normal;
}

.hl-l2-past-body {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.hl-l2-past-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.hl-l2-past-nums {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 10px;
}

.hl-l2-past-nums span {
    color: #d97706;
}

.hl-l2-subheading {
    justify-content: flex-start;
    font-weight: 700;
    color: #6b7280;
    margin-top: 6px;
}

.hl-l2-past-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6b7280;
}

.hl-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}
.hl-load-more-wrap button {
    background: #fff;
    border: 1px solid #F6A52E;
    color: #F6A52E;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.hl-load-more-wrap button:hover {
    background: #F6A52E;
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .hl-top-wrapper {
        flex-direction: column;
    }
    .hl-main-card, .hl-sidebar-search {
        width: 100%;
        flex: none;
    }
    .hl-past-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.hl-theme-wrapper .mvp-main-box,
.hl-theme-wrapper #mvp-post-content-wrap {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* Match tl-container-full width and responsive padding */
.hl-theme-wrapper #mvp-post-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.hl-theme-wrapper #mvp-article-wrap,
.hl-theme-wrapper #mvp-article-wrap.left,
.hl-theme-wrapper #mvp-article-wrap.left.relative {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* Single Page Specific Styles (Added) */
.hl-prize-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    background: #fff;
}
.hl-prize-box h6 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #666;
    text-align: center;
}
.hl-prize-1 {
    grid-column: span 2;
    background: #fff8f0;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #F6A52E;
    text-align: center;
}
.hl-number-box {
    font-size: 3rem;
    font-weight: 700;
    color: #d97706;
    line-height: 1;
}
.hl-multi-numbers, .hl-single-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.hl-multi-numbers span {
    display: inline-block;
}

/* Sidebar Full Width Elements */
.hl-select-full, .hl-input-full {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 15px;
}
.hl-button-full {
    width: 100%;
    background: #F6A52E;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.hl-button-full:hover {
    background: #d97706;
}

/* Full Results Table */
.lottery-result {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.lottery-result h3 {
    margin-top: 0;
    border-bottom: 2px solid #F6A52E;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
    color: #333;
}
.hl-result-section h4 {
    margin: 15px 0;
    color: #555;
}
.flex-result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.lotto__number {
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
}
