:root{--kk-bg:#0b1020;--kk-panel:#151d32;--kk-panel2:#1b2740;--kk-text:#f5f7fb;--kk-muted:#b9c3d8;--kk-accent:#18c8d9;--kk-accent2:#8b5cf6;--kk-line:rgba(255,255,255,.10)}
html{scroll-behavior:smooth}body{background:var(--kk-bg);color:var(--kk-text);font-family:Roboto,Arial,sans-serif;line-height:1.7}a{color:inherit}a:hover{color:var(--kk-accent);text-decoration:none}.header-section{background:#080d1b;padding:15px 0;border-bottom:1px solid var(--kk-line);position:relative;z-index:20}.header-section .container{display:flex;align-items:center;gap:28px;flex-wrap:wrap}.site-logo{display:inline-flex;align-items:center;margin:0}.site-logo img{width:205px;height:auto;max-height:55px;object-fit:contain}.main-menu{margin-left:auto}.main-menu ul{display:flex;gap:25px;list-style:none;margin:0;padding:0}.main-menu ul li a{font-size:14px;font-weight:700;color:#eef3ff;text-transform:uppercase;letter-spacing:.4px}.main-menu ul li a:hover,.main-menu ul li a.active{color:var(--kk-accent)}.user-panel{order:3;background:linear-gradient(110deg,var(--kk-accent2),#4f46e5);border-radius:5px;padding:9px 16px;color:#fff;font-weight:700;font-size:13px}.user-panel a{color:#fff}.nav-switch{display:none;color:white;font-size:24px;margin-left:auto;cursor:pointer}.kk-hero{position:relative;min-height:420px;background-position:center;background-size:cover;display:flex;align-items:center;overflow:hidden}.kk-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,9,22,.95) 0%,rgba(5,9,22,.82) 47%,rgba(5,9,22,.22) 100%)}.kk-hero-inner{position:relative;z-index:1;width:100%;max-width:1170px;margin:auto;padding:76px 25px}.kk-eyebrow{color:var(--kk-accent);font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.kk-hero h1{font-size:clamp(32px,5vw,56px);font-weight:900;line-height:1.12;max-width:850px;margin:12px 0 18px;color:#fff}.kk-hero p{font-size:16px;color:#e0e7f4;max-width:790px;margin:0 0 25px}.kk-actions{display:flex;gap:13px;flex-wrap:wrap}.kk-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:5px;font-weight:700;font-size:13px;letter-spacing:.3px;text-transform:uppercase;background:linear-gradient(110deg,var(--kk-accent2),#5145cd);color:white;border:1px solid transparent;transition:.2s}.kk-btn:hover{color:white;transform:translateY(-2px);filter:brightness(1.1)}.kk-btn-outline{background:transparent;border-color:rgba(255,255,255,.65)}.kk-wrap{max-width:1170px;margin:auto;padding:68px 25px}.kk-section-title{text-align:center;margin-bottom:34px}.kk-section-title span{color:var(--kk-accent);font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.kk-section-title h2{font-size:32px;font-weight:800;color:#fff;margin:7px 0}.kk-section-title p{color:var(--kk-muted);max-width:720px;margin:0 auto}.kk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.kk-card{background:var(--kk-panel);border:1px solid var(--kk-line);border-radius:8px;overflow:hidden;transition:.2s}.kk-card:hover{transform:translateY(-4px);border-color:rgba(24,200,217,.55)}.kk-card img{width:100%;height:190px;object-fit:cover;display:block}.kk-card-body{padding:20px}.kk-card h3{font-size:19px;font-weight:800;margin:0 0 8px;color:#fff}.kk-card p{color:var(--kk-muted);font-size:14px;margin:0}.kk-content{background:var(--kk-panel);border:1px solid var(--kk-line);border-radius:8px;padding:30px;margin-bottom:22px}.kk-content h2,.kk-content h3{color:#fff;font-weight:800}.kk-content p,.kk-content li{color:var(--kk-muted)}.kk-content ul{padding-left:22px}.kk-split{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}.kk-split img{width:100%;border-radius:8px;display:block}.kk-callout{background:linear-gradient(110deg,#172744,#25204b);border:1px solid var(--kk-line);border-radius:8px;padding:28px;margin-top:30px}.kk-faq details{background:var(--kk-panel);border:1px solid var(--kk-line);border-radius:6px;padding:16px 20px;margin-bottom:12px}.kk-faq summary{font-weight:700;color:#fff;cursor:pointer}.kk-faq p{color:var(--kk-muted);margin:12px 0 0}.kk-form{display:grid;gap:14px}.kk-form label{display:block;color:#eaf0fb;font-weight:600;font-size:13px}.kk-form input,.kk-form textarea,.kk-form select{width:100%;padding:12px 14px;background:#0c1428;border:1px solid var(--kk-line);border-radius:5px;color:#fff;margin-top:6px}.kk-form textarea{min-height:130px}.kk-footer{background:#070b16;border-top:1px solid var(--kk-line);padding:55px 0 20px}.kk-footer-inner{max-width:1170px;margin:auto;padding:0 25px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:35px}.kk-footer-logo{width:190px;height:auto;max-height:55px;object-fit:contain;margin-bottom:15px}.kk-footer p,.kk-footer li{color:#aeb9cf;font-size:13px}.kk-footer h3{color:#fff;font-size:17px;font-weight:800;margin:0 0 15px}.kk-footer ul{list-style:none;padding:0;margin:0}.kk-footer li{margin:0 0 9px}.kk-footer a{color:#bac5d9}.kk-footer a:hover{color:var(--kk-accent)}.kk-footer-bottom{max-width:1170px;margin:28px auto 0;padding:18px 25px 0;border-top:1px solid var(--kk-line);display:flex;justify-content:space-between;gap:15px;color:#9aa7bf;font-size:12px}.kk-note{max-width:1170px;margin:25px auto 0;padding:16px 25px;border-top:1px solid var(--kk-line);color:#98a6bd;font-size:11px;line-height:1.7}.kk-legal{max-width:900px}.kk-legal h2{margin-top:25px}.kk-breadcrumb{font-size:12px;color:var(--kk-muted);margin-bottom:12px}.kk-breadcrumb a{color:var(--kk-accent)}
@media(max-width:991px){.header-section .container{gap:15px}.nav-switch{display:block}.main-menu{display:none;order:4;width:100%;margin:0}.main-menu.active{display:block}.main-menu ul{display:flex;flex-direction:column;gap:0;padding:12px 0}.main-menu ul li a{display:block;padding:10px 0}.user-panel{margin-left:auto}.kk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kk-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.site-logo img{width:165px}.user-panel{font-size:11px;padding:8px 10px}.kk-hero{min-height:480px}.kk-hero-inner{padding:58px 20px}.kk-hero p{font-size:14px}.kk-wrap{padding:48px 18px}.kk-grid,.kk-split,.kk-footer-inner{grid-template-columns:1fr}.kk-card img{height:210px}.kk-content{padding:22px}.kk-footer-bottom{padding:18px;flex-direction:column}.kk-note{padding:16px 18px}}

/* ==========================================
   KHELKING HOMEPAGE - FINAL DESIGN OVERRIDES
   Existing inner-page styles preserved
========================================== */

/* HEADER */

.kk-site-header {
    background: #080d1b;
    border-bottom: 1px solid var(--kk-line);
    padding: 13px 0;
    position: relative;
    z-index: 1000;
}

.kk-site-header .kk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 55px;
}

.kk-site-header .site-logo img {
    width: 205px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

.kk-site-header .main-menu {
    margin-left: auto;
}

.kk-site-header .main-menu ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kk-site-header .main-menu ul li a {
    display: block;
    padding: 10px 13px;
    color: #dbe4f4;
    font-size: 14px;
    font-weight: 600;
    transition: .25s ease;
}

.kk-site-header .main-menu ul li a:hover,
.kk-site-header .main-menu ul li a.active {
    color: var(--kk-accent);
}

.kk-site-header .user-panel {
    order: initial;
    margin-left: 0;
    background: transparent;
    padding: 0;
    color: var(--kk-muted);
    font-size: 14px;
    white-space: nowrap;
}

.kk-site-header .user-panel a {
    color: #fff;
}

.kk-site-header .user-panel a:hover {
    color: var(--kk-accent);
}

.kk-site-header .nav-switch {
    border: 0;
    background: transparent;
    padding: 7px 9px;
}

/* HERO */

.kk-hero {
    min-height: 560px;
    background-position: center;
    background-size: cover;
}

.kk-hero::before {
    background: linear-gradient(
        90deg,
        rgba(5, 9, 22, .96) 0%,
        rgba(5, 9, 22, .83) 55%,
        rgba(5, 9, 22, .48) 100%
    );
}

.kk-hero-inner {
    max-width: 1170px;
    padding: 85px 25px;
}

.kk-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.16;
    margin: 12px 0 20px;
}

.kk-hero p {
    max-width: 850px;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* BUTTONS */

.kk-actions {
    align-items: center;
    gap: 13px;
    margin-top: 25px;
}

.kk-center-actions {
    justify-content: center;
    margin-top: 30px;
}

.kk-btn {
    min-height: 47px;
    padding: 12px 23px;
    border-radius: 6px;
    background: linear-gradient(
        110deg,
        var(--kk-accent2),
        #5145cd
    );
    color: #fff;
    transition: .25s ease;
}

.kk-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, .24);
}

