// Global Educational Institutions Dataset
// 180 universities, schools, and educational centers worldwide
// Includes literacy data and educational metrics by region

const educationData = {
    "type": "FeatureCollection",
    "features": [
        // NORTH AMERICA - World-class universities with high literacy
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-71.1167, 42.3736] },
          "properties": { "name": "Harvard University", "country": "USA", "type": "University", "quality": 98, "enrollment": 23000, "literacy": 99, "funding": 5100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.1697, 37.4275] },
          "properties": { "name": "Stanford University", "country": "USA", "type": "University", "quality": 97, "enrollment": 17000, "literacy": 99, "funding": 4800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-71.0942, 42.3601] },
          "properties": { "name": "MIT", "country": "USA", "type": "University", "quality": 98, "enrollment": 11500, "literacy": 99, "funding": 5200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-73.9626, 40.8075] },
          "properties": { "name": "Columbia University", "country": "USA", "type": "University", "quality": 95, "enrollment": 33000, "literacy": 99, "funding": 4200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-118.4452, 34.0689] },
          "properties": { "name": "UCLA", "country": "USA", "type": "University", "quality": 92, "enrollment": 45000, "literacy": 99, "funding": 3800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3088, 47.6553] },
          "properties": { "name": "University of Washington", "country": "USA", "type": "University", "quality": 89, "enrollment": 48000, "literacy": 99, "funding": 3200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-87.6008, 41.7886] },
          "properties": { "name": "University of Chicago", "country": "USA", "type": "University", "quality": 96, "enrollment": 17000, "literacy": 99, "funding": 4500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-79.3832, 43.6629] },
          "properties": { "name": "University of Toronto", "country": "Canada", "type": "University", "quality": 91, "enrollment": 93000, "literacy": 99, "funding": 2800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-73.5783, 45.5048] },
          "properties": { "name": "McGill University", "country": "Canada", "type": "University", "quality": 89, "enrollment": 40000, "literacy": 99, "funding": 2500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-123.2460, 49.2606] },
          "properties": { "name": "University of British Columbia", "country": "Canada", "type": "University", "quality": 88, "enrollment": 65000, "literacy": 99, "funding": 2600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-99.1332, 19.4326] },
          "properties": { "name": "UNAM", "country": "Mexico", "type": "University", "quality": 78, "enrollment": 350000, "literacy": 95, "funding": 1200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-99.1844, 19.3371] },
          "properties": { "name": "Tec de Monterrey", "country": "Mexico", "type": "University", "quality": 82, "enrollment": 90000, "literacy": 95, "funding": 1800 }},

        // SOUTH AMERICA - Growing education sectors
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-46.7297, -23.5611] },
          "properties": { "name": "University of São Paulo", "country": "Brazil", "type": "University", "quality": 84, "enrollment": 96000, "literacy": 93, "funding": 1500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-43.2315, -22.8608] },
          "properties": { "name": "Federal University of Rio", "country": "Brazil", "type": "University", "quality": 79, "enrollment": 67000, "literacy": 93, "funding": 1100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-58.3816, -34.6037] },
          "properties": { "name": "University of Buenos Aires", "country": "Argentina", "type": "University", "quality": 81, "enrollment": 310000, "literacy": 99, "funding": 900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-70.6483, -33.4569] },
          "properties": { "name": "Pontifical Catholic University", "country": "Chile", "type": "University", "quality": 83, "enrollment": 30000, "literacy": 97, "funding": 1400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-74.0721, 4.6097] },
          "properties": { "name": "National University of Colombia", "country": "Colombia", "type": "University", "quality": 76, "enrollment": 53000, "literacy": 95, "funding": 800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-77.0428, -12.0464] },
          "properties": { "name": "University of Lima", "country": "Peru", "type": "University", "quality": 73, "enrollment": 25000, "literacy": 94, "funding": 700 }},

        // EUROPE - Historic institutions, high quality
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-0.1278, 51.5074] },
          "properties": { "name": "Imperial College London", "country": "UK", "type": "University", "quality": 96, "enrollment": 19000, "literacy": 99, "funding": 4100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [0.1276, 52.2053] },
          "properties": { "name": "University of Cambridge", "country": "UK", "type": "University", "quality": 98, "enrollment": 24000, "literacy": 99, "funding": 5000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-1.2544, 51.7520] },
          "properties": { "name": "University of Oxford", "country": "UK", "type": "University", "quality": 98, "enrollment": 24000, "literacy": 99, "funding": 4900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [11.5820, 48.1351] },
          "properties": { "name": "Technical University Munich", "country": "Germany", "type": "University", "quality": 92, "enrollment": 42000, "literacy": 99, "funding": 3400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [8.5417, 47.3769] },
          "properties": { "name": "ETH Zurich", "country": "Switzerland", "type": "University", "quality": 97, "enrollment": 23000, "literacy": 99, "funding": 4600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [2.3522, 48.8566] },
          "properties": { "name": "Sorbonne University", "country": "France", "type": "University", "quality": 88, "enrollment": 55000, "literacy": 99, "funding": 2400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [4.4777, 51.9244] },
          "properties": { "name": "Delft University", "country": "Netherlands", "type": "University", "quality": 90, "enrollment": 26000, "literacy": 99, "funding": 3100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [12.4964, 41.9028] },
          "properties": { "name": "Sapienza University Rome", "country": "Italy", "type": "University", "quality": 83, "enrollment": 115000, "literacy": 99, "funding": 1900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-3.7038, 40.4168] },
          "properties": { "name": "Complutense University", "country": "Spain", "type": "University", "quality": 80, "enrollment": 86000, "literacy": 98, "funding": 1600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [18.0649, 59.3473] },
          "properties": { "name": "KTH Royal Institute", "country": "Sweden", "type": "University", "quality": 89, "enrollment": 13000, "literacy": 99, "funding": 2900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [10.7220, 59.9139] },
          "properties": { "name": "University of Oslo", "country": "Norway", "type": "University", "quality": 86, "enrollment": 28000, "literacy": 99, "funding": 2700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [12.2683, 55.6861] },
          "properties": { "name": "University of Copenhagen", "country": "Denmark", "type": "University", "quality": 87, "enrollment": 37000, "literacy": 99, "funding": 2800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [24.9384, 60.1699] },
          "properties": { "name": "University of Helsinki", "country": "Finland", "type": "University", "quality": 85, "enrollment": 31000, "literacy": 100, "funding": 2500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [21.0122, 52.2297] },
          "properties": { "name": "University of Warsaw", "country": "Poland", "type": "University", "quality": 77, "enrollment": 44000, "literacy": 100, "funding": 1300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [14.3920, 50.0755] },
          "properties": { "name": "Charles University", "country": "Czech Republic", "type": "University", "quality": 79, "enrollment": 50000, "literacy": 99, "funding": 1400 }},

        // ASIA-PACIFIC - Rapidly developing education
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [139.7690, 35.7148] },
          "properties": { "name": "University of Tokyo", "country": "Japan", "type": "University", "quality": 94, "enrollment": 28000, "literacy": 99, "funding": 3600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [135.7681, 35.0263] },
          "properties": { "name": "Kyoto University", "country": "Japan", "type": "University", "quality": 91, "enrollment": 23000, "literacy": 99, "funding": 3200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [116.3074, 40.0000] },
          "properties": { "name": "Tsinghua University", "country": "China", "type": "University", "quality": 96, "enrollment": 48000, "literacy": 97, "funding": 4200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [116.3105, 39.9925] },
          "properties": { "name": "Peking University", "country": "China", "type": "University", "quality": 95, "enrollment": 45000, "literacy": 97, "funding": 4000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [121.4457, 31.0294] },
          "properties": { "name": "Fudan University", "country": "China", "type": "University", "quality": 90, "enrollment": 35000, "literacy": 97, "funding": 3000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [121.5422, 31.0280] },
          "properties": { "name": "Shanghai Jiao Tong", "country": "China", "type": "University", "quality": 89, "enrollment": 42000, "literacy": 97, "funding": 2900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [126.9583, 37.4601] },
          "properties": { "name": "Seoul National University", "country": "South Korea", "type": "University", "quality": 92, "enrollment": 28000, "literacy": 98, "funding": 3400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [103.8198, 1.2966] },
          "properties": { "name": "National University Singapore", "country": "Singapore", "type": "University", "quality": 95, "enrollment": 39000, "literacy": 97, "funding": 3800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [103.7764, 1.3483] },
          "properties": { "name": "Nanyang Tech University", "country": "Singapore", "type": "University", "quality": 92, "enrollment": 33000, "literacy": 97, "funding": 3300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [121.2406, 31.0276] },
          "properties": { "name": "Zhejiang University", "country": "China", "type": "University", "quality": 88, "enrollment": 58000, "literacy": 97, "funding": 2700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [114.1095, 22.3964] },
          "properties": { "name": "Hong Kong University", "country": "Hong Kong", "type": "University", "quality": 93, "enrollment": 30000, "literacy": 95, "funding": 3500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [120.9971, 14.6504] },
          "properties": { "name": "University of Philippines", "country": "Philippines", "type": "University", "quality": 72, "enrollment": 57000, "literacy": 96, "funding": 900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [106.8270, -6.3662] },
          "properties": { "name": "University of Indonesia", "country": "Indonesia", "type": "University", "quality": 70, "enrollment": 47000, "literacy": 96, "funding": 800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [100.5018, 13.7367] },
          "properties": { "name": "Chulalongkorn University", "country": "Thailand", "type": "University", "quality": 75, "enrollment": 39000, "literacy": 93, "funding": 1000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [101.6869, 3.1319] },
          "properties": { "name": "University of Malaya", "country": "Malaysia", "type": "University", "quality": 77, "enrollment": 22000, "literacy": 95, "funding": 1200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [105.8342, 21.0285] },
          "properties": { "name": "Vietnam National University", "country": "Vietnam", "type": "University", "quality": 68, "enrollment": 60000, "literacy": 95, "funding": 600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [151.1879, -33.8885] },
          "properties": { "name": "University of Sydney", "country": "Australia", "type": "University", "quality": 90, "enrollment": 73000, "literacy": 99, "funding": 2900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [144.9631, -37.7964] },
          "properties": { "name": "University of Melbourne", "country": "Australia", "type": "University", "quality": 91, "enrollment": 51000, "literacy": 99, "funding": 3100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [174.7633, -36.8485] },
          "properties": { "name": "University of Auckland", "country": "New Zealand", "type": "University", "quality": 85, "enrollment": 43000, "literacy": 99, "funding": 2200 }},

        // MIDDLE EAST - Investment in education
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [34.8053, 32.0668] },
          "properties": { "name": "Tel Aviv University", "country": "Israel", "type": "University", "quality": 89, "enrollment": 30000, "literacy": 98, "funding": 2800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [51.4231, 25.3180] },
          "properties": { "name": "Qatar University", "country": "Qatar", "type": "University", "quality": 80, "enrollment": 19000, "literacy": 93, "funding": 3500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [51.4900, 25.2948] },
          "properties": { "name": "Hamad Bin Khalifa University", "country": "Qatar", "type": "University", "quality": 82, "enrollment": 600, "literacy": 93, "funding": 4800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [54.3773, 24.4539] },
          "properties": { "name": "UAE University", "country": "UAE", "type": "University", "quality": 78, "enrollment": 14000, "literacy": 93, "funding": 2600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [46.6753, 24.7136] },
          "properties": { "name": "King Saud University", "country": "Saudi Arabia", "type": "University", "quality": 76, "enrollment": 70000, "literacy": 95, "funding": 2400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [35.9106, 31.9454] },
          "properties": { "name": "University of Jordan", "country": "Jordan", "type": "University", "quality": 71, "enrollment": 37000, "literacy": 98, "funding": 800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [35.4951, 33.8938] },
          "properties": { "name": "American University Beirut", "country": "Lebanon", "type": "University", "quality": 81, "enrollment": 9000, "literacy": 94, "funding": 1900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [51.3890, 35.7023] },
          "properties": { "name": "University of Tehran", "country": "Iran", "type": "University", "quality": 74, "enrollment": 45000, "literacy": 85, "funding": 900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [44.3661, 33.3152] },
          "properties": { "name": "University of Baghdad", "country": "Iraq", "type": "University", "quality": 58, "enrollment": 63000, "literacy": 86, "funding": 400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [31.2357, 30.0444] },
          "properties": { "name": "Cairo University", "country": "Egypt", "type": "University", "quality": 69, "enrollment": 230000, "literacy": 71, "funding": 600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [36.8219, 33.5138] },
          "properties": { "name": "Damascus University", "country": "Syria", "type": "University", "quality": 52, "enrollment": 130000, "literacy": 86, "funding": 300 }},

        // AFRICA - Diverse development levels
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [18.4615, -33.9577] },
          "properties": { "name": "University of Cape Town", "country": "South Africa", "type": "University", "quality": 82, "enrollment": 29000, "literacy": 87, "funding": 1600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [28.0473, -26.1929] },
          "properties": { "name": "University of Witwatersrand", "country": "South Africa", "type": "University", "quality": 79, "enrollment": 38000, "literacy": 87, "funding": 1400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [36.8172, -1.2841] },
          "properties": { "name": "University of Nairobi", "country": "Kenya", "type": "University", "quality": 65, "enrollment": 84000, "literacy": 82, "funding": 500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [3.3792, 6.5244] },
          "properties": { "name": "University of Lagos", "country": "Nigeria", "type": "University", "quality": 62, "enrollment": 58000, "literacy": 62, "funding": 450 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [7.0926, 9.0765] },
          "properties": { "name": "University of Abuja", "country": "Nigeria", "type": "University", "quality": 60, "enrollment": 35000, "literacy": 62, "funding": 400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [38.7578, 9.0320] },
          "properties": { "name": "Addis Ababa University", "country": "Ethiopia", "type": "University", "quality": 58, "enrollment": 48000, "literacy": 52, "funding": 300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [32.6032, -25.7545] },
          "properties": { "name": "University of Pretoria", "country": "South Africa", "type": "University", "quality": 76, "enrollment": 53000, "literacy": 87, "funding": 1200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [30.0619, -1.9403] },
          "properties": { "name": "University of Rwanda", "country": "Rwanda", "type": "University", "quality": 56, "enrollment": 31000, "literacy": 75, "funding": 250 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [32.5825, 0.3476] },
          "properties": { "name": "Makerere University", "country": "Uganda", "type": "University", "quality": 61, "enrollment": 40000, "literacy": 77, "funding": 380 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [39.2083, -6.7924] },
          "properties": { "name": "University of Dar es Salaam", "country": "Tanzania", "type": "University", "quality": 59, "enrollment": 24000, "literacy": 78, "funding": 320 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-1.5616, 6.6745] },
          "properties": { "name": "University of Ghana", "country": "Ghana", "type": "University", "quality": 67, "enrollment": 40000, "literacy": 79, "funding": 550 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-17.4677, 14.7167] },
          "properties": { "name": "Cheikh Anta Diop University", "country": "Senegal", "type": "University", "quality": 63, "enrollment": 95000, "literacy": 52, "funding": 420 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [10.1815, 36.8065] },
          "properties": { "name": "University of Tunis", "country": "Tunisia", "type": "University", "quality": 70, "enrollment": 30000, "literacy": 82, "funding": 700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [3.0587, 36.7538] },
          "properties": { "name": "University of Algiers", "country": "Algeria", "type": "University", "quality": 66, "enrollment": 58000, "literacy": 81, "funding": 600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-7.9811, 31.6295] },
          "properties": { "name": "Mohammed V University", "country": "Morocco", "type": "University", "quality": 68, "enrollment": 80000, "literacy": 74, "funding": 650 }},

        // SOUTH ASIA - Large enrollment, developing quality
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [77.2090, 28.6139] },
          "properties": { "name": "University of Delhi", "country": "India", "type": "University", "quality": 75, "enrollment": 132000, "literacy": 74, "funding": 900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [80.2330, 13.0067] },
          "properties": { "name": "Indian Institute of Technology Madras", "country": "India", "type": "University", "quality": 88, "enrollment": 10000, "literacy": 74, "funding": 2400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [72.9151, 19.1334] },
          "properties": { "name": "IIT Bombay", "country": "India", "type": "University", "quality": 89, "enrollment": 11000, "literacy": 74, "funding": 2500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [88.4248, 22.4991] },
          "properties": { "name": "Indian Institute Science", "country": "India", "type": "University", "quality": 87, "enrollment": 4600, "literacy": 74, "funding": 2300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [67.0682, 24.8607] },
          "properties": { "name": "University of Karachi", "country": "Pakistan", "type": "University", "quality": 64, "enrollment": 24000, "literacy": 58, "funding": 400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [73.1260, 33.6844] },
          "properties": { "name": "NUST Pakistan", "country": "Pakistan", "type": "University", "quality": 72, "enrollment": 18000, "literacy": 58, "funding": 800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [90.3563, 23.7275] },
          "properties": { "name": "University of Dhaka", "country": "Bangladesh", "type": "University", "quality": 61, "enrollment": 46000, "literacy": 74, "funding": 380 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [79.9617, 6.7957] },
          "properties": { "name": "University of Colombo", "country": "Sri Lanka", "type": "University", "quality": 69, "enrollment": 12000, "literacy": 92, "funding": 600 }},

        // CENTRAL ASIA & EASTERN EUROPE
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [37.6173, 55.7558] },
          "properties": { "name": "Moscow State University", "country": "Russia", "type": "University", "quality": 85, "enrollment": 47000, "literacy": 100, "funding": 1800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [30.3609, 59.8944] },
          "properties": { "name": "St. Petersburg State", "country": "Russia", "type": "University", "quality": 80, "enrollment": 32000, "literacy": 100, "funding": 1400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [30.5234, 50.4501] },
          "properties": { "name": "Taras Shevchenko University", "country": "Ukraine", "type": "University", "quality": 73, "enrollment": 26000, "literacy": 100, "funding": 600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [69.2787, 41.2995] },
          "properties": { "name": "National University Uzbekistan", "country": "Uzbekistan", "type": "University", "quality": 62, "enrollment": 22000, "literacy": 100, "funding": 400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [71.4704, 51.1694] },
          "properties": { "name": "Nazarbayev University", "country": "Kazakhstan", "type": "University", "quality": 75, "enrollment": 4400, "literacy": 100, "funding": 1800 }},

        // Additional Schools and Regional Education Centers (60 more institutions)

        // USA - Regional Universities
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-84.3880, 33.7756] },
          "properties": { "name": "Georgia Tech", "country": "USA", "type": "University", "quality": 91, "enrollment": 37000, "literacy": 99, "funding": 3200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-78.5080, 38.0336] },
          "properties": { "name": "University of Virginia", "country": "USA", "type": "University", "quality": 88, "enrollment": 25000, "literacy": 99, "funding": 2800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-79.9959, 40.4406] },
          "properties": { "name": "Carnegie Mellon", "country": "USA", "type": "University", "quality": 93, "enrollment": 15000, "literacy": 99, "funding": 3600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-75.1932, 39.9526] },
          "properties": { "name": "University of Pennsylvania", "country": "USA", "type": "University", "quality": 94, "enrollment": 26000, "literacy": 99, "funding": 3900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-86.2362, 41.7001] },
          "properties": { "name": "University of Notre Dame", "country": "USA", "type": "University", "quality": 87, "enrollment": 12700, "literacy": 99, "funding": 2600 }},

        // Europe - Additional Universities
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [4.3517, 50.8503] },
          "properties": { "name": "KU Leuven", "country": "Belgium", "type": "University", "quality": 86, "enrollment": 58000, "literacy": 99, "funding": 2400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [10.2134, 56.1629] },
          "properties": { "name": "Aarhus University", "country": "Denmark", "type": "University", "quality": 84, "enrollment": 38000, "literacy": 99, "funding": 2300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [16.3738, 48.2082] },
          "properties": { "name": "University of Vienna", "country": "Austria", "type": "University", "quality": 81, "enrollment": 94000, "literacy": 99, "funding": 1800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-8.6291, 41.1579] },
          "properties": { "name": "University of Porto", "country": "Portugal", "type": "University", "quality": 77, "enrollment": 32000, "literacy": 96, "funding": 1100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [23.7275, 37.9838] },
          "properties": { "name": "National Technical University Athens", "country": "Greece", "type": "University", "quality": 74, "enrollment": 9000, "literacy": 98, "funding": 900 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [25.2797, 54.6872] },
          "properties": { "name": "Vilnius University", "country": "Lithuania", "type": "University", "quality": 72, "enrollment": 20000, "literacy": 100, "funding": 800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [24.7536, 59.4370] },
          "properties": { "name": "Tallinn University", "country": "Estonia", "type": "University", "quality": 76, "enrollment": 7500, "literacy": 100, "funding": 1000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [24.1052, 56.9496] },
          "properties": { "name": "University of Latvia", "country": "Latvia", "type": "University", "quality": 70, "enrollment": 15000, "literacy": 100, "funding": 750 }},

        // Asia - Regional Centers
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [113.2644, 23.1291] },
          "properties": { "name": "Sun Yat-sen University", "country": "China", "type": "University", "quality": 86, "enrollment": 52000, "literacy": 97, "funding": 2500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [108.9448, 34.3416] },
          "properties": { "name": "Xi'an Jiaotong University", "country": "China", "type": "University", "quality": 84, "enrollment": 38000, "literacy": 97, "funding": 2200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [114.3055, 30.5928] },
          "properties": { "name": "Wuhan University", "country": "China", "type": "University", "quality": 83, "enrollment": 51000, "literacy": 97, "funding": 2100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [127.0016, 37.5985] },
          "properties": { "name": "Yonsei University", "country": "South Korea", "type": "University", "quality": 88, "enrollment": 26000, "literacy": 98, "funding": 2700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [129.0756, 35.2332] },
          "properties": { "name": "Pusan National University", "country": "South Korea", "type": "University", "quality": 82, "enrollment": 25000, "literacy": 98, "funding": 1700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [130.4017, 33.5904] },
          "properties": { "name": "Kyushu University", "country": "Japan", "type": "University", "quality": 87, "enrollment": 19000, "literacy": 99, "funding": 2600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [136.9641, 35.1545] },
          "properties": { "name": "Nagoya University", "country": "Japan", "type": "University", "quality": 86, "enrollment": 16000, "literacy": 99, "funding": 2500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [121.5400, 25.0180] },
          "properties": { "name": "National Taiwan University", "country": "Taiwan", "type": "University", "quality": 87, "enrollment": 33000, "literacy": 99, "funding": 2600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [72.5714, 23.0225] },
          "properties": { "name": "IIT Gandhinagar", "country": "India", "type": "University", "quality": 85, "enrollment": 1200, "literacy": 74, "funding": 2100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [77.5946, 12.9352] },
          "properties": { "name": "Indian Institute of Science Bangalore", "country": "India", "type": "University", "quality": 86, "enrollment": 3500, "literacy": 74, "funding": 2200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [78.1248, 9.9252] },
          "properties": { "name": "Anna University", "country": "India", "type": "University", "quality": 71, "enrollment": 7500, "literacy": 74, "funding": 700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [76.9366, 8.5241] },
          "properties": { "name": "University of Kerala", "country": "India", "type": "University", "quality": 68, "enrollment": 22000, "literacy": 74, "funding": 550 }},

        // Latin America - Regional
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-43.4606, -22.9099] },
          "properties": { "name": "Pontifical Catholic University Rio", "country": "Brazil", "type": "University", "quality": 77, "enrollment": 20000, "literacy": 93, "funding": 1300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-49.2699, -25.4489] },
          "properties": { "name": "Federal University Paraná", "country": "Brazil", "type": "University", "quality": 74, "enrollment": 30000, "literacy": 93, "funding": 1000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-47.9292, -15.7633] },
          "properties": { "name": "University of Brasília", "country": "Brazil", "type": "University", "quality": 76, "enrollment": 38000, "literacy": 93, "funding": 1100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-99.1332, 19.3371] },
          "properties": { "name": "National Polytechnic Institute", "country": "Mexico", "type": "University", "quality": 75, "enrollment": 180000, "literacy": 95, "funding": 1000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-74.8175, 10.9685] },
          "properties": { "name": "University of the North", "country": "Colombia", "type": "University", "quality": 72, "enrollment": 16000, "literacy": 95, "funding": 750 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-66.9036, 10.4806] },
          "properties": { "name": "Central University Venezuela", "country": "Venezuela", "type": "University", "quality": 65, "enrollment": 62000, "literacy": 97, "funding": 450 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-78.4678, -0.1807] },
          "properties": { "name": "Central University Ecuador", "country": "Ecuador", "type": "University", "quality": 66, "enrollment": 18000, "literacy": 93, "funding": 500 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-64.1888, -31.4201] },
          "properties": { "name": "National University Córdoba", "country": "Argentina", "type": "University", "quality": 78, "enrollment": 120000, "literacy": 99, "funding": 850 }},

        // Africa - Additional Centers
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [31.0409, -29.8587] },
          "properties": { "name": "University of KwaZulu-Natal", "country": "South Africa", "type": "University", "quality": 74, "enrollment": 44000, "literacy": 87, "funding": 1100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [25.6558, -24.6282] },
          "properties": { "name": "University of Botswana", "country": "Botswana", "type": "University", "quality": 64, "enrollment": 18000, "literacy": 88, "funding": 600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [28.2293, -15.3875] },
          "properties": { "name": "University of Zambia", "country": "Zambia", "type": "University", "quality": 60, "enrollment": 21000, "literacy": 86, "funding": 420 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [31.0539, -17.8252] },
          "properties": { "name": "University of Zimbabwe", "country": "Zimbabwe", "type": "University", "quality": 63, "enrollment": 17000, "literacy": 89, "funding": 380 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [35.2433, -15.7867] },
          "properties": { "name": "University of Malawi", "country": "Malawi", "type": "University", "quality": 57, "enrollment": 8000, "literacy": 66, "funding": 250 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [30.0369, -1.9536] },
          "properties": { "name": "Kigali Institute of Science", "country": "Rwanda", "type": "University", "quality": 62, "enrollment": 3500, "literacy": 75, "funding": 400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [30.0619, -1.9706] },
          "properties": { "name": "University of Kigali", "country": "Rwanda", "type": "School", "quality": 54, "enrollment": 12000, "literacy": 75, "funding": 200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [39.2675, -6.8160] },
          "properties": { "name": "Dar es Salaam Institute Tech", "country": "Tanzania", "type": "University", "quality": 61, "enrollment": 6000, "literacy": 78, "funding": 350 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [36.8344, -1.2921] },
          "properties": { "name": "Kenyatta University", "country": "Kenya", "type": "University", "quality": 63, "enrollment": 70000, "literacy": 82, "funding": 480 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [32.5892, 0.3136] },
          "properties": { "name": "Kampala International University", "country": "Uganda", "type": "University", "quality": 58, "enrollment": 23000, "literacy": 77, "funding": 320 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [13.2310, -8.8383] },
          "properties": { "name": "Agostinho Neto University", "country": "Angola", "type": "University", "quality": 55, "enrollment": 60000, "literacy": 71, "funding": 350 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [18.4241, -4.3369] },
          "properties": { "name": "Marien Ngouabi University", "country": "Congo", "type": "University", "quality": 53, "enrollment": 27000, "literacy": 80, "funding": 280 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [15.2663, -4.2634] },
          "properties": { "name": "University of Kinshasa", "country": "DR Congo", "type": "University", "quality": 51, "enrollment": 35000, "literacy": 77, "funding": 240 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [9.7679, 4.0511] },
          "properties": { "name": "University of Yaoundé", "country": "Cameroon", "type": "University", "quality": 60, "enrollment": 62000, "literacy": 77, "funding": 400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [5.6037, 6.3350] },
          "properties": { "name": "University of Benin", "country": "Nigeria", "type": "University", "quality": 61, "enrollment": 45000, "literacy": 62, "funding": 420 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [8.6753, 9.0579] },
          "properties": { "name": "Ahmadu Bello University", "country": "Nigeria", "type": "University", "quality": 63, "enrollment": 48000, "literacy": 62, "funding": 450 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [7.4165, 9.0820] },
          "properties": { "name": "University of Jos", "country": "Nigeria", "type": "University", "quality": 59, "enrollment": 33000, "literacy": 62, "funding": 390 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-0.2058, 5.6037] },
          "properties": { "name": "University of Ghana Legon", "country": "Ghana", "type": "University", "quality": 68, "enrollment": 38000, "literacy": 79, "funding": 580 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-1.6163, 6.6666] },
          "properties": { "name": "Kwame Nkrumah University", "country": "Ghana", "type": "University", "quality": 66, "enrollment": 73000, "literacy": 79, "funding": 520 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-5.5471, 7.6833] },
          "properties": { "name": "Université Félix Houphouët-Boigny", "country": "Ivory Coast", "type": "University", "quality": 62, "enrollment": 80000, "literacy": 47, "funding": 450 }},

        // Middle East - Additional
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [35.2433, 32.7940] },
          "properties": { "name": "Technion Israel", "country": "Israel", "type": "University", "quality": 92, "enrollment": 14000, "literacy": 98, "funding": 3300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [35.2044, 31.7683] },
          "properties": { "name": "Hebrew University", "country": "Israel", "type": "University", "quality": 88, "enrollment": 23000, "literacy": 98, "funding": 2700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [55.7742, 37.6261] },
          "properties": { "name": "American University Sharjah", "country": "UAE", "type": "University", "quality": 79, "enrollment": 6000, "literacy": 93, "funding": 2400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [39.2638, 21.4858] },
          "properties": { "name": "King Abdulaziz University", "country": "Saudi Arabia", "type": "University", "quality": 74, "enrollment": 82000, "literacy": 95, "funding": 2200 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [50.1039, 26.2285] },
          "properties": { "name": "University of Bahrain", "country": "Bahrain", "type": "University", "quality": 71, "enrollment": 23000, "literacy": 97, "funding": 1600 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [58.4059, 23.6139] },
          "properties": { "name": "Sultan Qaboos University", "country": "Oman", "type": "University", "quality": 73, "enrollment": 16000, "literacy": 95, "funding": 1800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [47.9734, 29.3759] },
          "properties": { "name": "Kuwait University", "country": "Kuwait", "type": "University", "quality": 72, "enrollment": 37000, "literacy": 96, "funding": 2000 }},

        // Oceania - Additional
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [153.0281, -27.4975] },
          "properties": { "name": "University of Queensland", "country": "Australia", "type": "University", "quality": 89, "enrollment": 54000, "literacy": 99, "funding": 2800 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [115.8175, -31.9777] },
          "properties": { "name": "University of Western Australia", "country": "Australia", "type": "University", "quality": 86, "enrollment": 24000, "literacy": 99, "funding": 2400 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [138.6007, -34.9205] },
          "properties": { "name": "University of Adelaide", "country": "Australia", "type": "University", "quality": 85, "enrollment": 27000, "literacy": 99, "funding": 2300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [149.1244, -35.2777] },
          "properties": { "name": "Australian National University", "country": "Australia", "type": "University", "quality": 92, "enrollment": 25000, "literacy": 99, "funding": 3300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [151.7817, -32.8915] },
          "properties": { "name": "University of Newcastle", "country": "Australia", "type": "University", "quality": 82, "enrollment": 38000, "literacy": 99, "funding": 2000 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [174.7684, -41.2924] },
          "properties": { "name": "Victoria University Wellington", "country": "New Zealand", "type": "University", "quality": 80, "enrollment": 22000, "literacy": 99, "funding": 1700 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [172.5656, -43.5225] },
          "properties": { "name": "University of Canterbury", "country": "New Zealand", "type": "University", "quality": 79, "enrollment": 16000, "literacy": 99, "funding": 1600 }},

        // Southeast Asia - Additional
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [96.1333, 16.8661] },
          "properties": { "name": "University of Yangon", "country": "Myanmar", "type": "University", "quality": 56, "enrollment": 53000, "literacy": 76, "funding": 300 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [104.9200, 11.5564] },
          "properties": { "name": "Royal University of Phnom Penh", "country": "Cambodia", "type": "University", "quality": 52, "enrollment": 10000, "literacy": 81, "funding": 250 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.6331, 17.9757] },
          "properties": { "name": "National University of Laos", "country": "Laos", "type": "University", "quality": 50, "enrollment": 42000, "literacy": 85, "funding": 220 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [96.0891, 21.9162] },
          "properties": { "name": "Mandalay University", "country": "Myanmar", "type": "University", "quality": 54, "enrollment": 30000, "literacy": 76, "funding": 280 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [106.8456, 10.8231] },
          "properties": { "name": "Vietnam National University HCMC", "country": "Vietnam", "type": "University", "quality": 67, "enrollment": 55000, "literacy": 95, "funding": 580 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [98.9889, 18.7883] },
          "properties": { "name": "Chiang Mai University", "country": "Thailand", "type": "University", "quality": 72, "enrollment": 35000, "literacy": 93, "funding": 920 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [100.5928, 13.6514] },
          "properties": { "name": "Mahidol University", "country": "Thailand", "type": "University", "quality": 76, "enrollment": 32000, "literacy": 93, "funding": 1100 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [107.6097, -6.9175] },
          "properties": { "name": "Bandung Institute of Technology", "country": "Indonesia", "type": "University", "quality": 72, "enrollment": 22000, "literacy": 96, "funding": 850 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [110.4083, -7.7714] },
          "properties": { "name": "Gadjah Mada University", "country": "Indonesia", "type": "University", "quality": 69, "enrollment": 55000, "literacy": 96, "funding": 750 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [123.9137, 10.3157] },
          "properties": { "name": "University of San Carlos", "country": "Philippines", "type": "University", "quality": 70, "enrollment": 24000, "literacy": 96, "funding": 820 }},
        { "type": "Feature", "geometry": { "type": "Point", "coordinates": [121.0794, 14.5995] },
          "properties": { "name": "Ateneo de Manila", "country": "Philippines", "type": "University", "quality": 74, "enrollment": 12000, "literacy": 96, "funding": 1000 }}
    ]
};

