/* =========================================
   GLOBAL REACH SECTION - REDESIGNED
   Custom Image Background with Color Overlay
   Premium Map and Country Display
   ========================================= */

/* GLOBAL REACH SECTION - Image Background with Overlay */
section[style*="Global Reach"],
section:has([style*="Global Reach"]),
section:has(#globalMap),
.global-section,
.wka-global-section,
.wka-front-page-content section:has([style*="We Operate"]) {
    background:
        linear-gradient(135deg, rgba(128, 0, 32, 0.88) 0%, rgba(10, 10, 20, 0.92) 100%),
        url('../images/global.png') center/cover fixed !important;
    position: relative !important;
    padding: 80px 0 !important;
}

/* Remove any old pattern overlay */
section[style*="Global Reach"]::before,
section:has(#globalMap)::before,
.global-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(128, 0, 32, 0.1) 0%, transparent 40%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Ensure content is above overlay */
section[style*="Global Reach"]>div,
section:has(#globalMap)>.container,
.global-section>.container {
    position: relative !important;
    z-index: 1 !important;
}

/* ==========================================
   TYPOGRAPHY - WHITE/GOLD
   ========================================== */

/* Section Tag - Gold */
section[style*="Global Reach"] span[style*="border-radius: 50px"],
section:has(#globalMap) span[style*="border-radius: 50px"],
.global-section .section-tag {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.35) !important;
    padding: 10px 24px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

/* Section Title - White with Gold accent */
section[style*="Global Reach"] h2,
section:has(#globalMap) h2,
.global-section h2 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4) !important;
}

section[style*="Global Reach"] h2 span,
section:has(#globalMap) h2 span,
.global-section h2 span {
    color: #FFD700 !important;
}

/* Section Description */
section[style*="Global Reach"] h2+p,
section:has(#globalMap)>div>div>p,
.global-section>.container>div>p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
    max-width: 700px !important;
    margin: 0 auto 2rem !important;
}

/* ==========================================
   MAP CONTAINER - Enhanced
   ========================================== */
#globalMap {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(255, 215, 0, 0.2) !important;
    margin: 2rem 0 3rem !important;
}

/* Map hover effect */
#globalMap:hover {
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.15) !important;
}

/* ==========================================
   STATS/COUNTRIES DISPLAY
   ========================================== */
section[style*="Global Reach"] [style*="display: flex"][style*="justify-content: center"],
section:has(#globalMap) [style*="display: flex"][style*="gap: 3rem"],
.global-section .stats-container {
    display: flex !important;
    justify-content: center !important;
    gap: 4rem !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
}

/* Individual stat item */
section[style*="Global Reach"] [style*="text-align: center"],
section:has(#globalMap) [style*="display: flex"]>[style*="text-align: center"],
.global-section .stat-item {
    text-align: center !important;
    padding: 1.5rem 2rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.4s ease !important;
    min-width: 140px !important;
}

section[style*="Global Reach"] [style*="text-align: center"]:hover,
.global-section .stat-item:hover {
    transform: translateY(-8px) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.15) !important;
}

/* Stat Numbers */
section[style*="Global Reach"] [style*="font-size: 2.5rem"],
section:has(#globalMap) span[style*="font-size: 2.5rem"],
.global-section .stat-number {
    display: block !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 0.5rem !important;
    text-shadow: none !important;
}

/* Stat Labels */
section[style*="Global Reach"] [style*="color: rgba(255,255,255,0.6)"],
section:has(#globalMap) span[style*="rgba(255,255,255,0.6)"],
.global-section .stat-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Divider between stats */
section[style*="Global Reach"] [style*="width: 1px"][style*="height: 35px"],
section:has(#globalMap) [style*="background: rgba(255,255,255,0.2)"][style*="width: 1px"] {
    display: none !important;
}

/* ==========================================
   COUNTRY BADGES (if present)
   ========================================== */
.country-tag,
[style*="background: rgba(255,215,0,0.1)"][style*="border-radius"] {
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 215, 0, 0.1) !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    color: #FFD700 !important;
}

.country-tag:hover,
[style*="background: rgba(255,215,0,0.1)"][style*="border-radius"]:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2) !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {

    section[style*="Global Reach"] [style*="display: flex"][style*="gap: 3rem"],
    section:has(#globalMap) [style*="display: flex"][style*="gap: 3rem"] {
        gap: 2rem !important;
    }

    #globalMap {
        height: 500px !important;
    }
}

@media (max-width: 768px) {

    section[style*="Global Reach"],
    section:has(#globalMap),
    .global-section {
        padding: 60px 0 !important;
    }

    section[style*="Global Reach"] h2,
    section:has(#globalMap) h2 {
        font-size: 1.75rem !important;
    }

    #globalMap {
        height: 400px !important;
        margin: 1.5rem -15px 2rem !important;
        border-radius: 0 !important;
    }

    section[style*="Global Reach"] [style*="display: flex"][style*="gap: 3rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {

    section[style*="Global Reach"] [style*="font-size: 2.5rem"],
    .global-section .stat-number {
        font-size: 2.25rem !important;
    }

    #globalMap {
        height: 350px !important;
    }
}