ocument.cookie.split(';');
            for (const cookie of cookies) {
                const [name, value] = cookie.trim().split('=');
                if (name === 'theme') {
                    return value;
                }
            }
            return 'light'; // Default to light mode if no cookie is found
        }

        const theme = getThemeFromCookie();
        document.documentElement.setAttribute('data-theme', theme);
    })();
</script>
<body class="body font-sans">
    <hea