/* ==========================================================================
   Bamgru Website - Custom Styles & Upgrades (Centered & Unified Layout)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --bamgru-font-display: 'Montserrat', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bamgru-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bamgru-primary: #03a9f4;
    --bamgru-primary-dark: #0288d1;
    --bamgru-secondary: #10b981;
    --bamgru-accent: #f59e0b;
    --bamgru-danger: #ef4444;
    --bamgru-dark: #0f172a;
    --bamgru-slate: #334155;
    --bamgru-muted: #64748b;
    --bamgru-bg-light: #f8fafc;
    --bamgru-border: #e2e8f0;
}

/* ==========================================================================
   Typography Upgrade: Top Navigation Menu & Hero Header (All 5 Pages)
   ========================================================================== */

/* 1. Top Navigation Menu (HOME | GAMES | TEMPLATES | CONTACT | PRIVACY POLICY) */
ul.fm2_drop_mainmenu > li > a,
#drop_mainmenu > li > a,
#drop_mainmenu_mobile > li > a {
    font-family: var(--bamgru-font-display) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

ul.fm2_drop_mainmenu > li > a:hover,
ul.fm2_drop_mainmenu > li.current-menu-item > a,
ul.fm2_drop_mainmenu > li.current_page_item > a,
#drop_mainmenu > li > a:hover,
#drop_mainmenu > li.current-menu-item > a,
#drop_mainmenu > li.current_page_item > a {
    color: #38bdf8 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(4px);
}

.header-top {
    z-index: 10000 !important;
}

.header-top .navigation-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.header-top .main_menu_col {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* iPad Portrait & Mobile (<= 991px): Always show Hamburger Button (☰) */
@media only screen and (max-width: 991px) {
    div#drop_mainmenu_container {
        display: none !important;
    }

    a#fm2_drop_mainmenu_mobile_button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        margin-left: auto !important;
        cursor: pointer !important;
        border-radius: 10px !important;
        background: rgba(15, 23, 42, 0.45) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        backdrop-filter: blur(6px);
    }

    a#fm2_drop_mainmenu_mobile_button span.caption {
        color: #ffffff !important;
        background: none !important;
        padding: 0 !important;
        font-size: 28px !important;
        line-height: 1 !important;
    }

    a#fm2_drop_mainmenu_mobile_button span.caption:before {
        content: "\f0c9" !important;
        font-family: FontAwesome !important;
        margin: 0 !important;
        height: auto !important;
        width: auto !important;
        background: none !important;
    }

    .header-top.fixto-fixed a#fm2_drop_mainmenu_mobile_button,
    .header-top.coloured-nav a#fm2_drop_mainmenu_mobile_button {
        background: rgba(15, 23, 42, 0.08) !important;
        border-color: rgba(15, 23, 42, 0.15) !important;
    }

    .header-top.fixto-fixed a#fm2_drop_mainmenu_mobile_button span.caption,
    .header-top.coloured-nav a#fm2_drop_mainmenu_mobile_button span.caption {
        color: #0f172a !important;
    }
}

@media only screen and (min-width: 992px) {
    div#drop_mainmenu_container,
    div#drop_mainmenu_container ul.fm2_drop_mainmenu {
        display: block !important;
    }

    a#fm2_drop_mainmenu_mobile_button {
        display: none !important;
    }
}

/* 2. Hero Main Heading (HI, WE ARE INDIE GAME DEVELOPERS FROM VIETNAM. & Page Titles) */
.header-homepage h1.heading8,
.header h1.heading8,
h1.heading8 {
    font-family: var(--bamgru-font-display) !important;
    font-weight: 900 !important;
    font-size: clamp(2rem, 4.2vw, 3.3rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.025em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.55) !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 18px !important;
}

/* 3. Hero Subtitle & Hero Buttons */
.header-homepage p.header-subtitle,
.header p.header-subtitle,
p.header-subtitle {
    font-family: var(--bamgru-font-sans) !important;
    font-weight: 600 !important;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
    line-height: 1.6 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: #e0f2fe !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8) !important;
    max-width: 680px !important;
    text-align: center !important;
    margin: 0 auto 28px !important;
}

p.header-subtitle:empty {
    display: none !important;
    margin: 0 !important;
}

