/* ==========================================================================
   WORLD TO INDIA DISTRIBUTION SECTION (NEW)
   ========================================================================== */

.dist-section {
    padding: var(--spacing-xl) 0 0 0;
    background-color: var(--gnv-bg-light); 
    overflow: hidden;
}

/* 1. Header (Top Level) */
.dist-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.dist-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gnv-green);
    margin-bottom: 10px;
}

.dist-heading {
    font-family: var(--font-heading);
    font-size: var(--h2-size);
    color: var(--gnv-black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.dist-paragraph {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 2. Middle Section: Containers */
.dist-desktop-map-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.dist-mobile-map-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: none;
}

.dist-map-img {
    width: 100%;
    height: auto;
    display: block;
}


/* 3. Text Overlays (Desktop) - No background, WHITE text */
.dist-overlay {
    position: absolute;
    z-index: 5;
    text-align: left;
    text-shadow: 0px 2px 15px rgba(0,0,0,0.9), 0px 0px 10px rgba(0,0,0,0.7); /* Darker shadow for visibility */
}

.dist-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.dist-overlay p {
    font-size: 0.95rem;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.4;
    max-width: 250px;
}

/* Coordinates matching the reference image */
.overlay-world {
    top: 55%;
    left: 15%;
}

.overlay-center {
    top: 20%;
    left: 45%;
}

.overlay-india-top {
    top: 5%; /* Moved higher to not block Delhi pin */
    right: 8%;
}

.overlay-india-bottom {
    top: 50%;
    right: 2%; /* Moved further to the side */
}

/* 4. Map Pins (Desktop) */
.dist-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    cursor: pointer;
}

/* Radar Ping / Live Animation */
.pin-icon {
    width: 30px;
    height: 30px;
    background-color: var(--gnv-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
}

.pin-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--gnv-green);
    animation: radarPing 2s infinite ease-out;
}

@keyframes radarPing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.pin-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--gnv-green);
}

.pin-label {
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gnv-black);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Precise coordinates for India pins on DESKTOP-MAPS-scaled.webp */
.pin-delhi { top: 25%; left: 74%; }
.pin-kolkata { top: 44%; left: 86%; }
.pin-mumbai { top: 48%; left: 69%; }
.pin-chennai { top: 65%; left: 73%; }


/* 5. Mobile Map Text */
.dist-mobile-text {
    padding: var(--spacing-md);
    background: var(--gnv-bg-light);
}

.dist-mobile-item {
    background: var(--gnv-black); /* Dark background for mobile to show white text */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dist-mobile-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.dist-mobile-item p {
    font-size: 0.95rem;
    color: #f0f0f0;
    margin: 0;
}


/* 6. Bottom Icon Grid (Desktop over Image) */
.dist-icon-grid {
    position: absolute;
    bottom: 5%;
    left: 5%;
    right: 5%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
    z-index: 10;
}

.dist-icon-grid-mobile {
    display: none;
}

.dist-icon-item {
    padding: 10px;
}

.dist-icon-item .dist-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    display: block;
    object-fit: contain;
}

.dist-icon-item .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--gnv-green); /* Or white if user wants this white too, but usually icons are colored */
    margin-bottom: 10px;
}

.dist-icon-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.7);
}

.dist-icon-item p {
    font-size: 0.8rem;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.7);
}


/* 7. Media Queries */
@media (max-width: 991px) {
    .dist-desktop-map-container {
        display: none;
    }
    
    .dist-mobile-map-container {
        display: block;
    }
    
    .dist-icon-grid {
        display: none;
    }

    /* Mobile Text Overlays */
    .mobile-overlays-wrapper {
        position: absolute;
        top: 5%;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        z-index: 5;
    }
    
    .dist-mobile-map-container .dist-overlay {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        text-align: center;
        width: 90%;
        margin: 0 auto;
    }

    /* Scale down text for mobile overlays */
    .dist-mobile-map-container .dist-overlay h3 {
        font-size: 0.9rem;
    }
    
    .dist-mobile-map-container .dist-overlay p {
        font-size: 0.75rem;
    }

    /* Mobile Map Pins - scaled down */
    .dist-mobile-map-container .dist-pin {
        transform: scale(0.65);
        transform-origin: center center;
    }

    .m-pin-delhi { top: 67%; left: 54%; }
    .m-pin-kolkata { top: 77%; left: 75%; }
    .m-pin-mumbai { top: 79%; left: 45%; }
    .m-pin-chennai { top: 86%; left: 55%; }

    /* Mobile grid below map */
    .dist-icon-grid-mobile {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: var(--spacing-xl) var(--spacing-md);
        background: var(--gnv-bg-light);
        text-align: center;
    }
    
    .dist-icon-grid-mobile .dist-icon-item {
        padding: 5px;
    }

    .dist-icon-grid-mobile .dist-icon-item .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
        color: var(--gnv-green);
        margin-bottom: 10px;
    }

    .dist-icon-grid-mobile .dist-icon-item h4 {
        color: var(--gnv-black);
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
    }
    
    .dist-icon-grid-mobile .dist-icon-item:nth-child(5) {
        grid-column: span 2;
    }

    .dist-heading {
        font-size: 2.2rem;
    }
}
