#!/usr/bin/env python3
"""
Inspect the actual class names of the dropdown panels in header.php
to figure out exact CSS selectors needed.
"""
import re

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

# Find "AI Courses" and extract the surrounding HTML
idx = content.find('AI Courses')
if idx >= 0:
    # Get context around it (1000 chars)
    snippet = content[max(0, idx-200):idx+1000]
    print("AROUND AI COURSES:")
    print(snippet[:2000])
    print("---")

# Find the dropdown panel class pattern
# Looking for: class=" absolute  z-50 flex-col hidden ..."
pattern = re.compile(r'class="([^"]*absolute[^"]*z-50[^"]*hidden[^"]*)"')
matches = pattern.findall(content)
print("\nFOUND DROPDOWN CLASSES:")
for m in matches:
    print(f"  [{m}]")