.header-buttons-wrapper a.button {
    font-family: var(--bamgru-font-display) !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 999px !important;
    padding: 13px 30px !important;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.header-buttons-wrapper a.button:hover {
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   CRITICAL FIX: Disable OnePage Express theme's global :before / :after
   table clearfix pseudo-elements that break CSS Grid & Flexbox alignment!
   ========================================================================== */
.bamgru-templates-wrapper,
.bamgru-templates-wrapper *,
.bamgru-contact-wrapper,
.bamgru-contact-wrapper *,
.bamgru-policy-wrapper,
.bamgru-policy-wrapper *,
.bamgru-games-wrapper,
.bamgru-games-wrapper *,
#features-7,
#features-7 *,
#team-1,
#team-1 * {
    box-sizing: border-box;
}

.bamgru-templates-wrapper div::before,
.bamgru-templates-wrapper div::after,
.bamgru-templates-wrapper ul::before,
.bamgru-templates-wrapper ul::after,
.bamgru-templates-wrapper article::before,
.bamgru-templates-wrapper article::after,
.bamgru-templates-wrapper section::before,
.bamgru-templates-wrapper section::after,
.bamgru-contact-wrapper div::before,
.bamgru-contact-wrapper div::after,
.bamgru-contact-wrapper ul::before,
.bamgru-contact-wrapper ul::after,
.bamgru-contact-wrapper article::before,
.bamgru-contact-wrapper article::after,
.bamgru-policy-wrapper div::before,
.bamgru-policy-wrapper div::after,
.bamgru-policy-wrapper ul::before,
.bamgru-policy-wrapper ul::after,
.bamgru-policy-wrapper article::before,
.bamgru-policy-wrapper article::after,
.bamgru-games-wrapper div::before,
.bamgru-games-wrapper div::after,
.bamgru-games-wrapper ul::before,
.bamgru-games-wrapper ul::after,
.bamgru-games-wrapper article::before,
.bamgru-games-wrapper article::after,
#features-7 div::before,
#features-7 div::after,
#features-7 article::before,
#features-7 article::after,
#features-7 section::before,
#features-7 section::after,
#team-1 div::before,
#team-1 div::after,
#team-1 article::before,
#team-1 article::after,
#team-1 section::before,
#team-1 section::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   Global Container & Header Centering Across All 5 Pages
   ========================================================================== */

.page-content .gridContainer,
#features-7 .gridContainer,
#team-1 .gridContainer,
.footer .gridContainer {
    width: 92% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    float: none !important;
}

/* Center Homepage & Inner Page Hero Headers + Darker Hero Overlay */
.header-homepage.color-overlay::before,
.header.color-overlay::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        180deg,
        rgba(6, 10, 20, 0.86) 0%,
        rgba(8, 13, 26, 0.78) 50%,
        rgba(6, 10, 20, 0.86) 100%
    ) !important;
    opacity: 1 !important;
    z-index: -1 !important;
    pointer-events: none;
}

.header-description-row::before,
.header-description-row::after,
.inner-header-description::before,
.inner-header-description::after,
.header-description::before,
.header-description::after,
.header-content::before,
.header-content::after,
.align-holder::before,
.align-holder::after {
    content: none !important;
    display: none !important;
}

.inner-header-description,
.header-description {
    width: 92% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
}

.header-homepage .header-description-row,
.header .header-description-row {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.header-content,
.header-content.header-content-right,
.header-content.header-content-centered {
    width: 100% !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    text-align: center !important;
}

.header-content .align-holder {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.header-buttons-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin: 20px auto 0 !important;
}

/* ==========================================================================
   Shared Intro Hero Banner (Used on Games, Templates, Contact, Privacy Policy)
   ========================================================================== */

.bamgru-templates-wrapper,
.bamgru-contact-wrapper,
.bamgru-policy-wrapper,
.bamgru-games-wrapper,
#features-7,
#team-1 {
    font-family: var(--bamgru-font-sans);
    color: var(--bamgru-slate);
}

.bamgru-templates-wrapper,
.bamgru-contact-wrapper,
.bamgru-policy-wrapper,
.bamgru-games-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 10px 0 40px;
}