.kk-btn-outline {
    background: transparent;
    border-color: var(--kk-accent);
    color: var(--kk-accent);
}

.kk-btn-outline:hover {
    background: var(--kk-accent);
    color: #08101e;
}

/* HOMEPAGE SECTION SPACING */

.kk-wrap {
    max-width: 1170px;
    padding: 70px 25px;
}

.kk-section-title {
    max-width: 820px;
    margin: 0 auto 38px;
}

.kk-section-title h2 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.3;
    margin: 7px 0 15px;
}

.kk-section-title p {
    line-height: 1.9;
}

/* GAME CATEGORY CARDS */

.kk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.kk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    transition: .3s ease;
}

.kk-card:hover {
    transform: translateY(-5px);
    background: var(--kk-panel2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.kk-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.kk-card-body {
    flex: 1;
    padding: 21px;
}

.kk-card h3 {
    line-height: 1.4;
    margin-bottom: 10px;
}

.kk-card p {
    line-height: 1.8;
}

/* FULL WIDTH CONTENT SECTIONS */

.kk-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: linear-gradient(
        135deg,
        #101a30 0%,
        #0b1020 100%
    );
}

.kk-content-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 65px 25px;
}

.kk-content h2 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.3;
    margin: 0 0 18px;
}

.kk-content h3 {
    font-size: 20px;
    margin: 28px 0 10px;
}

