/* ==========================================================================
   Premium Satta Matka Style (Inspired by sattaresult.net.in)
   ========================================================================== */

:root {
    --primary-color: #f7b731;
    /* Vibrant Gold/Yellow */
    --secondary-color: #2b2b2b;
    /* Dark Grey */
    --accent-color: #eb3b5a;
    /* Red for Live/Alerts */
    --bg-dark: #1e1e1e;
    /* Deep Black Background */
    --bg-card: #2f3640;
    /* Slightly lighter dark for cards */
    --text-main: #f5f6fa;
    /* Off-white text */
    --text-muted: #dcdde1;
    /* Muted text */
    --border-color: rgba(255, 255, 255, 0.1);

    font-family: 'Outfit', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(247, 183, 49, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight {
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section & Live Results
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect fill="%231e1e1e" width="100" height="100"/><circle cx="50" cy="50" r="40" stroke="%23f7b731" stroke-width="0.5" fill="none" opacity="0.2"/></svg>') center/cover;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dynamic-heading {
    font-size: 42px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-subtext {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.live-result-board {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.result-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.result-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.live-numbers {
    font-size: 38px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.live-numbers .jodi {
    color: #fff;
    font-size: 48px;
}

.pulse-glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(247, 183, 49, 0.2);
    }

    to {
        box-shadow: 0 0 20px rgba(247, 183, 49, 0.6);
    }
}

.refresh-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.refresh-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

/* ==========================================================================
   Content Sections (Dynamic SEO Content)
   ========================================================================== */
.main-content {
    padding: 60px 0;
}

.seo-article {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.seo-article h2 {
    font-size: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 40px;
}

.seo-article h2:first-child {
    margin-top: 0;
}

.seo-article h3 {
    font-size: 22px;
    color: #fff;
    margin-top: 30px;
}

.seo-article p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-muted);
}

.seo-article ul.features-list {
    list-style: none;
    margin-bottom: 25px;
}

.seo-article ul.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
}

.seo-article ul.features-list li::before {
    content: '★';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Data Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.info-table th {
    background-color: var(--primary-color);
    color: #000;
    padding: 15px;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.info-table tr:hover td {
    background-color: rgba(247, 183, 49, 0.1);
}

/* FAQs */
.faq-wrap {
    margin-top: 20px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.faq-item h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #111;
    border-top: 3px solid var(--primary-color);
    padding-top: 50px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 24px;
}

.brand-col p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    font-weight: 700;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #000;
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 10px;
}

.links-col a {
    color: var(--text-muted);
}

.links-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.disclaimer-text {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 20px;
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .dynamic-heading {
        font-size: 28px;
    }

    .live-numbers {
        font-size: 24px;
    }

    .live-numbers .jodi {
        font-size: 32px;
    }
}

/* Closing media query */

/* ==========================================================================
   Market Results Grid (Homepage)
   ========================================================================== */
.market-results-section {
    padding: 30px 0;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.market-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.market-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.market-item h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
    padding: 0 10px 5px 10px;
}

.market-time {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.market-result {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.market-result .jodi {
    color: #2980b9;
}

/* ==========================================================================
   Master Index Page (all-pages.php)
   ========================================================================== */
.index-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.keyword-link {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid transparent;
}

.keyword-link:hover {
    background: rgba(247, 183, 49, 0.1);
    border-color: var(--primary-color);
}