/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary-blue: #007bff;
    --primary-blue-hover: #0056b3;
    --primary-red: #d80000;
    --primary-red-hover: #b00000;
    --primary-green: #009C18;

    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;

    --bg-body: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #eeeeee;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing System (8pt Grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Components */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Reset Defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, background-color 0.2s;
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.hidden-mobile {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .hidden-desktop {
        display: block !important;
    }
}

/* =========================================
   3. BUTTONS (Systematic)
   ========================================= */
/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

/* Variants */
.btn-red {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.btn-red:hover {
    background-color: var(--primary-red-hover);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-blue:hover {
    background-color: var(--primary-blue-hover);
}

/* Mobile Compact Button */
.btn-sm-mobile {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    height: 28px;
}

/* =========================================
   4. HEADER & NAV (Astra Compatibility)
   ========================================= */
/* Force clean header layout */
.site-header {
    background: #fff;
    border-bottom: none;
    position: relative;
    z-index: 999999 !important;
    overflow: visible !important;
}

/* Ensure content stays below header */
.site-content {
    position: relative;
    z-index: 1 !important;
}

/* Logo and Site Title */
.site-header .custom-logo,
.site-header .site-logo-img img {
    width: 48px;
    height: 48px;
    margin-left: 20px;
}

.site-header .site-title,
.site-header .ast-site-title-wrap a {
    font-size: 20px;
    font-weight: 650;
    color: #222222;
}

/* Subtle header border */
.site-header,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-main-header-wrap,
.ast-mobile-header-wrap,
#masthead,
.main-header-bar,
.ast-primary-header-bar {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-shadow: none !important;
}

/* Header Links */
.main-header-menu .menu-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 0 15px;
}

/* Mobile Toggle Adjustment */
.main-header-menu-toggle {
    margin-top: 5px;
    /* Visual tweak */
}

/* Mobile Menu Container Overrides */
.ast-mobile-header-wrap {
    position: relative;
    z-index: 99999 !important;
    overflow: visible !important;
}

.ast-mobile-header-wrap .main-navigation {
    display: none;
    background: #ffffff !important;
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid #f0f0f0;
}

.ast-mobile-header-wrap .main-navigation.toggled {
    display: block;
}

.ast-mobile-header-wrap .main-navigation ul {
    padding: 0;
}

.ast-mobile-header-wrap .main-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.ast-mobile-header-wrap .main-navigation a {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
}

/* Hide desktop header on mobile / mobile on desktop */
@media (min-width: 922px) {
    #ast-mobile-header {
        display: none !important;
    }

    #ast-desktop-header {
        display: block !important;
    }
}

@media (max-width: 921px) {
    #ast-mobile-header {
        display: block !important;
    }

    #ast-desktop-header {
        display: none !important;
    }

    .ast-mobile-svg {
        fill: var(--primary-green) !important;
    }
}

/* =========================================
   5. SECONDARY NAVIGATION (Manual Implementation)
   ========================================= */
.secondary-nav {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    overflow-x: auto;
    width: 100%;
}

.secondary-nav-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    padding: 0 40px;
    max-width: 100%;
    margin: 0;
}

.secondary-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}

.secondary-nav a svg {
    width: 13px;
    height: 13px;
    display: block;
}

/* Phone Support for scroll */
@media (max-width: 768px) {
    .secondary-nav-inner {
        padding-right: 20px;
        /* Space for scroll */
    }
}

/* =========================================
   6. SEO BANNER
   ========================================= */
