file_path = r'c:\MyCode\MyLaravel\tatabatubelitung\resources\views\home.blade.php'

with open(file_path, 'r', encoding='utf-8') as f:
    content = f.read()

target_banner = '''            <!-- PRE-FOOTER VIP NEWSLETTER / RESERVATION BANNER -->
            <div class="bg-gradient-to-r from-[#0b1d3a] via-[#0f274c] to-[#0b1d3a] border border-[#c9a96e]/30 rounded-3xl p-8 md:p-12 mb-20 shadow-2xl relative overflow-hidden">
                <div class="absolute right-0 top-0 bottom-0 w-1/3 bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-[#c9a96e]/15 via-transparent to-transparent pointer-events-none"></div>
                <div class="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center relative z-10">
                    <div class="lg:col-span-7 space-y-3">
                        <span class="text-[#c9a96e] text-[10px] tracking-[0.35em] uppercase font-semibold block">Exclusive Journal</span>
                        <h3 style="font-family: \'Cormorant Garamond\', Georgia, serif;" class="text-3xl md:text-4xl text-white font-light leading-tight">
                            Subscribe to Tatabatu Reflections
                        </h3>
                        <p class="text-slate-300 text-xs md:text-sm font-light leading-relaxed max-w-xl">
                            Receive curated seasonal offers, private island expedition notes, and VIP dining invitations directly in your inbox.
                        </p>
                    </div>
                    <div class="lg:col-span-5">
                        <form onsubmit="event.preventDefault(); alert(\'Thank you for subscribing to Tatabatu Reflections.\');" class="flex flex-col sm:flex-row gap-3">
                            <input type="email" required placeholder="Enter your email address..." class="flex-1 bg-white/10 border border-white/20 rounded-full px-5 py-3.5 text-xs text-white placeholder-slate-400 focus:outline-none focus:border-[#c9a96e] focus:ring-1 focus:ring-[#c9a96e] transition-all">
                            <button type="submit" class="bg-[#c9a96e] hover:bg-[#b8975c] text-[#0b1d3a] font-semibold text-xs tracking-widest uppercase px-7 py-3.5 rounded-full transition-all duration-300 shadow-lg hover:shadow-[#c9a96e]/20 flex-none text-center">
                                Join Journal
                            </button>
                        </form>
                        <p class="text-[10px] text-slate-400 font-light mt-2.5 text-center sm:text-left">By subscribing, you agree to our Privacy Policy. Unsubscribe anytime.</p>
                    </div>
                </div>
            </div>\n\n'''

if target_banner in content:
    content = content.replace(target_banner, '')
    print("Successfully removed subscribe banner!")
else:
    # Try without exact whitespace match
    print("Searching fallback for banner...")
    import re
    new_content, count = re.subn(r'<!-- PRE-FOOTER VIP NEWSLETTER / RESERVATION BANNER -->.*?</div>\s*</div>\s*</div>', '', content, flags=re.DOTALL)
    if count > 0:
        content = new_content
        print(f"Replaced via regex, count: {count}")
    else:
        print("WARNING: Banner not found via regex either!")

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