.bamgru-templates-intro h2,
.bamgru-home-section-title,
.bamgru-game-spotlight-title,
.bamgru-game-card-title,
.template-title,
.bamgru-home-feat-body h4,
.bamgru-team-name {
    font-family: var(--bamgru-font-display) !important;
}

.bamgru-templates-intro {
    text-align: center !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    margin: 0 auto 44px !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bamgru-templates-intro-logo {
    max-width: 185px;
    height: auto;
    margin: 0 auto 18px !important;
    display: block !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.bamgru-templates-intro h2 {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 auto 14px !important;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
    text-align: center !important;
}

.bamgru-contact-hero-sub {
    color: #cbd5e1 !important;
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 22px !important;
    line-height: 1.65;
    text-align: center !important;
}

.bamgru-templates-badges,
.bamgru-contact-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 8px auto 0 !important;
    width: 100%;
}

.bamgru-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0 !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
}

.bamgru-badge-pill i {
    color: #38bdf8;
}

.bamgru-hero-email-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    background: linear-gradient(135deg, #03a9f4 0%, #0284c7 100%);
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px -5px rgba(3, 169, 244, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bamgru-hero-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(3, 169, 244, 0.6);
    color: #ffffff !important;
}

/* ==========================================================================
   Templates Page - Centered Product Cards
   ========================================================================== */

.template-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
    margin: 0 auto 48px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.template-card:hover {
    box-shadow: 0 20px 44px -12px rgba(15, 23, 42, 0.14);
}

/* Centered Card Header */
.template-card-header {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--bamgru-border);
    padding: 30px 32px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 18px;
}

.template-title-group {
    width: 100%;
    text-align: center !important;
}

.template-tag {
    display: inline-block;
    background: rgba(3, 169, 244, 0.12);
    color: #0284c7;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.template-card-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

/* Centered Pricing Boxes */
.template-pricing-group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 16px;
}

.price-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 24px;
    text-align: center !important;
    min-width: 170px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.price-box.price-box-featured {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35);
}

.price-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--bamgru-muted);
    margin-bottom: 3px;
}

.price-box.price-box-featured .price-label {
    color: #bae6fd;
}

.price-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--bamgru-dark);
    line-height: 1.1;
}

.price-box.price-box-featured .price-value {
    color: #ffffff;
}

/* Screenshot Gallery */
.template-gallery {
    padding: 28px 32px 8px;
}

.template-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100%;
}

.template-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bamgru-border);
    background: #0f172a;
    position: relative;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    margin: 0 !important;
}

.template-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.template-gallery-item:hover img {
    transform: scale(1.05);
}

/* Card Body: Balanced 2-Column Grid */
.template-card-body {
    padding: 24px 32px 28px;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    align-items: stretch !important;
}

.template-description {
    background: var(--bamgru-bg-light);
    border: 1px solid var(--bamgru-border);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex !important;
    flex-direction: column !important;
}

.template-section-heading {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.template-section-heading i {
    color: var(--bamgru-primary-dark);
}

.template-description p {
    font-size: 1rem;
    line-height: 1.66;
    color: var(--bamgru-slate);
    margin: 0 0 12px 0;
}

/* Demo Button Box */
.template-demo-box {
    margin-top: auto;
    padding: 14px 18px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;
    flex-wrap: wrap;
}

.template-demo-label {
    font-weight: 700;
    color: #0369a1;
    font-size: 0.96rem;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
}

.template-demo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.template-demo-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Changelog Grid */
.template-changelog-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 16px;
}

.template-changelog-card {
    background: #ffffff;
    border: 1px solid var(--bamgru-border);
    border-left: 4px solid var(--bamgru-secondary);
    border-radius: 10px;
    padding: 12px 14px;
}

.template-changelog-card h4 {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #047857 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.04em;
}

.template-changelog-card ul {
    margin: 0 !important;
    padding-left: 16px !important;
    font-size: 0.88rem;
    color: var(--bamgru-slate);
    line-height: 1.5;
}

/* Features List */
.template-features-box {
    background: var(--bamgru-bg-light);
    border: 1px solid var(--bamgru-border);
    border-radius: 14px;
    padding: 22px 24px;
}

.template-features-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.template-features-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--bamgru-slate);
    margin: 0 !important;
}