.kk-content p,
.kk-content li {
    font-size: 15px;
    line-height: 1.9;
}

.kk-content p {
    margin-bottom: 17px;
}

.kk-content ul {
    margin: 15px 0 24px;
}

.kk-content li {
    padding: 4px 0;
}

/* APP INTRODUCTION */

.kk-split {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 42px;
}

.kk-split img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--kk-line);
    border-radius: 10px;
}

/* FAQ */

.kk-faq {
    max-width: 970px;
}

.kk-faq .kk-section-title {
    margin-bottom: 34px;
}

.kk-faq details {
    border-radius: 8px;
    padding: 17px 21px;
    margin-bottom: 13px;
    transition: .2s ease;
}

.kk-faq details[open] {
    border-color: rgba(24, 200, 217, .5);
}

.kk-faq summary {
    position: relative;
    padding-right: 32px;
    font-size: 15px;
    line-height: 1.6;
    list-style: none;
}

.kk-faq summary::-webkit-details-marker {
    display: none;
}

.kk-faq summary::after {
    content: "+";
    position: absolute;
    top: -3px;
    right: 0;
    color: var(--kk-accent);
    font-size: 23px;
}

.kk-faq details[open] summary::after {
    content: "−";
}

.kk-faq details p {
    line-height: 1.85;
    margin-top: 13px;
}

/* CLOSING SECTION */

.kk-closing {
    text-align: center;
}

.kk-closing .kk-content-inner {
    max-width: 1000px;
}

.kk-closing p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* FOOTER */

.kk-footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    align-items: start;
}

.kk-footer-logo {
    display: block;
    width: 190px;
    height: auto;
    max-height: 55px;
}

.kk-footer-brand p {
    max-width: 340px;
}

.kk-footer h3 {
    margin-bottom: 17px;
}

.kk-footer li {
    margin-bottom: 10px;
}

.kk-note {
    border-top: 1px solid var(--kk-line);
    padding: 17px 25px;
    line-height: 1.8;
}

.kk-footer-bottom {
    align-items: center;
    flex-wrap: wrap;
}

/* TABLET NAVIGATION */