.seo-banner {
    background: linear-gradient(135deg, #1a5c2e 0%, #0d4a1f 100%);
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.seo-banner p {
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   7. CATEGORY FILTERS
   ========================================= */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    margin: 0 auto 20px;
    max-width: 400px;
}

.btn-cat {
    flex: 1;
    padding: 12px 24px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-cat:first-child {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.btn-cat:first-child:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-cat:last-child {
    background: #fff;
    color: #dc2626;
    border-color: #dc2626;
}

.btn-cat:last-child:hover {
    background: #fef2f2;
}

/* ===================================
   8. GAME CARD COMPONENT (Production Polish)
   =================================== */

.games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 48px;
    background: transparent;
}

.game-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 100px 12px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.game-card:hover {
    border-color: #d0d0d0;
}

/* Rank Badge */
.game-rank,
.game-card__rank {
    position: absolute;
    top: -4px;
    left: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Image */
.game-image,
.game-card__image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

.game-image img,
.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Content Container */
.game-info-wrapper,
.game-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

/* Title */
.game-title,
.game-card__title {
    margin: 0 0 3px 0;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

/* Mobile Layout */
.game-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.mobile-card-grid,
.game-card__meta-mobile {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}



/* Mobile Button */
.btn-download-mobile,
.game-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 32px;
    background: #3b82f6;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: capitalize;
    border-radius: 6px;
    white-space: nowrap;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-download-mobile:hover,
.game-card__btn:hover {
    background: #2563eb;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-download-mobile:active,
.game-card__btn:active {
    transform: translateY(0);
}

.mobile-bonus-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #ef4444;
    line-height: 1.4;
}

.mobile-withdraw-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #10b981;
    line-height: 1.4;
}

.mobile-bonus-text svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: #ef4444;
}

.mobile-withdraw-text svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: #10b981;
}

.btn-download-mobile svg,
.game-card__btn svg {
    width: 9px;
    height: 9px;
    margin-right: 3px;
    fill: currentColor;
}

/* Meta Text - Bonus */
.meta-bonus,
.game-card__bonus {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #ef4444;
    line-height: 1.3;
}

.meta-bonus svg,
.game-card__bonus svg {
    width: 10px;
    height: 10px;
    fill: #ef4444;
    flex-shrink: 0;
}

/* Meta Text - Withdraw */
.meta-withdraw,
.game-card__withdraw {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #10b981;
    line-height: 1.3;
}

.meta-withdraw svg,
.game-card__withdraw svg {
    width: 10px;
    height: 10px;
    fill: #10b981;
    flex-shrink: 0;
}

/* Desktop-only */
.desktop-actions,
.game-card__meta-desktop,
.game-card__action-desktop {
    display: none;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .games-list {
        gap: 20px;
        margin-bottom: 64px;
    }

    .game-card {
        align-items: center;
        gap: 24px;
        padding: 22px;
    }

    .game-rank,
    .game-card__rank {
        top: 10px;
        left: 10px;
        width: 28px;
        height: 28px;
        font-size: 13px;
        border: none;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    }

    .game-image,
    .game-card__image {
        width: 64px;
        height: 64px;
    }

    .game-info-wrapper,
    .game-card__content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 32px;
        min-height: auto;
        padding-top: 0;
    }

    .mobile-card-grid,
    .game-card__meta-mobile {
        display: none;
    }

    .game-title,
    .game-card__title {
        font-size: 16px;
        min-width: 150px;
        max-width: 200px;
        margin-bottom: 0;
    }

    .desktop-meta-col,
    .game-card__meta-desktop {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1;
    }

    .game-card__info-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 500;
        color: #404040;
        line-height: 1.5;
    }

    .game-card__icon {
        flex-shrink: 0;
        fill: currentColor;
        opacity: 0.85;
    }

    .game-card__icon--red {
        fill: #ef4444;
    }

    .game-card__icon--green {
        fill: #10b981;
    }

    .desktop-actions,
    .game-card__action-desktop {
        display: block;
    }

    .btn-download-desktop,
    .game-card__btn--large {
        height: 42px;
        padding: 0 28px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
        background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
        color: #fff;
        text-transform: uppercase;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-download-desktop:hover,
    .game-card__btn--large:hover {
        background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
        box-shadow: 0 6px 12px rgba(14, 165, 233, 0.3);
        transform: translateY(-1px);
    }

    .btn-download-desktop:active,
    .game-card__btn--large:active {
        transform: translateY(0);
    }
}

/* =========================================
   10. FOOTER
   ========================================= */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    margin-top: var(--space-xl);
    background: #fff;
}

.site-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0 0 10px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden-mobile {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .hidden-desktop {
        display: block !important;
    }
}

/* =========================================
   3. SECONDARY NAVIGATION (Below Header)
   ========================================= */
.secondary-nav {
    background: #fff;
    border-bottom: 3px solid #f0f0f0;
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.secondary-nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
}

.secondary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    font-family: var(--font-body);
}

.secondary-nav a svg {
    width: 14px;
    height: 14px;
}

/* =========================================
   4. SEO BANNER (Green Gradient)
   ========================================= */