.template-features-list li i {
    color: var(--bamgru-secondary);
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Centered Card Footer Actions */
.template-card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--bamgru-border);
    padding: 22px 32px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 14px;
}

.template-footer-note {
    font-size: 0.92rem;
    color: var(--bamgru-muted);
    font-weight: 600;
}

.template-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}

.template-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 165px;
}

.template-btn-email {
    background: #ffffff;
    color: var(--bamgru-dark) !important;
    border: 1px solid #cbd5e1;
}

.template-btn-email:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.template-btn-sellmyapp {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.template-btn-sellmyapp:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

.template-btn-codester {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.template-btn-codester:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.38);
}

/* ==========================================================================
   Games Page - Centered Spotlight & 2-Column Equal Grid
   ========================================================================== */

.bamgru-game-spotlight {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    margin: 0 auto 40px !important;
    display: grid !important;
    grid-template-columns: 1.15fr 1fr !important;
    align-items: stretch !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bamgru-game-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.18);
}

.bamgru-game-spotlight-media {
    background: #0f172a;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    cursor: pointer;
}

.bamgru-game-spotlight-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease;
}

.bamgru-game-spotlight:hover .bamgru-game-spotlight-media img {
    transform: scale(1.04);
}

.bamgru-game-spotlight-content {
    padding: 32px 34px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.bamgru-game-badge-new {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 999px;
    margin: 0 auto 12px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bamgru-game-spotlight-title {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto 14px !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.bamgru-game-spotlight-desc {
    font-size: 1rem;
    line-height: 1.66;
    color: var(--bamgru-slate);
    margin: 0 auto 24px !important;
    text-align: center !important;
}

/* 2-Column Games Grid */
.bamgru-games-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    width: 100%;
    margin: 0 auto !important;
}

.bamgru-game-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0 !important;
}

.bamgru-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px -10px rgba(15, 23, 42, 0.15);
}

.bamgru-game-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
    border-bottom: 1px solid var(--bamgru-border);
    cursor: pointer;
}

.bamgru-game-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block !important;
    transition: transform 0.35s ease;
}

.bamgru-game-card:hover .bamgru-game-card-thumb img {
    transform: scale(1.05);
}

.bamgru-game-card-body {
    padding: 24px 26px 22px;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.bamgru-game-meta-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 auto 12px !important;
}

.bamgru-game-app-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
    border: 2px solid #ffffff !important;
    flex-shrink: 0;
}

.bamgru-game-genre-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
}

.bamgru-game-card-title {
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto 10px !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.bamgru-game-card-desc {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--bamgru-slate);
    margin: 0 auto 20px !important;
    flex: 1;
    text-align: center !important;
}

.bamgru-store-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: auto;
    width: 100%;
}

.bamgru-store-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 0 1 175px;
    min-width: 145px;
}

.bamgru-store-gplay {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.26);
}

.bamgru-store-gplay:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.36);
    color: #ffffff !important;
}

.bamgru-store-appstore {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.26);
}

.bamgru-store-appstore:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.36);
    color: #ffffff !important;
}

/* ==========================================================================
   Contact Page - Centered 2-Column Grid
   ========================================================================== */

.bamgru-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.25fr !important;
    gap: 28px !important;
    align-items: stretch !important;
    width: 100%;
    margin: 0 auto !important;
}

.bamgru-contact-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
    padding: 32px;
    display: flex !important;
    flex-direction: column !important;
}

.bamgru-contact-card-title {
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    text-align: center !important;
}

.bamgru-contact-card-title i {
    color: var(--bamgru-primary-dark);
}

.bamgru-contact-card-desc {
    color: var(--bamgru-muted);
    font-size: 0.96rem;
    margin: 0 0 24px 0 !important;
    text-align: center !important;
}

.bamgru-info-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    margin-bottom: 28px;
}

.bamgru-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    padding: 15px 18px;
    border-radius: 14px;
    background: var(--bamgru-bg-light);
    border: 1px solid var(--bamgru-border);
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-align: left;
}

.bamgru-info-item:hover {
    border-color: #bae6fd;
    transform: translateY(-2px);
}

