$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 (Wait! The previous script failed before executing so the 1 BHK is still there)
$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 (Using HTML Entity for Rupee symbol)
$content = $content -replace '<div class="pricing-amount">Best Seller</div>', '<div class="pricing-amount">&#8377; 48 L - &#8377; 58 L*</div>'
$content = $content -replace '<div class="pricing-amount">On Request</div>', '<div class="pricing-amount">&#8377; 60 L - &#8377; 75 L*</div>'

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