focus_tree = {
	id = maratha_focus
	continuous_focus_position = { x = -40 y = 1050 }
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = MAH
		}
	}

	# -------------------------------------------------
	# Indian Unification MADE BY SHREVIEWS
	# -------------------------------------------------
	focus = {
		id = MAH_indian_unification
		icon = GFX_focus_RAJ_all_india_forward_bloc
		x = 10
		y = 7
		cost = 10
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = {
			focus = MAH_reclaim_the_south
			focus = MAH_connect_east_and_west_india
			focus = MAH_crush_the_mughals
		}
		available = {
			# (kept logic: owning these states gates the focus availability)
			owns_state = 428
			owns_state = 433
			owns_state = 438
			owns_state = 435
			owns_state = 426
			owns_state = 984
			owns_state = 436
			owns_state = 429
			owns_state = 983
			owns_state = 427
			owns_state = 424
			owns_state = 423
			owns_state = 425
			owns_state = 982
			owns_state = 989
			owns_state = 440
			owns_state = 441
			owns_state = 986
			owns_state = 439
		}
		completion_reward = {
			# add_state_core requires one state per line in vanilla script
			add_state_core = 428
			add_state_core = 433
			add_state_core = 438
			add_state_core = 435
			add_state_core = 426
			add_state_core = 984
			add_state_core = 436
			add_state_core = 429
			add_state_core = 983
			add_state_core = 427
			add_state_core = 424
			add_state_core = 423
			add_state_core = 425
			add_state_core = 982
			add_state_core = 989
			add_state_core = 440
			add_state_core = 441
			add_state_core = 986
			add_state_core = 439

			set_cosmetic_tag = UNIFIED_INDIA
			add_ideas = all_indians_unifed_under_1_state
		}
	}

	# -------------------------------------------------
	# Expand Bombay Tungsten Industry
	# -------------------------------------------------
	focus = {
		id = MAH_expand_bombay_tungsten_industry
		icon = GFX_focus_generic_tungsten
		x = 18
		y = 4
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_expand_civilian_factories }
		completion_reward = {
			add_resource = {
				type = tungsten
				amount = 12
				state = 429
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = { building = industrial_complex size > 0 include_locked = yes }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = industrial_complex level = 2 instant_build = yes }
			}
		}
	}

	# -------------------------------------------------
	# Expand Orissa Steel Production
	# -------------------------------------------------
	focus = {
		id = MAH_expand_orissa_steel_production
		icon = GFX_SOV_steel_casting_industry_ccp_2d_sov_compatibility
		x = 22
		y = 4
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_expand_military_factories }
		completion_reward = {
			add_resource = {
				type = steel
				amount = 24
				state = 426
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = { building = arms_factory size > 0 include_locked = yes }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = arms_factory level = 2 instant_build = yes }
			}
		}
	}

	# -------------------------------------------------
	# 10 Mils Plan
	# -------------------------------------------------
	focus = {
		id = MAH_10_mils_plan
		icon = GFX_goal_generic_construct_mil_factory
		x = 22
		y = 5
		cost = 20
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = {
			focus = MAH_expand_orissa_steel_production
		}
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = { building = arms_factory size > 0 include_locked = yes }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = arms_factory level = 10 instant_build = yes }
			}
		}
	}

	# -------------------------------------------------
	# Rapid Industrialization
	# -------------------------------------------------
	focus = {
		id = MAH_rapid_industrialization
		icon = GFX_goal_continuous_non_factory_construct
		x = 20
		y = 5
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_expand_bombay_tungsten_industry }
	        prerequisite = { focus = MAH_extra_research_slot }
		prerequisite = { focus = MAH_expand_orissa_steel_production }
		completion_reward = {
                add_timed_idea = {
                idea = industrial_Boom
                 days = 730
      }
  }

	}

	# -------------------------------------------------
	# Research Slot
	# -------------------------------------------------
	focus = {
		id = MAH_research_slot
		icon = GFX_focus_research2
		x = 20
		y = 3
		cost = 7
		search_filters = { FOCUS_FILTER_RESEARCH }
		prerequisite = { focus = MAH_maratha_industries }
		completion_reward = { add_research_slot = 1 }
	}

	# -------------------------------------------------
	# Modernizing our army (2/2)
	# -------------------------------------------------
	focus = {
		id = MAH_modernizingourarmy22
		icon = GFX_goal_generic_army_artillery2
		x = 29
		y = 5
		cost = 8
		search_filters = { FOCUS_FILTER_RESEARCH }
		prerequisite = { focus = MAH_modernizingourarmy12 }
		completion_reward = {
			remove_ideas = Non_Modern_Army_3
		}
	}

	# -------------------------------------------------
	# Reclaim the South
	# -------------------------------------------------
	focus = {
		id = MAH_reclaim_the_south
		icon = GFX_focus_RAJ_indian_gentlemen_offcers
                available = { has_army_manpower = { size > 450000 } }
		x = 10
		y = 6
		cost = 7
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = { focus = MAH_demand_delhi }
		completion_reward = {
			create_wargoal = { type = puppet_wargoal_focus target = IMC }        
		}
	}

	# -------------------------------------------------
	# Maratha Industries
	# -------------------------------------------------
	focus = {
		id = MAH_maratha_industries
		icon = GFX_goal_generic_construct_civ_factory
		x = 20
		y = 2
		cost = 5
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_the_marathan_state }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = { building = industrial_complex size > 0 include_locked = yes }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = industrial_complex level = 2 instant_build = yes }
			}
		}
	}

	# -------------------------------------------------
	# Strengthen The Monarchists
	# -------------------------------------------------
	focus = {
		id = MAH_strengthen_the_monarchists
		icon = GFX_focus_generic_monarchy_1
		x = 13
		y = 2
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_the_marathan_state }
		mutually_exclusive = { focus = MAH_strengthen_the_democrats }
		completion_reward = {
			add_popularity = { 
				ideology = monarchism 
				popularity = 0.1 
				}
			add_war_support = 0.05

		}
	}

	# -------------------------------------------------
	# Strengthen The Democrats
	# -------------------------------------------------
	focus = {
		id = MAH_strengthen_the_democrats
		icon = GFX_MAH_strengthen_the_democrats-427
		x = 5
		y = 2
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_the_marathan_state }
		mutually_exclusive = { focus = MAH_strengthen_the_monarchists }
		completion_reward = {
			add_popularity = { ideology = democratic popularity = 0.1 }
		}
	}

	# -------------------------------------------------
	# Greater Maratha
	# -------------------------------------------------
	focus = {
		id = MAH_greater_maratha
		icon = GFX_focus_generic_support_the_left_right
		x = 15
		y = 3
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_strengthen_the_monarchists }
		mutually_exclusive = { focus = MAH_promote_indian_unification }
		completion_reward = { add_war_support = 0.1 }
	}

	# -------------------------------------------------
	# Put stricter laws on the Democrats
	# -------------------------------------------------
	focus = {
		id = MAH_put_stricter_laws_on_the_democrats
		icon = GFX_focus_generic_strike_at_democracy1
		x = 9
		y = 3
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_strengthen_the_monarchists }
		completion_reward = {
			add_popularity = { ideology = democratic popularity = -0.1 }
		}
	}

	# -------------------------------------------------
	# Fix our Army
	# -------------------------------------------------
	focus = {
		id = MAH_fix_our_army
		icon = GFX_focus_chi_army_reform
		x = 27
		y = 2
		cost = 8
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_the_marathan_state }
		completion_reward = {
			swap_ideas = {
				remove_idea = Non_Modern_Army
				add_idea = Non_Modern_Army_2
			}
		}
	}

	# -------------------------------------------------
	# Ban The Democratic Party
	# -------------------------------------------------
	focus = {
		id = MAH_ban_the_democratic_party
		icon = GFX_focus_generic_strike_at_democracy3
		x = 9
		y = 4
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_put_stricter_laws_on_the_democrats }
		completion_reward = {
			add_popularity = { ideology = democratic popularity = -0.95 }
		}
	}

	# -------------------------------------------------
	# Promote Indian Unification
	# -------------------------------------------------
	focus = {
		id = MAH_promote_indian_unification
		icon = GFX_focus_RAJ_indianisation_of_army
		x = 11
		y = 3
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_strengthen_the_monarchists }
		mutually_exclusive = { focus = MAH_greater_maratha }
		completion_reward = { 
			add_war_support = 0.1 
			add_stability = 0.05
			}
	}

	# -------------------------------------------------
	# Rally Pro Unification Protests
	# -------------------------------------------------
	focus = {
		id = MAH_rally_pro_unification_protests
		icon = GFX_focus_IRQ_rally_behind_the_hashemite_dynasty
		x = 11
		y = 4
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_promote_indian_unification }
		completion_reward = { 
			add_war_support = 0.1
			add_political_power = 50
			 
			}
	}

	# -------------------------------------------------
	# Demand Delhi
	# -------------------------------------------------
	focus = {
		id = MAH_demand_delhi
		icon = GFX_goal_demand_sudetenland
		x = 10
		y = 5
		cost = 15
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = {
			focus = MAH_ban_the_democratic_party
			focus = MAH_rally_pro_unification_protests
		}
		available = { has_army_manpower = { size > 300000 } }
		completion_reward = {
			MUG = { country_event = { id = maratha_event.1 days = 1 } }
		}
	}

	# -------------------------------------------------
	# Expand Civilian Factories
	# -------------------------------------------------
	focus = {
		id = MAH_expand_civilian_factories
		icon = GFX_SOV_reorganize_the_pc_of_heavy_industry_ccp_2d_sov_compatibility
		x = 18
		y = 3
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_maratha_industries }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = { building = industrial_complex size > 0 include_locked = yes }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = industrial_complex level = 2 instant_build = yes }
			}
		}
	}

	# -------------------------------------------------
	# The Indian Doctrine
	# -------------------------------------------------
	focus = {
		id = MAH_the_indian_doctrine
		icon = GFX_goal_generic_army_doctrines
		x = 26
		y = 3
		cost = 5
		search_filters = { FOCUS_FILTER_RESEARCH }
		prerequisite = { focus = MAH_fix_our_army }
		completion_reward = { army_experience = 50 }
	}

	# -------------------------------------------------
	# Modernizing our army (1/2)
	# -------------------------------------------------
	focus = {
		id = MAH_modernizingourarmy12
		icon = GFX_focus_RAJ_indian_gurkhas
		x = 29
		y = 3
		cost = 8
		search_filters = { FOCUS_FILTER_RESEARCH }
		prerequisite = { focus = MAH_fix_our_army }
		completion_reward = {
			swap_ideas = {
				remove_idea = Non_Modern_Army_2
				add_idea = Non_Modern_Army_3
			}
		}
	}

	# -------------------------------------------------
	# Expand Military Factories
	# -------------------------------------------------
	focus = {
		id = MAH_expand_military_factories
		icon = GFX_goal_generic_construct_mil_factory
		x = 22
		y = 3
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_maratha_industries }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = { building = arms_factory size > 0 include_locked = yes }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = arms_factory level = 3 instant_build = yes }
			}
		}
	}

	# -------------------------------------------------
	# Connect East and West India
	# -------------------------------------------------
	focus = {
		id = MAH_connect_east_and_west_india
		icon = GFX_focus_GRE_reviving_the_spartan_warrior_spirit
		x = 8
		y = 6
		cost = 7
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = { focus = MAH_demand_delhi }
		available = { has_army_manpower = { size > 400000 } }
		bypass = { has_war_with = BNG }
		completion_reward = {
			create_wargoal = { type = puppet_wargoal_focus target = BNG }
		}
	}

	# -------------------------------------------------
	# The Marathan State (starter focus)
	# -------------------------------------------------
	focus = {
		id = MAH_the_marathan_state
		icon = GFX_focus_RAJ_all_india_forward_bloc
		available = {
            OR = {
                is_ai = no
                is_historical_focus_on = no
            }
		}
		x = 16
		y = 1
		cost = 1
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			country_event = maratha_event.4
		}
	}

	# -------------------------------------------------
	# Crush the Mughals
	# -------------------------------------------------
	focus = {
		id = MAH_crush_the_mughals
		icon = GFX_focus_RAJ_indian_gurkhas
                available = { has_army_manpower = { size > 400000 } }
		x = 12
		y = 6
		cost = 8
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = { focus = MAH_demand_delhi }
		completion_reward = {
			create_wargoal = { type = puppet_wargoal_focus target = MUG }
		}
	}

	# -------------------------------------------------
	# Extra Research Slot
	# -------------------------------------------------
	focus = {
		id = MAH_extra_research_slot
		icon = GFX_focus_research
		x = 20
		y = 4
		cost = 7
		search_filters = { FOCUS_FILTER_RESEARCH }
		prerequisite = { focus = MAH_research_slot }
		available = { num_of_factories > 40 }
		completion_reward = { add_research_slot = 1 }
	}

	# -------------------------------------------------
	# Indian Infantry
	# -------------------------------------------------
	focus = {
		id = MAH_indian_infantry
		icon = GFX_focus_generic_commonwealth_build_infantry
		x = 28
		y = 4
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_the_indian_doctrine }
		mutually_exclusive = { focus = MAH_indian_tanks }
		completion_reward = {
			add_tech_bonus = { bonus = 0.5 uses = 2 category = infantry_weapons }
		}
	}

	# -------------------------------------------------
	# Reclaim North Kashmir
	# -------------------------------------------------
	focus = {
		id = MAH_reclaim_north_kashmir
		icon = GFX_focus_RAJ_two_nation_theory
		x = 9
		y = 8
		cost = 5
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = { focus = MAH_indian_unification }
		mutually_exclusive = { focus = MAH_the_empire_of_south_asia }
		completion_reward = {
			create_wargoal = { type = puppet_wargoal_focus target = SKE }
		}
	}

	# -------------------------------------------------
	# The Empire Of South Asia
	# -------------------------------------------------
	focus = {
		id = MAH_the_empire_of_south_asia
		icon = GFX_focus_RAJ_all_india_forward_bloc
		x = 11
		y = 8
		cost = 15
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = { focus = MAH_indian_unification }
		mutually_exclusive = { focus = MAH_reclaim_north_kashmir }
		completion_reward = {
			declare_war_on = { target = SKE type = annex_everything }
			declare_war_on = { target = TBE type = annex_everything }
			declare_war_on = { target = PRE type = annex_everything }
            declare_war_on = { target = AFG type = annex_everything }
		}
		        will_lead_to_war_with = SKE
		        will_lead_to_war_with = TBE
		        will_lead_to_war_with = PRE
                will_lead_to_war_with = AFG
	}

	focus = {
		id = MAH_proclaim_the_empire
		icon = GFX_focus_RAJ_akhand_bharat
		available = {
	if = {
		AND = {
			OR = {
				NOT = { country_exists = SKE }
				SKE = { is_puppet = yes }
			}
			OR = {
				NOT = { country_exists = TBE }
				TBE = { is_puppet = yes }
			}
			OR = {
				NOT = { country_exists = PRE }
				PRE = { is_puppet = yes }
			}
			OR = {
				NOT = { country_exists = AFG }
				AFG = { is_puppet = yes }
			}
		}
	}
		}
		x = 11
		y = 9
		cost = 15
		search_filters = { FOCUS_FILTER_ANNEXATION }
		prerequisite = { focus = MAH_the_empire_of_south_asia }
		completion_reward = {
			set_cosmetic_tag = ESA
		}
	}

	# -------------------------------------------------
	# Indian Tanks
	# -------------------------------------------------
	focus = {
		id = MAH_indian_tanks
		icon = GFX_goal_generic_army_tanks
		x = 24
		y = 4
		cost = 5
		search_filters = { FOCUS_FILTER_RESEARCH }
		prerequisite = { focus = MAH_the_indian_doctrine }
		mutually_exclusive = { focus = MAH_indian_infantry }
		completion_reward = {
			add_tech_bonus = { bonus = 0.5 uses = 2 category = armor }
		}
	}

	# -------------------------------------------------
	# Expand infrastructure (1/2)
	# -------------------------------------------------
	focus = {
		id = MAH_expandinfrastructure12
		icon = GFX_goal_generic_construct_infrastructure
		x = 18
		y = 5
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_expand_bombay_tungsten_industry }
		completion_reward = {
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
		}
	}

	# -------------------------------------------------
	# Expand infrastructure (2/2)
	# -------------------------------------------------
	focus = {
		id = MAH_expandinfrastructure22
		icon = GFX_goal_generic_construct_infrastructure
		x = 18
		y = 6
		cost = 7
		search_filters = { FOCUS_FILTER_INDUSTRY }
		prerequisite = { focus = MAH_expandinfrastructure12 }
		completion_reward = {
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
			random_core_state = { add_building_construction = { type = infrastructure level = 1 instant_build = yes } }
		}
	}

	# -------------------------------------------------
	# Indian Elite Divisions
	# -------------------------------------------------
	focus = {
		id = MAH_indian_elite_divisions
		icon = GFX_focus_RAJ_lions_of_the_great_war
		x = 26
		y = 4
		cost = 5
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_the_indian_doctrine }
	}

	# -------------------------------------------------
	# Indian Efficiency Achieved
	# -------------------------------------------------
	focus = {
		id = MAH_indian_efficiency_achieved
		icon = GFX_SOV_infrastructure_effort_nsb_ccp_2d_sov_compatibility
		x = 20
		y = 6
		cost = 7
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_rapid_industrialization }
		completion_reward = { add_ideas = Indian_efficiency_achieved 
          
	}

	# -------------------------------------------------
	# Indian Wave
	# -------------------------------------------------
	focus = {
		id = MAH_indian_wave
		icon = GFX_focus_GRE_reviving_the_spartan_warrior_spirit
		x = 26
		y = 10
		cost = 7
		search_filters = { FOCUS_FILTER_POLITICAL }
		prerequisite = { focus = MAH_indian_elite_divisions }
		completion_reward = { add_ideas = indian_wave }
	}

}
}
