#!/usr/bin/env python3
"""Find exact logo container in header.php to understand fix needed."""
import re

with open('/Applications/XAMPP/xamppfiles/htdocs/aaa/header.php', 'r', encoding='utf-8') as f:
    content = f.read()

# Find the logo img and get ~800 chars of context around it
idx = content.find('alt="kh logo"')
if idx >= 0:
    start = max(0, idx - 500)
    end = min(len(content), idx + 300)
    print("LOGO CONTEXT:")
    print(content[start:end])
