/* ========================================
   GAJKESRIM MATKA - Shared Stylesheet
   Used on: index, how-to-play, game-rules,
            charts, blog, about-us
   ======================================== */

:root {
    --red: #9A0020;
    --red-dark: #7a0018;
    --red-light: #c0002a;
    --bg: #fff;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --border: #e5e5e5;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-size: 16px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 65px;
    border-bottom: 1px solid #e5e3df;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; }
.nav-brand-text { font-size: 19px; font-weight: 800; color: var(--red); letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { text-decoration: none; color: #4b5563; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; padding-bottom: 3px; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--red); border-radius: 2px; }
.nav-download-btn { background: var(--red); color: #fff; border: none; padding: 8px 22px; border-radius: 9999px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.nav-download-btn:hover { background: var(--red-dark); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.nav-hamburger span { width: 25px; height: 2px; background: var(--text); border-radius: 2px; display: block; }
.mobile-menu { display: none; position: fixed; top: 65px; left: 0; right: 0; background: #fff; z-index: 999; padding: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); flex-direction: column; gap: 12px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: #333; font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.mobile-menu a.active { color: var(--red); font-weight: 600; }

/* ===== PAGE HERO ===== */
.page-hero { margin-top: 65px; background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff; padding: 50px 40px; text-align: center; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: 0.9; }

/* ===== HERO (Homepage) ===== */
.hero {
    margin-top: 65px;
    background: #fff;
    padding: 10px 20px 0;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero-banner-img {
    width: 100%;
    max-width: 1080px;
    height: auto;
    max-height: calc(100vh - 85px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

/* ===== HELPERS ===== */
.section-title { text-align: center; font-size: 26px; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.star { color: #f0a500; }
.section-underline { width: 100px; height: 2px; background: var(--red); margin: 0 auto 20px; }
.mb-30 { margin-bottom: 30px; }
.content-section { max-width: 1100px; margin: 30px auto; padding: 0 20px 80px; }

/* ===== GAME RATES ===== */
.game-rates-section { padding: 30px 20px; max-width: 1100px; margin: 0 auto; }
.rates-card { background: #fff; border: 1.5px solid var(--red); border-radius: 12px; overflow: hidden; }
.rates-title { text-align: center; padding: 18px; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; border-bottom: 1px solid #f0e0e0; }
.rates-title .dot { width: 30px; height: 30px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.rates-title-text { display: flex; flex-direction: column; align-items: center; }
.rates-title-line { width: 80px; height: 2px; background: var(--red); display: block; margin: 4px auto 0; }
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 25px; border-bottom: 1px solid #fce8ea; font-size: 17px; }
.rate-row:last-child { border-bottom: none; }
.rate-label { color: #333; font-weight: 500; }
.rate-value { color: var(--red); font-weight: 700; }
.download-bar-inline { background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff; text-align: center; padding: 14px; font-size: 18px; font-weight: 700; cursor: pointer; letter-spacing: 1px; display: block; text-decoration: none; }

/* ===== MARKETS ===== */
.markets-section { padding: 20px; max-width: 1200px; margin: 0 auto; }
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.market-card { background: #fff; border-radius: 12px; padding: 16px 20px 14px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.market-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.market-name { font-size: 15px; font-weight: 700; color: #222; display: flex; align-items: center; gap: 6px; }
.info-icon { width: 18px; height: 18px; border: 1px solid #aaa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #aaa; cursor: pointer; }
.play-btn { background: var(--red); color: #fff; border: none; padding: 8px 20px; border-radius: 25px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.play-btn:hover { background: var(--red-dark); color: #fff; }
.market-result { font-size: 18px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.market-chart-btns { display: flex; gap: 8px; }
.chart-btn { border: 1.5px solid var(--red); background: transparent; color: #333; padding: 6px 16px; border-radius: 25px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.chart-btn:hover { background: var(--red); color: #fff; }

/* ===== STARLINE / JACKPOT ===== */
.starline-section { padding: 20px; max-width: 1200px; margin: 0 auto; }
.starline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.starline-title { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.all-charts-btn { background: var(--red); color: #fff; padding: 8px 22px; border-radius: 25px; font-size: 15px; font-weight: 600; text-decoration: none; }
.starline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.starline-card { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.starline-time { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.starline-result { font-size: 18px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.starline-actions { display: flex; gap: 6px; }
.view-btn { border: 1.5px solid var(--red); background: transparent; color: #333; padding: 5px 14px; border-radius: 25px; font-size: 13px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.view-btn:hover { background: var(--red); color: #fff; }

/* ===== RATES TABLE ===== */
.rates-table-section { padding: 20px; max-width: 1200px; margin: 0 auto; }
.rates-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.rates-table th { background: var(--red); color: #fff; padding: 14px 18px; text-align: left; font-size: 16px; }
.rates-table td { padding: 12px 18px; border-bottom: 1px solid #f5e5e5; font-size: 15px; }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table td:last-child { color: var(--red); font-weight: 600; }

/* ===== INFO / FAQ ===== */
.info-section { max-width: 1100px; margin: 20px auto; padding: 0 20px; }
.info-box { background: #fff; border-radius: 12px; padding: 25px 30px; box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; font-size: 16px; line-height: 1.7; color: #444; }
.info-box h3 { font-size: 18px; font-weight: 700; color: #111; margin: 15px 0 8px; }
.info-box h3:first-child { margin-top: 0; }
.faq-section { max-width: 1100px; margin: 20px auto; padding: 0 20px 30px; }
.faq-title { font-size: 22px; font-weight: 700; margin-bottom: 15px; text-align: center; }
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 10px; border: 1.5px solid #f5dde0; overflow: hidden; }
.faq-question { padding: 16px 20px; font-size: 16px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-question:hover { background: #fdf5f5; }
.faq-icon { color: #999; font-size: 14px; transition: transform 0.3s; }
.faq-answer { padding: 0 20px; font-size: 15px; color: #555; line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 250px; padding: 0 20px 16px; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ===== FOOTER ===== */
.footer { background: #0a0a0a; color: #ccc; padding: 40px 40px 20px; margin-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: 1px; margin-bottom: 15px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-divider { border: none; border-top: 1px solid #222; margin: 20px 0; }
.footer-badges { display: flex; justify-content: center; gap: 20px; margin: 15px 0; align-items: center; flex-wrap: wrap; }
.footer-badge { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 8px 16px; font-size: 14px; color: #aaa; font-weight: 600; }
.footer-badge.age { color: #fff; font-size: 16px; font-weight: 800; }
.footer-bottom-info { text-align: center; font-size: 14px; color: #777; line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.footer-links a { color: #888; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--red); }

/* ===== STICKY DOWNLOAD BUTTON ===== */
.sticky-download {
    position: fixed;
    bottom: 15px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto;
    transform: translateY(120px);
    z-index: 9999;
    background: linear-gradient(90deg, #b80d2d, #dc143c, #b80d2d);
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: block;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.sticky-download.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.sticky-download:hover {
    background: linear-gradient(90deg, #c71032, #e81b45, #c71032);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== HOW TO PLAY ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.step-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--red); }
.step-number { width: 52px; height: 52px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 15px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #111; }
.step-card p { font-size: 15px; color: #555; line-height: 1.6; }
.step-icon { font-size: 32px; margin-bottom: 15px; }
.info-card { background: #fff; border-radius: 12px; padding: 25px 30px; box-shadow: var(--shadow); margin-bottom: 20px; }
.info-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 15px; color: #111; border-bottom: 2px solid var(--red); padding-bottom: 10px; }
.info-card p { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 10px; }
.info-card ul { margin-left: 20px; }
.info-card ul li { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 6px; }
.info-card ul li strong { color: var(--red); }
.tip-box { background: #fff8f8; border: 1.5px solid #ffcccc; border-radius: 10px; padding: 20px; margin: 15px 0; }
.tip-box h4 { color: var(--red); font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.tip-box p { font-size: 15px; color: #555; }
.game-types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.game-type-item { background: #fff; border: 1px solid #f5dde0; border-radius: 10px; padding: 15px 20px; }
.game-type-item h4 { font-size: 16px; font-weight: 700; color: var(--red); margin-bottom: 5px; }
.game-type-item p { font-size: 15px; color: #555; }

/* ===== GAME RULES ===== */
.rule-card { background: #fff; border-radius: 12px; padding: 25px 30px; box-shadow: var(--shadow); margin-bottom: 20px; border-left: 5px solid var(--red); }
.rule-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #111; display: flex; align-items: center; gap: 10px; }
.rule-card p { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 8px; }
.rule-card ul { margin-left: 20px; }
.rule-card ul li { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 6px; }
.rule-card ul li strong { color: var(--red); }
.rule-number { width: 36px; height: 36px; background: var(--red); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.warning-box { background: #fff8e1; border: 1.5px solid #ffcc02; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.warning-box h3 { color: #d97706; font-weight: 700; margin-bottom: 8px; font-size: 17px; }
.warning-box p { font-size: 15px; color: #555; line-height: 1.6; }

/* ===== CHARTS ===== */
.charts-tabs { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.tab-btn { padding: 10px 24px; border-radius: 25px; border: 2px solid var(--red); background: transparent; color: var(--red); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tab-btn.active, .tab-btn:hover { background: var(--red); color: #fff; }
.chart-section { display: none; }
.chart-section.active { display: block; }
.charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.chart-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); border: 1px solid #f0e0e0; }
.chart-card h3 { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.chart-btn-group { display: flex; gap: 8px; flex-direction: column; }
.chart-action-btn { display: block; text-align: center; padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.chart-action-btn.jodi { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.chart-action-btn.pana { background: var(--red); color: #fff; }
.chart-action-btn:hover { opacity: 0.85; }
.starline-times-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.time-chart-card { background: #fff; border-radius: 10px; padding: 15px; box-shadow: var(--shadow); text-align: center; border: 1px solid #f0e0e0; }
.time-chart-card h4 { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 10px; }
.time-chart-card a { display: block; padding: 7px; border-radius: 8px; background: var(--red); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 6px; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.blog-card-header { background: linear-gradient(135deg, var(--red-dark), var(--red)); padding: 30px 20px; text-align: center; color: #fff; font-size: 38px; }
.blog-card-body { padding: 20px; }
.blog-tag { display: inline-block; background: #fce8ea; color: var(--red); padding: 4px 12px; border-radius: 25px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 15px; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #999; margin-bottom: 12px; }
.blog-read-btn { display: inline-block; color: var(--red); font-size: 15px; font-weight: 600; text-decoration: none; }
.blog-read-btn:hover { text-decoration: underline; }

/* ===== ABOUT US ===== */
.about-intro { background: #fff; border-radius: 16px; padding: 35px; box-shadow: var(--shadow); margin-bottom: 25px; display: flex; gap: 30px; align-items: center; }
.about-logo { width: 150px; height: 150px; flex-shrink: 0; }
.about-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.about-intro-text h2 { font-size: 26px; font-weight: 800; color: #111; margin-bottom: 12px; }
.about-intro-text p { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--red); }
.stat-number { font-size: 34px; font-weight: 900; color: var(--red); margin-bottom: 5px; }
.stat-label { font-size: 15px; font-weight: 500; color: #555; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }
.feature-card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.feature-icon { font-size: 34px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #111; }
.feature-card p { font-size: 15px; color: #555; line-height: 1.6; }
.about-section { background: #fff; border-radius: 12px; padding: 25px 30px; box-shadow: var(--shadow); margin-bottom: 20px; }
.about-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 15px; color: #111; border-bottom: 2px solid var(--red); padding-bottom: 10px; }
.about-section p { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 10px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
.contact-item { background: #fdf5f5; border: 1px solid #f5dde0; border-radius: 10px; padding: 20px; text-align: center; }
.contact-item i { font-size: 26px; color: var(--red); margin-bottom: 10px; display: block; }
.contact-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.contact-item p { font-size: 15px; color: #555; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links, .nav-download-btn { display: none; }
    .nav-hamburger { display: flex; }
    .hero-title { font-size: 28px; }
    .hero { padding: 20px 15px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero { padding: 30px 20px; }
    .markets-grid { grid-template-columns: 1fr 1fr; }
    .starline-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .charts-grid { grid-template-columns: 1fr 1fr; }
    .starline-times-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .about-intro { flex-direction: column; }
    .game-types-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .navbar { padding: 0 15px; }
    .hero-title { font-size: 22px; }
    .markets-grid { grid-template-columns: 1fr; }
    .footer { padding: 30px 15px 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .charts-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
