﻿/* ============================================================
   Game inner pages design (teenpatti-master, crash, aviator ...)
   Scoped so home / about / blog pages stay untouched:
   - .about_box and .Related_Games exist ONLY on game pages
   - .Why_Choose_Us rules are scoped via body:has(.about_box)
   ============================================================ */

/* ---------- Content article box (About_* section) ---------- */
section[class*="About_"] .about_box {
    background: linear-gradient(160deg, rgba(129, 0, 180, .16) 0%, rgba(25, 0, 20, .55) 100%);
    border: 1px solid rgba(174, 92, 255, .25);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}

section[class*="About_"] .about_box h2 {
    font-size: 26px;
    font-weight: 700;
    padding-left: 14px;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #ffb800, #ff5ecb) 1;
    line-height: 1.35;
}

section[class*="About_"] .about_box p {
    color: #d8cfe4 !important;
    font-size: 16px;
    line-height: 1.85;
}

section[class*="About_"] .about_box .lead {
    font-size: 18px;
}

section[class*="About_"] .about_box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.2em;
}

section[class*="About_"] .about_box ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 11px;
    color: #d8cfe4 !important;
    line-height: 1.7;
}

section[class*="About_"] .about_box ul li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffb800;
    font-weight: 700;
}

section[class*="About_"] .about_box ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.2em;
    counter-reset: gsteps;
}

section[class*="About_"] .about_box ol[start="4"] {
    counter-reset: gsteps 3;
}

section[class*="About_"] .about_box ol li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 13px;
    color: #d8cfe4 !important;
    line-height: 1.7;
    counter-increment: gsteps;
}

section[class*="About_"] .about_box ol li::before {
    content: counter(gsteps);
    position: absolute;
    left: 0;
    top: 1px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7300, #ff0095);
    box-shadow: 0 4px 10px rgba(255, 0, 149, .35);
}

section[class*="About_"] .about_box a:not(.button-85):not(.btn) {
    color: #ffb800;
    transition: color .25s ease;
}

section[class*="About_"] .about_box a:not(.button-85):not(.btn):hover {
    color: #ff5ecb;
}

/* ---------- Game page "Why Choose Us" (home stays untouched) ---------- */
body:has(.about_box) .Why_Choose_Us h2 {
    font-size: 28px;
    line-height: 1.35;
    margin-top: 1.2em;
}

body:has(.about_box) .Why_Choose_Us h3 {
    color: #ffcf66;
    font-size: 22px;
    font-weight: 600;
}

body:has(.about_box) .Why_Choose_Us p {
    color: #d8cfe4;
    line-height: 1.8;
}

body:has(.about_box) .Why_Choose_Us ul {
    list-style: none;
    padding-left: 0;
}

body:has(.about_box) .Why_Choose_Us ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 11px;
    line-height: 1.7;
}

body:has(.about_box) .Why_Choose_Us ul li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffb800;
    font-weight: 700;
}

body:has(.about_box) .Why_Choose_Us img {
    border-radius: 18px;
    border: 1px solid rgba(174, 92, 255, .28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .4);
}

/* Game hero banner image */
body:has(.about_box) .Main_Banner img {
    border-radius: 18px;
    border: 1px solid rgba(174, 92, 255, .35);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .5);
    max-width: 260px;
    margin-top: 20px;
}

/* ---------- Related games cards ---------- */
.Related_Games a {
    display: block;
}

.Related_Games a img {
    transition: transform .3s ease, box-shadow .3s ease;
}

.Related_Games a p {
    transition: color .3s ease;
}

.Related_Games a:hover img {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(129, 0, 180, .45);
}

.Related_Games a:hover p {
    color: #ffb800 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    section[class*="About_"] .about_box {
        padding: 24px 18px;
    }

    section[class*="About_"] .about_box h2 {
        font-size: 22px;
    }

    body:has(.about_box) .Why_Choose_Us h2 {
        font-size: 24px;
    }
}