.seo-banner {
    background-color: transparent;
    background-image: linear-gradient(160deg, #7ED9B9 51%, #7E7575 100%);
    padding: 12px 12px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.seo-banner p {
    max-width: 100%;
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* =========================================
   5. GAME CARD DESIGN
   ========================================= */
.games-list {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.game-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    position: relative;
    gap: 14px;
}

/* Rank Badge */
.game-rank {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Image */
.game-image {
    flex: 0 0 75px;
}

.game-image img {
    border-radius: 12px;
    width: 75px;
    height: 75px;
    object-fit: cover;
}

/* Details */
.game-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Desktop Info Layout */
.game-info-desktop {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.game-title {
    font-size: 16px;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.game-meta-row {
    font-size: 11px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-gift {
    color: var(--primary-red);
    width: 12px;
    height: 12px;
}

.icon-home {
    color: var(--primary-green);
    width: 12px;
    height: 12px;
}

/* Download Button (Desktop) */
.btn-download {
    background: #007BFF;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-download:hover {
    background: #0056b3;
    color: #fff;
}

.btn-download svg {
    width: 14px;
    fill: #fff;
}

/* =========================================
   6. MOBILE LAYOUT ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .game-card {
        padding: 19px;
        align-items: flex-start;
        /* Top align for mobile */
    }

    .game-rank {
        top: 5px;
        left: 5px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .game-image {
        flex: 0 0 60px;
    }

    .game-image img {
        width: 60px;
        height: 60px;
    }

    .game-details {
        flex-direction: column;
        /* Stack vertically on mobile */
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    .game-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    /* Mobile Custom Layout: Download Btn + Bonus inline */
    .mobile-meta-row {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .btn-download-mobile {
        background: #007BFF;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 6px;
        text-transform: capitalize;
        display: flex;
        align-items: center;
        gap: 5px;
        line-height: normal;
        text-decoration: none;
    }

    .btn-download-mobile svg {
        width: 14px;
        fill: #fff;
    }

    .mobile-bonus-text {
        font-size: 11px;
        font-weight: 500;
        color: #EB2800;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .mobile-withdraw-text {
        font-size: 11px;
        font-weight: 500;
        color: #00C198;
        display: flex;
        align-items: center;
        gap: 3px;
    }
}

/* =========================================
   7. CATEGORY BUTTONS
   ========================================= */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-cat {
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    text-align: center;
    text-decoration: none;
    border: none;
}

.btn-cat:first-child {
    background: #dc2626;
    color: #fff;
}

.btn-cat:first-child:hover {
    background: #b91c1c;
}

.btn-cat:last-child {
    background: #22c55e;
    color: #fff;
}

.btn-cat:last-child:hover {
    background: #16a34a;
}

/* =========================================
   8. OLD HEADER PRESERVATION
   ========================================= */
/* Specific overrides to keep the Header working as is */
#ast-mobile-header {
    display: none;
}

@media (max-width: 921px) {
    #ast-desktop-header {
        display: none !important;
    }

    #ast-mobile-header {
        display: block !important;
        border-bottom: 1px solid #eee;
    }

    .ast-mobile-svg {
        fill: var(--primary-green) !important;
    }

    .ast-mobile-header-wrap .main-navigation {
        display: none;
        /* JS toggles this */
        background: #fff;
        position: absolute;
        width: 100%;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .ast-mobile-header-wrap .main-navigation.toggled {
        display: block;
    }

    .ast-mobile-header-wrap .main-navigation ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f5f5f5;
        font-weight: 600;
        color: #333;
    }
}

@media (min-width: 922px) {
    #ast-desktop-header {
        display: block !important;
    }
}

/* Logo Alignment */
.site-branding img,
.custom-logo-link img {
    max-height: 50px;
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    border-top: 1px solid #eee;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

.site-footer p {
    font-size: 13px;
    color: #000000;
}

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


.ast-mobile-header-wrap .site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    text-decoration: none;
    line-height: 1.2;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Menus */
.main-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu-item {
    position: relative;
}

.menu-link {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.menu-link:hover {
    color: var(--primary-blue);
}

/* Secondary Menu (Top or Bottom bar) */
.ast-below-header-wrap {
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.ast-below-header-bar .menu-link {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Mobile Header Generic */
.ast-mobile-header-wrap {
    background: #fff;
    position: relative;
    border-bottom: 1px solid #eee;
}

.ast-mobile-header-content {
    display: none;
    /* Hidden by default, toggled via JS */
    background: #fff;
    padding: 10px 20px;
    border-top: 1px solid #eee;
}

.ast-mobile-header-content.is-active {
    display: block;
}

.ast-mobile-header-content .main-header-menu {
    flex-direction: column;
    gap: 10px;
}

/* Mobile Toggle Button */
.main-header-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ast-mobile-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Green Close Icon specifically */
.ast-close-svg {
    fill: #54B435 !important;
}

/* Social Icons Placeholder */
.header-social-inner-wrap {
    display: flex;
    gap: 10px;
}

/* Force visibility and alignment for Game List Download Button */
.element-last {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 25% !important;
}

.element-last .elementor-button {
    background-color: #007BFF !important;
    color: #ffffff !important;
    font-size: 13px !important;
    padding: 10px 15px !important;
    width: auto !important;
    display: inline-flex !important;
}

/* Ensure container allows wrapping but keeps structure */
.elementor-container {
    flex-wrap: wrap;
}

/* Mobile Responsiveness for Game List */
@media (max-width: 767px) {
    .element-last {
        width: 100% !important;
        margin-top: 10px;
        order: 4;
        /* Ensure it stays last if flex-direction is normal */
    }

    /* If reverse mobile is active, handle ordering */
    .elementor-reverse-mobile .elementor-container {
        flex-direction: row;
        /* Prevent reverse if it breaks layout */
    }

    /* Adjust other columns on mobile */
    /* Adjust other columns on mobile */
    /* REMOVED: Stack vertically on mobile like typical Elementor */
    /* We want to keep the horizontal layout for the game list */
    /* .elementor-column.elementor-col-25 { width: 100% !important; } */

    .elementor-container {
        flex-wrap: nowrap !important;
        /* Force single row */
        align-items: center;
        overflow: visible;
    }

    /* Column 1: Rank (Hidden ghost placeholder, badge absolute) */
    .elementor-col-25.element-first {
        position: absolute;
        left: 5px;
        top: 5px;
        width: 0 !important;
        padding: 0 !important;
        z-index: 20;
    }

    /* Column 2: Image (Left) */
    .elementor-col-25:nth-child(2) {
        width: 25% !important;
        padding-right: 5px;
    }

    /* Column 3: Details (Center) */
    .elementor-col-25:nth-child(3) {
        width: 45% !important;
        padding: 0 5px;
        text-align: left !important;
    }

    /* Column 4: Button (Right) */
    .elementor-col-25.element-last {
        width: 30% !important;
        padding-left: 5px;
        margin: 0 !important;
        justify-content: flex-end;
    }

    /* Mobile Typography Adjustments */
    .elementor-heading-title {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .elementor-icon-list-item {
        font-size: 10px !important;
    }

    .elementor-button {
        padding: 8px 10px !important;
        font-size: 11px !important;
        width: 100% !important;
        min-width: 80px;
    }
}

@media (min-width: 922px) {
    #ast-mobile-header {
        display: none !important;
    }
}

@media (max-width: 921px) {

    /* Hide desktop header */
    #ast-desktop-header {
        display: none !important;
    }

    /* Mobile Header Container */
    #ast-mobile-header {
        display: block !important;
        background-color: #ffffff;
        border-bottom: 1px solid #eeeeee;
    }

    /* Hide Navigation Links by default on Mobile */
    .ast-mobile-header-wrap .main-navigation {
        display: none;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Force Vertical Stack for Links */
    .ast-mobile-header-wrap .main-navigation ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .ast-mobile-header-wrap .main-navigation ul li {
        border-bottom: 1px solid #f0f0f0;
    }

    .ast-mobile-header-wrap .main-navigation ul li a {
        display: block;
        padding: 12px 20px;
        color: #333;
        font-weight: 500;
    }

    /* Show Navigation Links when Toggled */
    .ast-header-break-point .main-header-menu-toggle {
        display: block;
    }

    .ast-mobile-svg {
        fill: #54B435 !important;
    }
}

/* Visibility Utilities */
@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }

    .mobile-game-features.hidden-desktop {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Mobile Button Styling */
.mobile-game-features {
    margin-top: 5px;
}

.features-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.mobile-dl-btn-wrap {
    flex: 0 0 auto;
}

.btn-blue-sm {
    background-color: #007bff !important;
    font-size: 10px !important;
    padding: 6px 10px !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: 4px;
    line-height: 1;
    font-weight: 700;
}

.feature-text-wrap {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #333;
}

.feature-text {
    margin-left: 4px;
    font-weight: 500;
}

/* =========================================
   IMPORTANT NOTICE SECTION (PINK BOX)
   ========================================= */
.important-notice-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.important-notice-box {
    background: #fff5f5;
    border: 2px solid #f87171;
    border-radius: 8px;
    padding: 16px 20px;
}

.important-notice-box h4 {
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.important-notice-box .notice-content {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

/* =========================================
   THANKS MESSAGE
   ========================================= */
.thanks-message {
    text-align: center;
    padding: 20px;
}

.thanks-message p {
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* =========================================
   FOOTER MARQUEE
   ========================================= */
.footer-marquee {
    background: #000000;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.footer-marquee marquee {
    font-size: 15px;
    font-weight: 500;
    color: #f1f1f1;
}

/* =========================================
   ABOUT CONTENT SECTION
   ========================================= */
.about-content-section {
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
}

.about-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px 0;
}

.site-name-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 20px 0;
}

.about-full-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.about-full-content p {
    margin: 0 0 16px 0;
    text-align: justify;
}

.about-full-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 24px 0 12px 0;
}

.about-full-content strong {
    color: #000;
}

.about-full-content ul,
.about-full-content ol {
    padding-left: 20px;
    margin: 0 0 16px 0;
}

.about-full-content li {
    margin-bottom: 8px;
}

.about-full-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* =========================================
   GAME PAGE STYLING (Match RIGHT reference)
   ========================================= */

/* Game Page - Add top margin for header */
.elementor-6027 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Site Content - Reduce excess padding on game pages */
.site-content,
.ast-container,
#primary,
#main {
    padding-top: 0 !important;
}

/* Entry Content and Article - remove default WordPress padding */
.post-6027,
.post-6027 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Game Page Header Section - Tighter padding */
.elementor-6027 .elementor-element.elementor-element-690c051 {
    padding: 0px 15px 10px 15px !important;
    margin-top: -15px !important;
    margin-bottom: 0 !important;
}

/* Game Logo - Bigger and rounded */
.game-logo-img {
    border-radius: 20px !important;
    width: 125px !important;
    height: 125px !important;
    max-width: none !important;
    object-fit: cover !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Logo Column - Add right margin for spacing */
.game-logo-col {
    width: 40% !important;
    max-width: 40% !important;
    padding-right: 10px !important;
}

/* Game Title Column - Proper left margin */
.game-title-col {
    width: 60% !important;
    max-width: 60% !important;
}

.game-title-col>.elementor-element-populated {
    margin-left: 0 !important;
    padding-left: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Game Title - Bold and black */
.game-title-text {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin-bottom: 4px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
}

/* APK Link */
.elementor-6027 .elementor-element.elementor-element-7380818 a {
    color: #007BFF !important;
    font-weight: 300 !important;
    font-size: 18px !important;
}

/* Stats Grid Section */
.elementor-6027 .elementor-element.elementor-element-5ef3b42 {
    padding: 10px 0 !important;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 5px 15px !important;
}

/* Stats Columns - with borders */
.elementor-6027 .elementor-element.elementor-element-02aeeac>.elementor-element-populated,
.elementor-6027 .elementor-element.elementor-element-9ac9e96>.elementor-element-populated,
.elementor-6027 .elementor-element.elementor-element-999a63e>.elementor-element-populated {
    border-right: 1px solid #ccc !important;
    padding-right: 10px !important;
}

.elementor-6027 .elementor-element.elementor-element-f91bfb9>.elementor-element-populated {
    border-right: none !important;
}

/* Stats Icon Boxes */
.elementor-6027 .elementor-icon-box-wrapper {
    text-align: center !important;
    padding: 5px !important;
}

.elementor-6027 .elementor-icon-box-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.elementor-6027 .elementor-icon-box-description {
    font-size: 10px !important;
    color: #666 !important;
    margin-top: 2px !important;
}

/* Button Container Wrappers - Reduce Padding */
.elementor-6027 .elementor-element.elementor-element-99ef41b,
.elementor-6027 .elementor-element.elementor-element-cd6ff72,
.elementor-6027 .elementor-element.elementor-element-6a37907 {
    padding: 5px 15px !important;
    margin: 0 !important;
}

/* PRIMARY DOWNLOAD BUTTON - GREEN */
.elementor-6027 .elementor-element.elementor-element-61b8a7e .elementor-button {
    background-color: #0d6efd !important;
    background-image: none !important;
    border-radius: 50px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
}

.elementor-6027 .elementor-element.elementor-element-61b8a7e .elementor-button:hover {
    background-color: #0b5ed7 !important;
}

/* TELEGRAM BUTTON - Light green with border */
.elementor-6027 .elementor-element.elementor-element-5a3ab54 .elementor-button {
    background-color: #f8f9fa !important;
    color: #0d6efd !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
}

.elementor-6027 .elementor-element.elementor-element-5a3ab54 .elementor-button i {
    color: #0d6efd !important;
}

/* OTHER RELATED GAMES BUTTON - GREEN */
.elementor-6027 .elementor-element.elementor-element-c661029 .elementor-button {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
}

/* =========================================
   RELATED GAMES SECTION (Using game-card from index)
   ========================================= */

/* Games list inside game page - reduce margins */
.elementor-6027 .games-list {
    padding: 10px 0 !important;
    margin-bottom: 20px !important;
    gap: 10px !important;
}

/* Game cards inside game page - slight tweaks */
.elementor-6027 .game-card {
    margin: 0 !important;
}

/* Icon Box Icons Styling */
.elementor-6027 .elementor-icon {
    color: #000 !important;
    fill: #000 !important;
}

.elementor-6027 .elementor-icon i {
    font-size: 18px !important;
    color: #000 !important;
}



.elementor-6027 .elementor-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: #000 !important;
}

/* Icon Box Layout Tweaks */
.elementor-6027 .elementor-widget-icon-box .elementor-icon-box-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Description Box Padding */
.elementor-6027 .elementor-element.elementor-element-e309797 {
    padding: 10px 15px !important;
    margin: 0 !important;
}

.elementor-6027 .elementor-element.elementor-element-b240121 {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

/* Telegram Button SVG Icon  */
.elementor-6027 .elementor-element.elementor-element-5a3ab54 .elementor-button-icon svg {
    fill: #16a34a !important;
    width: 18px !important;
    height: 18px !important;
}

/* Other Related Games Button SVG Icon */
.elementor-6027 .elementor-element.elementor-element-c661029 .elementor-button-icon svg {
    fill: #fff !important;
    width: 16px !important;
    height: 16px !important;
}

/* Related Game Cards - Icon styling */
.box_shadow .elementor-icon-list-icon svg {
    width: 14px !important;
    height: 14px !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {

    /* Game Header - tighter spacing on mobile */
    .elementor-6027 .elementor-element.elementor-element-690c051 {
        padding: 10px 15px !important;
    }

    /* Game Logo - slightly smaller on mobile */
    .elementor-6027 .elementor-element.elementor-element-b6a35fe img {
        width: 95px !important;
        height: 95px !important;
    }

    /* Stats Grid - better mobile layout */
    .elementor-6027 .elementor-inner-section .elementor-col-20 {
        width: 25% !important;
    }

    /* Stats Icon Boxes - smaller font on mobile */
    .elementor-6027 .elementor-icon-box-title {
        font-size: 13px !important;
    }

    .elementor-6027 .elementor-icon-box-description {
        font-size: 9px !important;
    }

    /* Related Game Cards - mobile layout */
    .box_shadow {
        padding: 10px 12px !important;
    }

    .box_shadow .elementor-widget-image img {
        width: 55px !important;
        height: 55px !important;
    }

    .box_shadow .elementor-heading-title {
        font-size: 13px !important;
    }

    /* Number badge position on mobile */
    .p-ab {
        top: -5px !important;
        left: -5px !important;
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
    }

    /* Buttons - full width on mobile */
    .elementor-6027 .elementor-element.elementor-element-61b8a7e .elementor-button,
    .elementor-6027 .elementor-element.elementor-element-5a3ab54 .elementor-button,
    .elementor-6027 .elementor-element.elementor-element-c661029 .elementor-button {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    /* MOBILE MENU FIX (Push Down Content) */
    .site-header,
    .ast-mobile-header-wrap {
        z-index: 999999 !important;
        position: relative !important;
        overflow: visible !important;
        height: auto !important;
        /* Allow expansion */
    }

    .main-navigation {
        z-index: 999999 !important;
        position: relative !important;
        /* Push content down */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        display: none;
        /* Hidden by default, JS toggles this */
    }

    .main-navigation.toggled,
    .toggled .main-navigation {
        display: block !important;
    }

    .main-navigation ul {
        background: #ffffff !important;
        background-color: #ffffff !important;
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-navigation li {
        width: 100% !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .main-navigation a {
        display: block !important;
        /* Full width click area */
        width: 100% !important;
        padding: 12px 20px !important;
    }

    .site-content {
        z-index: 1 !important;
        position: relative !important;
    }
}