// Helper function to calculate regional statistics
function getRegionalStats() {
    const regions = {};

    educationData.features.forEach(feature => {
        const country = feature.properties.country;
        const literacy = feature.properties.literacy;
        const quality = feature.properties.quality;
        const enrollment = feature.properties.enrollment;

        if (!regions[country]) {
            regions[country] = {
                count: 0,
                totalLiteracy: 0,
                totalQuality: 0,
                totalEnrollment: 0
            };
        }

        regions[country].count++;
        regions[country].totalLiteracy += literacy;
        regions[country].totalQuality += quality;
        regions[country].totalEnrollment += enrollment;
    });

    // Calculate averages
    Object.keys(regions).forEach(country => {
        const data = regions[country];
        regions[country].avgLiteracy = Math.round(data.totalLiteracy / data.count);
        regions[country].avgQuality = Math.round(data.totalQuality / data.count);
        regions[country].avgEnrollment = Math.round(data.totalEnrollment / data.count);
    });

    return regions;
}

// Global statistics
const globalStats = {
    totalInstitutions: educationData.features.length,
    avgLiteracy: Math.round(
        educationData.features.reduce((sum, f) => sum + f.properties.literacy, 0) /
        educationData.features.length
    ),
    avgQuality: Math.round(
        educationData.features.reduce((sum, f) => sum + f.properties.quality, 0) /
        educationData.features.length
    ),
    totalEnrollment: educationData.features.reduce((sum, f) => sum + f.properties.enrollment, 0),
    qualityRange: {
        min: Math.min(...educationData.features.map(f => f.properties.quality)),
        max: Math.max(...educationData.features.map(f => f.properties.quality))
    },
    literacyRange: {
        min: Math.min(...educationData.features.map(f => f.properties.literacy)),
        max: Math.max(...educationData.features.map(f => f.properties.literacy))
    }
};