@media (max-width: 991px) {

    .kk-site-header .kk-header-inner {
        flex-wrap: wrap;
        gap: 14px;
    }

    .kk-site-header .nav-switch {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .kk-site-header .main-menu {
        display: none;
        order: 4;
        width: 100%;
        margin: 0;
    }

    .kk-site-header .main-menu.active {
        display: block;
    }

    .kk-site-header .main-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0;
    }

    .kk-site-header .main-menu ul li a {
        padding: 11px 5px;
    }

    .kk-site-header .user-panel {
        order: 3;
        margin-left: 0;
    }

    .kk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kk-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* MOBILE */

@media (max-width: 767px) {

    .kk-hero {
        min-height: auto;
    }

    .kk-hero-inner {
        padding: 68px 20px;
    }

    .kk-hero h1 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .kk-hero p {
        font-size: 14px;
    }

    .kk-wrap {
        padding: 52px 18px;
    }

    .kk-content-inner {
        padding: 52px 18px;
    }

    .kk-split {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .kk-split img {
        order: 2;
    }

    .kk-card img {
        aspect-ratio: 16 / 10;
    }

    .kk-footer-inner {
        gap: 28px 20px;
    }

}

/* SMALL MOBILE */

@media (max-width: 520px) {

    .kk-site-header .site-logo img {
        width: 150px;
    }

    .kk-site-header .user-panel {
        font-size: 11px;
        padding: 0;
    }

    .kk-grid,
    .kk-footer-inner {
        grid-template-columns: 1fr;
    }

    .kk-actions .kk-btn {
        width: 100%;
    }

    .kk-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* =====================================
   KHELKING OFFICIAL - HEADER & FOOTER
===================================== */

/* HEADER */
.kk-site-header {
    background: #080d1b;
    border-bottom: 1px solid var(--kk-line);
    padding: 12px 0;
    position: relative;
    z-index: 1000;
}

.kk-site-header .kk-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 55px;
}

.kk-site-header .site-logo {
    justify-self: start;
}

.kk-site-header .site-logo img {
    width: 205px;
    max-width: 100%;
    height: auto;
    display: block;
}

.kk-site-header .main-menu {
    justify-self: center;
    margin: 0;
}

.kk-site-header .main-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kk-site-header .main-menu ul li a {
    display: block;
    color: #eef3ff;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    padding: 10px 0;
    transition: .25s ease;
}

.kk-site-header .main-menu ul li a:hover,
.kk-site-header .main-menu ul li a.active {
    color: var(--kk-accent);
}

/* CALL NOW BUTTON */
.kk-contact-btn {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 23px;
    background: linear-gradient(110deg, var(--kk-accent2), #5145cd);
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s ease;
}

.kk-contact-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(139, 92, 246, .25);
}

/* HAMBURGER */
.kk-site-header .nav-switch {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
}

/* FOOTER */
.kk-footer {
    background: #050a16;
    border-top: 1px solid var(--kk-line);
    padding: 55px 0 20px;
}

.kk-footer-inner {
    max-width: 1170px;
    margin: auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
}

.kk-footer-logo {
    width: 190px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    margin-bottom: 18px;
}

.kk-footer p {
    color: var(--kk-muted);
    font-size: 13px;
    line-height: 1.8;
}

.kk-footer h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
}

.kk-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kk-footer li {
    margin-bottom: 11px;
}

.kk-footer a {
    color: var(--kk-muted);
    transition: .2s;
}

.kk-footer a:hover {
    color: var(--kk-accent);
}

.kk-note {
    max-width: 1170px;
    margin: 30px auto 20px;
    padding: 18px 25px;
    border-top: 1px solid var(--kk-line);
    color: #98a6bd;
    font-size: 12px;
    line-height: 1.8;
}

.kk-footer-bottom {
    max-width: 1170px;
    margin: auto;
    padding: 20px 25px 0;
    border-top: 1px solid var(--kk-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #98a6bd;
    font-size: 12px;
}

.kk-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* TABLET AND MOBILE */
@media (max-width: 991px) {

    .kk-site-header .kk-header-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

    .kk-site-header .site-logo {
        margin-right: auto;
    }

    .kk-site-header .kk-contact-btn {
        order: 2;
        margin-left: auto;
    }

    .kk-site-header .nav-switch {
        display: block;
        order: 3;
        margin-left: 5px;
    }

    .kk-site-header .main-menu {
        display: none;
        order: 4;
        width: 100%;
        flex-basis: 100%;
        background: #101a30;
        border: 1px solid var(--kk-line);
        border-radius: 8px;
        padding: 8px 18px;
        margin-top: 5px;
    }

    .kk-site-header .main-menu.active {
        display: block;
    }

    .kk-site-header .main-menu ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .kk-site-header .main-menu ul li {
        border-bottom: 1px solid var(--kk-line);
    }

    .kk-site-header .main-menu ul li:last-child {
        border-bottom: 0;
    }

    .kk-site-header .main-menu ul li a {
        padding: 12px 5px;
    }

    .kk-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* SMALL MOBILE */
@media (max-width: 600px) {

    .kk-site-header {
        padding: 10px 0;
    }

    .kk-site-header .kk-header-inner {
        gap: 8px;
    }

    .kk-site-header .site-logo img {
        width: 145px;
    }

    .kk-site-header .kk-contact-btn {
        padding: 10px 13px;
        font-size: 12px;
        gap: 6px;
    }

    .kk-site-header .nav-switch {
        font-size: 23px;
        padding: 4px;
    }

    .kk-footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .kk-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .kk-site-header .site-logo img {
        width: 120px;
    }

    .kk-site-header .kk-contact-btn {
        padding: 9px 10px;
        font-size: 11px;
    }
}

/* FIX: Homepage heading visibility */

.kk-hero h1,
.kk-section-title h2,
.kk-content h2,
.kk-split h2,
.kk-content h3,
.kk-card-body h3 {
    color: #ffffff !important;
}

.kk-content p,
.kk-split p,
.kk-section-title p {
    color: #b9c3d8 !important;
}

/* Ensure mobile content remains readable */
@media (max-width: 767px) {
    .kk-split h2,
    .kk-content h2,
    .kk-section-title h2 {
        font-size: 28px;
        line-height: 1.35;
    }
}
