import re

path = r'c:\Users\DHRUMIL GAJJAR\Desktop\FYSY\fysy.css'
with open(path, 'r', encoding='utf-8') as f:
    content = f.read()

# Replace position: fixed; inside .navbar { ... }
# Using regex to handle potential whitespace variations
new_content = re.sub(r'(\.navbar\s*\{[^}]*?position:\s*)fixed(;)', r'\1absolute\2', content, flags=re.DOTALL)

with open(path, 'w', encoding='utf-8') as f:
    f.write(new_content)

print("Replacement done.")
