/*
Theme Name: Matka Boss Pro (v8 - Per-Market Rich Content Editor + Blog + Dynamic FAQ)
Author: Custom Developer
Description: Complete Satta Matka live results, clean SEO-friendly URLs (/kalyan-panel-chart/, /kalyan-jodi-chart/), 100% automatic RankMath XML Sitemap integration, Admin-Editable FAQ Accordion with Schema, and full WordPress Blog Section (single.php, home.php, archive.php, page.php).
Version: 8.0
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
    background-color: #fc9403;
    background-image: linear-gradient(180deg, #ffb300 0%, #ff8f00 100%);
    color: #111;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }

/* Main Wrapper */
.site-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px;
}

/* Top Brand Header */
.brand-box {
    background: linear-gradient(180deg, #ff1744 0%, #b71c1c 100%);
    border: 2px solid #fff;
    border-radius: 8px;
    text-align: center;
    padding: 14px 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.35);
    margin-bottom: 8px;
}
.brand-box h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 1px;
}
.brand-box p {
    color: #ffeb3b;
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
}

/* Top Navigation Bar */
.top-nav-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #1a237e;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.top-nav-bar a {
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}
.top-nav-bar a:hover, .top-nav-bar a.active-nav {
    background: #ffeb3b;
    color: #000;
}