.bamgru-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(3, 169, 244, 0.12);
    color: #0284c7;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bamgru-info-content span {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bamgru-muted);
    margin-bottom: 2px;
}

.bamgru-info-content a,
.bamgru-info-content strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bamgru-dark);
    text-decoration: none;
}

.bamgru-info-content a:hover {
    color: var(--bamgru-primary-dark);
}

.bamgru-social-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 0 0 !important;
    width: 100%;
}

.bamgru-social-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--bamgru-border);
    background: #ffffff;
    color: var(--bamgru-dark) !important;
    transition: all 0.2s ease;
}

.bamgru-social-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.bamgru-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -6px rgba(15, 23, 42, 0.12);
}

.bamgru-social-fb svg { fill: #1877f2; }
.bamgru-social-fb:hover { border-color: #1877f2; background: #f0f7ff; }

.bamgru-social-yt svg { fill: #ff0000; }
.bamgru-social-yt:hover { border-color: #ff0000; background: #fff5f5; }

.bamgru-social-gg svg { fill: #4285f4; }
.bamgru-social-gg:hover { border-color: #4285f4; background: #f4f8ff; }

/* Modern Comment Form */
.bamgru-modern-form p {
    margin: 0 0 16px 0;
    text-align: left;
}

.bamgru-modern-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bamgru-dark);
    margin-bottom: 6px;
}

.bamgru-modern-form .required {
    color: var(--bamgru-danger);
}

.bamgru-modern-form input[type="text"],
.bamgru-modern-form input[type="email"],
.bamgru-modern-form input[type="url"],
.bamgru-modern-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.98rem;
    color: var(--bamgru-dark);
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bamgru-modern-form input[type="text"]:focus,
.bamgru-modern-form input[type="email"]:focus,
.bamgru-modern-form input[type="url"]:focus,
.bamgru-modern-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.bamgru-form-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.bamgru-modern-form .comment-form-cookies-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    margin-top: 6px;
}

.bamgru-modern-form .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
    width: auto !important;
}

.bamgru-modern-form .comment-form-cookies-consent label {
    font-weight: 400;
    color: var(--bamgru-muted);
    font-size: 0.9rem;
    margin: 0;
}

.bamgru-modern-form .form-submit {
    text-align: center !important;
}

.bamgru-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 32px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.bamgru-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   Privacy Policy Page - Centered Document Card
   ========================================================================== */

.bamgru-policy-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
    padding: 40px 44px;
    margin: 0 auto !important;
}

.bamgru-policy-lead {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 5px solid #0284c7;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    font-size: 1.04rem;
    line-height: 1.7;
    color: #0f172a;
}

.bamgru-policy-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--bamgru-border);
}

.bamgru-policy-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.bamgru-policy-section h3 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 0 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    letter-spacing: 0.02em;
}

.bamgru-policy-section h3 i {
    color: #0284c7;
    font-size: 1.05rem;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(2, 132, 199, 0.1);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.bamgru-policy-section p {
    margin: 0 !important;
    font-size: 1.01rem;
    line-height: 1.72;
    color: var(--bamgru-slate);
}

.bamgru-permission-code {
    display: inline-block;
    background: #0f172a;
    color: #38bdf8;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 6px;
}

.bamgru-policy-contact-box {
    margin-top: 32px;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border: 1px solid var(--bamgru-border);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 18px;
}

.bamgru-policy-contact-info h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto 6px !important;
    justify-content: center !important;
}

.bamgru-policy-contact-info p {
    margin: 0 auto !important;
    color: var(--bamgru-slate);
    font-size: 0.98rem;
    text-align: center !important;
}

/* ==========================================================================
   Homepage Sections - Centered Featured Games & Team Cards
   ========================================================================== */

#features-7 {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    padding: 70px 0 65px !important;
}

.bamgru-home-section-header {
    text-align: center !important;
    max-width: 720px;
    margin: 0 auto 44px !important;
}

.bamgru-home-section-tag {
    display: inline-block;
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.bamgru-home-section-title {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto 10px !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.bamgru-home-section-sub {
    color: var(--bamgru-muted) !important;
    font-size: 1.08rem;
    margin: 0 auto !important;
    text-align: center !important;
}

.bamgru-home-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto !important;
}

.bamgru-home-feat-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0 !important;
}

