$content = [System.IO.File]::ReadAllText("index.html", [System.Text.Encoding]::UTF8)

# 1. Remove 1 BHK Floor Card
$content = $content -replace '(?s)<div class="floor-card">\s*<div class="floor-image">\s*<img src="1 bhk Shriram Shankari.jpg".*?</button>\s*</div>\s*</div>', ''

# 2. Remove 1 BHK Pricing Card
$content = $content -replace '(?s)<div class="pricing-card">\s*<h3>1 BHK</h3>.*?</button>\s*</div>', ''

# 3. Update 2 BHK and 3 BHK sizes in Floor Plans and Pricing
$content = $content -replace '(?i)997 – 1,180 Sq\.ft', '955 - 1,100 Sq.ft'
$content = $content -replace '(?i)1,270 – 1,498 Sq\.ft', '1,180 - 1,490 Sq.ft'

# 4. Update Prices in Pricing Cards
# We replace the Best Seller for 2 BHK with the price
$content = $content -replace '<div class="pricing-amount">Best Seller</div>', '<div class="pricing-amount">₹48 L - ₹58 L*</div>'
# We replace the On Request for 3 BHK with the price
$content = $content -replace '<div class="pricing-amount">On Request</div>', '<div class="pricing-amount">₹60 L - ₹75 L*</div>'

[System.IO.File]::WriteAllText("index.html", $content, [System.Text.Encoding]::UTF8)