/* Marquee / Welcome Strip */
.welcome-strip {
    background: #fff;
    border: 2px solid #d50000;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.welcome-strip span { color: #d50000; }

/* Intro / Info Box */
.info-card-box {
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.info-card-box h2 {
    color: #b71c1c;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.info-card-box p {
    font-size: 13px;
    color: #222;
    margin-bottom: 6px;
}
.info-card-box p:last-child { margin-bottom: 0; }

/* Section Banner Bars */
.section-banner {
    background: linear-gradient(90deg, #880e4f 0%, #d50000 50%, #880e4f 100%);
    color: #fff;
    text-align: center;
    padding: 9px 10px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    border: 2px solid #fff;
    border-radius: 6px;
    text-shadow: 1px 1px 2px #000;
    margin: 10px 0 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Fastest Live Box */
.fastest-live-box {
    background: #fffde7;
    border: 2px solid #d50000;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}
.live-card-item {
    border-bottom: 1px dashed #d50000;
    padding: 8px 0;
}
.live-card-item:last-child { border-bottom: none; }
.live-card-title {
    font-size: 19px;
    font-weight: 900;
    color: #0d47a1;
    text-transform: uppercase;
}
.live-card-num {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin: 3px 0;
}
.live-card-num .jodi-red { color: #d50000; }
.btn-mini-refresh {
    background: #1b5e20;
    color: #fff;
    border: 1px solid #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.btn-mini-refresh:hover { background: #2e7d32; }

/* Main All-Markets Result Board */
.all-markets-board {
    background: #fff;
    border: 2px solid #b71c1c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.market-card {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    background: #ffffff;
}
.market-card:nth-child(even) {
    background: #fffde7;
}
.market-card.vip-market {
    background: #fff59d;
    border-top: 1px solid #fbc02d;
    border-bottom: 2px solid #f57f17;
}

.m-name {
    font-size: 20px;
    font-weight: 900;
    color: #0d47a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.market-card.vip-market .m-name {
    color: #b71c1c;
}

.m-number {
    font-size: 23px;
    font-weight: 900;
    color: #000;
    margin: 4px 0;
    letter-spacing: 1px;
}
.m-number .jodi-highlight {
    color: #d50000;
}
.m-holiday {
    font-size: 20px;
    font-weight: 900;
    color: #d50000;
    margin: 4px 0;
    letter-spacing: 0.5px;
}

.m-schedule {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}
.m-schedule span.days-tag {
    color: #1b5e20;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #c8e6c9;
}

.m-chart-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.btn-jodi, .btn-panel {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-jodi {
    background: #ffeb3b;
    color: #000;
}
.btn-jodi:hover { background: #fdd835; }

.btn-panel {
    background: #1a237e;
    color: #fff;
}
.btn-panel:hover { background: #283593; }

/* Lucky Number / Daily Guessing Box */
.lucky-box {
    background: #fff;
    border: 2px solid #1b5e20;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 10px;
}
.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.lucky-item {
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 6px;
    padding: 8px;
}
.lucky-item h4 {
    color: #1b5e20;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}
.lucky-item p {
    font-size: 16px;
    font-weight: 900;
    color: #d50000;
    margin-top: 4px;
}

/* Bottom Chart Directory Grid */
.chart-directory {
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 12px;
}
.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 6px;
}
.dir-link {
    display: block;
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #0d47a1;
    font-weight: 800;
    font-size: 13px;
    padding: 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.dir-link:hover {
    background: #0d47a1;
    color: #fff;
}

/* Blog Section & Single Post Styling */
.blog-grid-box {
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.blog-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.blog-card-thumb img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.blog-card-body {
    padding: 12px;
}
.blog-card-meta {
    font-size: 11.5px;
    color: #666;
    font-weight: bold;
    margin-bottom: 4px;
}
.blog-card-title {
    font-size: 16px;
    font-weight: 900;
    color: #0d47a1;
    margin-bottom: 6px;
    line-height: 1.3;
}
.blog-card-title a:hover {
    color: #d50000;
    text-decoration: underline;
}
.blog-card-excerpt {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}
.btn-read-more {
    display: inline-block;
    background: #d50000;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}
.btn-read-more:hover {
    background: #b71c1c;
}
.view-all-blogs-wrap {
    text-align: center;
    margin-top: 12px;
}
.btn-view-all-blogs {
    display: inline-block;
    background: #1a237e;
    color: #ffeb3b;
    border: 1px solid #000;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 5px;
    text-transform: uppercase;
}
.btn-view-all-blogs:hover {
    background: #283593;
}

/* Single Blog Article Box */
.article-box {
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.article-title {
    font-size: 23px;
    font-weight: 900;
    color: #b71c1c;
    margin-bottom: 6px;
    line-height: 1.3;
}
.article-meta {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
}
.article-featured-img {
    margin-bottom: 14px;
    text-align: center;
}
.article-featured-img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.article-content {
    font-size: 15px;
    color: #222;
    line-height: 1.7;
}
.article-content p {
    margin-bottom: 12px;
}
.article-content h2, .article-content h3, .article-content h4 {
    color: #0d47a1;
    margin: 16px 0 8px 0;
    font-weight: 900;
}
.article-content ul, .article-content ol {
    margin: 0 0 12px 22px;
}
.article-content li {
    margin-bottom: 5px;
}
.article-content a {
    color: #d50000;
    text-decoration: underline;
    font-weight: bold;
}
.article-content blockquote {
    background: #fffde7;
    border-left: 4px solid #d50000;
    padding: 10px 14px;
    margin: 12px 0;
    font-style: italic;
}
.pagination-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pagination-bar .page-numbers {
    background: #1a237e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}
.pagination-bar .page-numbers.current {
    background: #d50000;
    color: #ffeb3b;
}

/* SEO & Informational Content Block */
.seo-content-box {
    background: #fff;
    border: 2px solid #b71c1c;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: #222;
}
.seo-content-box h3 {
    color: #b71c1c;
    font-size: 16px;
    font-weight: 900;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
}
.seo-content-box h3:first-child { margin-top: 0; }
.seo-content-box p { margin-bottom: 8px; }
.seo-content-box ul { margin-left: 20px; margin-bottom: 8px; }
.seo-content-box li { margin-bottom: 4px; }

/* FAQ Section Styling */
.faq-box {
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item summary {
    font-size: 14.5px;
    font-weight: 900;
    color: #0d47a1;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 900;
    color: #d50000;
    margin-left: 10px;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    font-size: 13.5px;
    color: #222;
    padding: 6px 4px 4px 4px;
    line-height: 1.5;
}

/* Disclaimer Notice */
.disclaimer-box {
    background: #ffebee;
    border: 2px solid #d50000;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    color: #b71c1c;
    font-weight: bold;
    margin-bottom: 12px;
}

/* Breadcrumbs */
.breadcrumb-bar {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
.breadcrumb-bar a { color: #0d47a1; text-decoration: underline; }

/* Single Market Panna & Jodi Chart Tables */
.chart-container {
    background: #fff;
    border: 2px solid #000;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 15px;
}
.chart-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}
.tab-btn {
    padding: 8px 16px;
    font-weight: 900;
    border-radius: 5px;
    border: 2px solid #fff;
    background: #1a237e;
    color: #fff;
    font-size: 14px;
}
.tab-btn.active {
    background: #d50000;
    color: #ffeb3b;
}

table.matka-chart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
table.matka-chart-table th {
    background: #ffeb3b;
    color: #000;
    font-weight: 900;
    padding: 8px 4px;
    border: 1px solid #000;
    font-size: 13px;
}
table.matka-chart-table td {
    border: 1px solid #444;
    padding: 6px 3px;
    vertical-align: middle;
}
.date-col {
    background: #f5f5f5;
    font-size: 11px;
    font-weight: bold;
    color: #222;
    min-width: 78px;
}
.panel-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.panna-col {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
}
.jodi-col {
    font-size: 19px;
    font-weight: 900;
    color: #000;
}
.red-jodi .jodi-col, .red-jodi-only {
    color: #ff0000 !important;
}
.jodi-only-cell {
    font-size: 20px;
    font-weight: 900;
    padding: 10px 6px !important;
}

/* Floating Refresh Button */
.floating-refresh {
    position: fixed;
    bottom: 14px;
    right: 14px;
    background: #d50000;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 999;
}

/* Footer */
.site-footer {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 14px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    margin-top: 10px;
}
.site-footer strong { color: #ffeb3b; }
.site-footer a { color: #ffeb3b; text-decoration: underline; margin: 0 6px; }

/* Rich Market Content Formatting */
.seo-content-box h2, .seo-content-box h4 {
    color: #0d47a1;
    font-size: 17px;
    font-weight: 900;
    margin: 12px 0 6px 0;
    text-transform: uppercase;
}
.seo-content-box ol {
    margin-left: 20px;
    margin-bottom: 8px;
}
.seo-content-box a {
    color: #d50000;
    text-decoration: underline;
    font-weight: bold;
}
.seo-content-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.seo-content-box table th, .seo-content-box table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}
.seo-content-box table th {
    background: #fffde7;
    color: #000;
}