.bamgru-home-feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.16);
}

.bamgru-home-feat-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
    border-bottom: 1px solid var(--bamgru-border);
}

.bamgru-home-feat-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.bamgru-home-feat-card:hover .bamgru-home-feat-img-wrap img {
    transform: scale(1.06);
}

.bamgru-home-feat-body {
    padding: 24px 24px 22px;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.bamgru-home-feat-body h4 {
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto 10px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

.bamgru-home-feat-body p {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--bamgru-slate);
    margin: 0 auto 20px !important;
    flex: 1;
    text-align: center !important;
}

.bamgru-home-learn-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    color: #0284c7 !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    margin-top: auto;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f0f9ff;
    transition: all 0.2s ease;
}

.bamgru-home-learn-btn:hover {
    background: #0284c7;
    color: #ffffff !important;
}

/* Team Section Upgrade */
#team-1 {
    padding: 70px 0 80px !important;
    background: #ffffff !important;
}

.bamgru-team-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
    width: 100%;
    max-width: 820px;
    margin: 0 auto !important;
}

.bamgru-team-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid var(--bamgru-border);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bamgru-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px -10px rgba(15, 23, 42, 0.14);
}

.bamgru-team-banner {
    width: 100%;
    height: 92px;
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
}

.bamgru-team-avatar-wrap {
    margin-top: -52px;
    margin-bottom: 14px;
}

.bamgru-team-avatar {
    width: 104px !important;
    height: 104px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    background: #ffffff;
}

.bamgru-team-body {
    padding: 0 28px 28px;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1;
}

.bamgru-team-name {
    font-size: 1.38rem !important;
    font-weight: 800 !important;
    color: var(--bamgru-dark) !important;
    margin: 0 auto 6px !important;
}

.bamgru-team-role {
    display: inline-block;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.bamgru-team-quote {
    color: var(--bamgru-slate);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 20px !important;
    font-style: italic;
    flex: 1;
}

.bamgru-team-socials {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    padding-top: 16px;
    border-top: 1px solid var(--bamgru-border);
    width: 100%;
}

.bamgru-team-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bamgru-bg-light);
    color: var(--bamgru-slate) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.bamgru-team-socials a:hover {
    background: #0284c7;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Centered 2-Column Footer (Address & Email Only)
   ========================================================================== */
.footer div::before,
.footer div::after {
    content: none !important;
    display: none !important;
}

.footer .row_202 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    max-width: 760px !important;
    margin: 0 auto !important;
}

.footer .column_210 {
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50% !important;
    min-height: 150px !important;
    padding: 28px 24px !important;
    border-left: 1px solid #3d3d3d !important;
    text-align: center !important;
}

.footer .column_210:last-child {
    border-right: 1px solid #3d3d3d !important;
}

@media only screen and (max-width: 600px) {
    .footer .column_210 {
        width: 100% !important;
        min-height: 110px !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid #3d3d3d !important;
    }
}

/* Lightbox Modal */
.bamgru-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.bamgru-lightbox.active {
    display: flex !important;
}

.bamgru-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

/* Responsive Breakpoints */
@media only screen and (max-width: 900px) {
    .template-card-body,
    .bamgru-game-spotlight,
    .bamgru-contact-grid,
    .bamgru-home-featured-grid {
        grid-template-columns: 1fr !important;
    }

    .bamgru-games-grid,
    .bamgru-team-grid {
        grid-template-columns: 1fr !important;
    }

    .template-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media only screen and (max-width: 600px) {
    .bamgru-templates-intro {
        padding: 28px 18px;
    }

    .bamgru-templates-intro h2 {
        font-size: 1.5rem !important;
    }

    .template-card-header,
    .template-gallery,
    .template-card-body,
    .template-card-footer,
    .bamgru-contact-card,
    .bamgru-policy-card,
    .bamgru-policy-contact-box {
        padding-left: 18px;
        padding-right: 18px;
    }

    .template-gallery-grid,
    .template-changelog-grid,
    .bamgru-form-row-2,
    .bamgru-social-grid {
        grid-template-columns: 1fr !important;
    }

    .template-btn,
    .bamgru-store-btn {
        flex: 1 1 100%;
    }
}
