<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Charlize Theron, 50, reveals her anti-aging skin care secret that’s better than ‘any lotion or cream’ - iHeard</title>
            <meta name="description" content="Stars like Jennifer Aniston and Kim Kardashian have also name-dropped this anti-aging treatment.">
        
            <meta property="og:image" content="https://pagesix.com/wp-content%2Fuploads%2Fsites%2F3%2F2026%2F04%2F126637528.jpg?quality%3D90%26strip%3Dall">
            <meta property="og:description" content="Stars like Jennifer Aniston and Kim Kardashian have also name-dropped this anti-aging treatment.">
            <meta property="og:url" content="https://www.iheard.net/news/dancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here">
        <meta property="og:type" content="article">
                <meta property="og:title" content="Charlize Theron, 50, reveals her anti-aging skin care secret that’s better than ‘any lotion or cream’">
                <meta property="og:site_name" content="iHeard">
                        <link rel="icon" type="image/x-icon" href="https://www.iheard.net/uploads/favicon_690cd7b42c8ff.ico">
        <link rel="stylesheet" href="https://www.iheard.net/css/main.css">
        <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&display=swap" rel="stylesheet">
    
    <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8HL2WC0F9V"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-8HL2WC0F9V');
</script>

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6738943309392431"
     crossorigin="anonymous"></script>    
    <style>
        body, * {
            font-family: 'Raleway', sans-serif !important;
        }
        
            </style>
    <style>
        :root {
            --primary-color: #d81b60;
            --primary-50: rgba(216, 27, 96, 0.05);
            --primary-100: rgba(216, 27, 96, 0.1);
            --primary-700: #d81b60;
        }
        .bg-primary { background-color: var(--primary-color) !important; }
        .text-primary { color: var(--primary-color) !important; }
        .border-primary { border-color: var(--primary-color) !important; }
        .bg-primary-50 { background-color: var(--primary-50) !important; }
        .bg-primary-100 { background-color: var(--primary-100) !important; }
        .hover\:bg-primary-700:hover { background-color: var(--primary-700) !important; }
        .hover\:text-primary:hover { color: var(--primary-color) !important; }
        button.bg-primary, .btn-primary { background-color: var(--primary-color) !important; }
        button.bg-primary:hover, .btn-primary:hover { background-color: var(--primary-700) !important; opacity: 0.9; }
        [data-theme="dark"] {
            --bg-background: #132137;
            --bg-white: #1e293b;
            --text-slate-800: #f1f5f9;
            --text-slate-600: #cbd5e1;
            --text-slate-500: #94a3b8;
            --border-slate-200: #334155;
        }
        html[data-theme="dark"],
        [data-theme="dark"] html {
            background-color: #132137 !important;
        }
        body[data-theme="dark"],
        [data-theme="dark"] body {
            background-color: #132137 !important;
            color: var(--text-slate-800) !important;
        }
        [data-theme="dark"] .bg-background {
            background-color: #132137 !important;
        }
        [data-theme="dark"] main {
            background-color: transparent !important;
        }
        [data-theme="dark"] .bg-white {
            background-color: var(--bg-white);
            color: var(--text-slate-800);
        }
        [data-theme="dark"] .text-slate-800 {
            color: var(--text-slate-800);
        }
        [data-theme="dark"] .text-slate-600 {
            color: var(--text-slate-600);
        }
        [data-theme="dark"] .text-slate-500 {
            color: var(--text-slate-500);
        }
        [data-theme="dark"] .border-slate-200 {
            border-color: var(--border-slate-200);
        }
        [data-theme="dark"] select,
        [data-theme="dark"] option {
            background-color: var(--bg-white) !important;
            color: var(--text-slate-800) !important;
        }
        [data-theme="dark"] select {
            border-color: var(--border-slate-200) !important;
        }
        [data-theme="dark"] #mobileMenu {
            background-color: var(--bg-white);
            border-color: var(--border-slate-200);
        }
        [data-theme="dark"] #mobileMenu a {
            color: var(--text-slate-800);
        }
        [data-theme="dark"] #mobileMenu a:hover {
            background-color: var(--primary-50);
            color: var(--primary-color);
        }
        [data-theme="dark"] #mobileMenu a.border-l-4 {
            background-color: var(--primary-50);
            border-color: var(--primary-color);
        }
        [data-theme="dark"] .bg-white {
            background-color: var(--bg-white);
        }
        /* Logo switching for light/dark themes */
        .logo-light {
            display: block;
        }
        .logo-dark {
            display: none;
        }
        [data-theme="dark"] .logo-light {
            display: none;
        }
        [data-theme="dark"] .logo-dark {
            display: block;
        }
    </style>
</head>
<body class="bg-background min-h-screen" data-theme="light">
    <!-- Header Navigation -->
    <header class="bg-white shadow-sm border-b border-slate-200 sticky top-0 z-50 relative">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-16">
                <!-- Logo -->
                <div class="flex items-center">
                                                            <a href="https://www.iheard.net/index" class="flex items-center">
                                                                                    <!-- Show both logos and use CSS to switch based on theme -->
                                <img src="https://www.iheard.net/uploads/logo_690cd7b42c66b.png" alt="iHeard" class="h-8 mr-3 logo-light">
                                <img src="https://www.iheard.net/uploads/logo_dark_690cd7b42c7b4.png" alt="iHeard" class="h-8 mr-3 logo-dark hidden">
                                                                                                </a>
                </div>

                <!-- Navigation and Theme Toggle -->
                <div class="flex items-center space-x-2">
                                        
                    <!-- Theme Toggle Button (Always visible, separate from menu) -->
                    <button id="themeToggle" class="text-slate-600 hover:text-primary transition-colors p-2 rounded-md hover:bg-slate-100" title="Toggle theme">
                        <svg id="themeIconLight" class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/>
                        </svg>
                        <svg id="themeIconDark" class="w-5 h-5 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/>
                        </svg>
                    </button>

                    <!-- Desktop Navigation Links -->
                    <nav class="hidden md:flex items-center space-x-4">
                        <a href="https://www.iheard.net/index" class="text-slate-600 hover:text-primary transition-colors">Home</a>
                                                
                                            </nav>

                    <!-- Mobile Hamburger Menu Button -->
                    <button id="mobileMenuToggle" class="md:hidden text-slate-600 hover:text-primary transition-colors p-2 rounded-md hover:bg-slate-100" aria-label="Toggle menu">
                        <svg id="mobileMenuIcon" class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
                        </svg>
                        <svg id="mobileMenuCloseIcon" class="w-6 h-6 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
                        </svg>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- Mobile Menu Panel (Floating Overlay) -->
        <div id="mobileMenu" class="hidden md:hidden absolute top-full left-0 right-0 bg-white border-b border-slate-200 shadow-lg z-50">
            <div class="px-4 py-4 space-y-3">
                                <a href="https://www.iheard.net/index" class="block py-2 px-3 text-slate-600 hover:text-primary hover:bg-slate-50 transition-colors rounded-md">Home</a>
                                
                            </div>
        </div>
    </header>

    <script>
        // Mobile Menu Toggle
        document.addEventListener('DOMContentLoaded', function() {
            const mobileMenuToggle = document.getElementById('mobileMenuToggle');
            const mobileMenu = document.getElementById('mobileMenu');
            const mobileMenuIcon = document.getElementById('mobileMenuIcon');
            const mobileMenuCloseIcon = document.getElementById('mobileMenuCloseIcon');
            
            if (mobileMenuToggle && mobileMenu) {
                mobileMenuToggle.addEventListener('click', function() {
                    const isHidden = mobileMenu.classList.contains('hidden');
                    
                    if (isHidden) {
                        mobileMenu.classList.remove('hidden');
                        mobileMenuIcon.classList.add('hidden');
                        mobileMenuCloseIcon.classList.remove('hidden');
                    } else {
                        mobileMenu.classList.add('hidden');
                        mobileMenuIcon.classList.remove('hidden');
                        mobileMenuCloseIcon.classList.add('hidden');
                    }
                });
                
                // Close menu when clicking on a link
                const mobileMenuLinks = mobileMenu.querySelectorAll('a');
                mobileMenuLinks.forEach(link => {
                    link.addEventListener('click', function() {
                        mobileMenu.classList.add('hidden');
                        mobileMenuIcon.classList.remove('hidden');
                        mobileMenuCloseIcon.classList.add('hidden');
                    });
                });
            }
        });
    </script>


    <!-- Main Content -->
    <main class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <!-- Breadcrumb -->
        <nav class="mb-6 text-sm">
            <a href="https://www.iheard.net/index" class="text-slate-600 hover:text-primary">Home</a>
            <span class="mx-2 text-slate-400">/</span>
            <a href="https://www.iheard.net/news" class="text-slate-600 hover:text-primary">Uncategorized</a>
            <span class="mx-2 text-slate-400">/</span>
            <span class="text-slate-800"></span>
        </nav>

        <!-- Article -->
        <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden mb-8">
            <!-- Article Image -->
                                        <div class="w-full h-64 md:h-96 bg-slate-200 flex items-center justify-center">
                    <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==" 
                         alt="RSS Feed" 
                         class="w-16 h-16 object-contain">
                </div>
            
            <div class="p-6 md:p-8">
                <!-- Article Meta -->
                <div class="flex items-center text-sm text-slate-500 mb-4">
                                        <span class="font-medium"></span>
                                                        </div>

                <!-- Article Title -->
                <h1 class="text-3xl md:text-4xl font-bold text-slate-800 mb-4">
                                    </h1>

                <!-- Article Description -->
                
                <!-- AI Summary -->
                
                <!-- Article Content -->
                <div class="prose prose-lg max-w-none mb-6">
                                    </div>

                <!-- Original Article Link -->
                <div class="mt-8 pt-6 border-t border-slate-200">
                    <a href="" 
                       target="_blank" 
                       rel="nofollow"
                       class="inline-flex items-center px-6 py-3 bg-primary text-white rounded-md hover:bg-primary-700 transition-colors font-medium">
                        Read Original Article →
                    </a>
                </div>
            </div>
        </article>

        <!-- Social Sharing Buttons -->
        <section class="mb-8">
            <div class="bg-white rounded-lg shadow-sm border border-slate-200 p-6">
                <h3 class="text-lg font-semibold text-slate-800 mb-4">Share this article</h3>
                <div class="flex flex-wrap items-center gap-3">
                                        
                    <!-- Facebook -->
                    <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here" 
                       target="_blank" 
                       rel="noopener noreferrer"
                       style="background-color: #1877F2;"
                       class="inline-flex items-center px-4 py-2 text-white rounded-md transition-colors font-medium text-sm hover:opacity-90"
                       title="Share on Facebook">
                        <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
                        </svg>
                        Facebook
                    </a>
                    
                    <!-- Twitter/X -->
                    <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here&text=" 
                       target="_blank" 
                       rel="noopener noreferrer"
                       class="inline-flex items-center px-4 py-2 bg-black text-white rounded-md hover:bg-gray-800 transition-colors font-medium text-sm"
                       title="Share on X (Twitter)">
                        <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>
                        </svg>
                        X
                    </a>
                    
                    <!-- LinkedIn -->
                    <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here" 
                       target="_blank" 
                       rel="noopener noreferrer"
                       style="background-color: #0077B5;"
                       class="inline-flex items-center px-4 py-2 text-white rounded-md transition-colors font-medium text-sm hover:opacity-90"
                       title="Share on LinkedIn">
                        <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
                        </svg>
                        LinkedIn
                    </a>
                    
                    <!-- WhatsApp -->
                    <a href="https://wa.me/?text=%20https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here" 
                       target="_blank" 
                       rel="noopener noreferrer"
                       style="background-color: #25D366;"
                       class="inline-flex items-center px-4 py-2 text-white rounded-md transition-colors font-medium text-sm hover:opacity-90"
                       title="Share on WhatsApp">
                        <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
                        </svg>
                        WhatsApp
                    </a>
                    
                    <!-- Telegram -->
                    <a href="https://t.me/share/url?url=https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here&text=" 
                       target="_blank" 
                       rel="noopener noreferrer"
                       style="background-color: #0088cc;"
                       class="inline-flex items-center px-4 py-2 text-white rounded-md transition-colors font-medium text-sm hover:opacity-90"
                       title="Share on Telegram">
                        <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/>
                        </svg>
                        Telegram
                    </a>
                    
                    <!-- Reddit -->
                    <a href="https://reddit.com/submit?url=https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here&title=" 
                       target="_blank" 
                       rel="noopener noreferrer"
                       style="background-color: #FF4500;"
                       class="inline-flex items-center px-4 py-2 text-white rounded-md transition-colors font-medium text-sm hover:opacity-90"
                       title="Share on Reddit">
                        <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 3.443.913.96 0 2.6-.07 3.441-.912a.331.331 0 0 0-.002-.463.33.33 0 0 0-.464 0c-.547.547-1.684.73-2.975.73-1.29 0-2.426-.183-2.973-.73a.326.326 0 0 0-.232-.095z"/>
                        </svg>
                        Reddit
                    </a>
                    
                    <!-- Email -->
                    <a href="mailto:?subject=&body=%20https%3A%2F%2Fwww.iheard.net%2Fnews%2Fdancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here" 
                       style="background-color: #4B5563;"
                       class="inline-flex items-center px-4 py-2 text-white rounded-md transition-colors font-medium text-sm hover:opacity-90"
                       title="Share via Email">
                        <svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
                        </svg>
                        Email
                    </a>
                    
                    <!-- Copy Link -->
                    <button onclick="copyToClipboard('https://www.iheard.net/news/dancing-with-the-stars-2025-spoilers-who-went-home-on-week-8-find-out-here')" 
                            style="background-color: #E2E8F0; color: #475569;"
                            class="inline-flex items-center px-4 py-2 rounded-md transition-colors font-medium text-sm hover:opacity-90"
                            title="Copy link to clipboard">
                        <svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"/>
                        </svg>
                        Copy Link
                    </button>
                </div>
            </div>
        </section>

        <!-- Related Articles -->
                    <section class="mb-8">
                <h2 class="text-2xl font-bold text-slate-800 mb-6">Related Articles</h2>
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                                                                    <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden hover:shadow-md transition-shadow cursor-pointer" onclick="window.location.href='https://www.iheard.net/news/queen-camilla-and-melania-trump-s-planned-matching-fashion-moment'">
                                                                                        <img src="https://www.iheard.net/uploads/article_images/article_1846378_69f5af5537cfb.jpg" 
                                     alt="Queen Camilla and Melania Trump&#039;s planned matching fashion moment" 
                                     class="w-full h-32 object-cover"
                                     onerror="this.onerror=null; this.style.display='none'; this.parentElement.innerHTML='<div class=\'w-full h-32 bg-slate-200 flex items-center justify-center\'><img src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==\' alt=\'RSS Feed\' class=\'w-12 h-12 object-contain\'></div>';">
                                                        
                            <div class="p-4">
                                <h3 class="font-semibold text-slate-800 mb-2 line-clamp-2">
                                    Queen Camilla and Melania Trump&#039;s planned matching fashion moment                                </h3>
                                <p class="text-sm text-slate-600 line-clamp-2">
                                    Queen Camilla looked stylish during the US State Visit. King Charles&#039; wife wore a selection of curat...                                </p>
                            </div>
                        </article>
                                                                    <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden hover:shadow-md transition-shadow cursor-pointer" onclick="window.location.href='https://www.iheard.net/news/a-hospital-worker-s-wide-feet-never-hurt-in-these-supportive-adidas-sneakers-they-re-on-sale-for-46'">
                                                                                        <div class="w-full h-32 bg-slate-200 flex items-center justify-center">
                                    <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==" 
                                         alt="RSS Feed" 
                                         class="w-12 h-12 object-contain">
                                </div>
                                                        
                            <div class="p-4">
                                <h3 class="font-semibold text-slate-800 mb-2 line-clamp-2">
                                    A Hospital Worker&#039;s Wide Feet &#039;Never Hurt&#039; in These Supportive Adidas Sneakers — They&#039;re on Sale for $46                                </h3>
                                <p class="text-sm text-slate-600 line-clamp-2">
                                    More deals on nurse-approved shoes await                                </p>
                            </div>
                        </article>
                                                                    <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden hover:shadow-md transition-shadow cursor-pointer" onclick="window.location.href='https://www.iheard.net/news/zayn-malik-cancels-sellout-us-tour-amid-health-struggles'">
                                                                                        <img src="https://pagesix.com/wp-content%2Fuploads%2Fsites%2F3%2F2026%2F05%2Fnewspress-collage-aee9a0vfe-1777703080555.jpg?quality%3D90%26strip%3Dall%261777688721" 
                                     alt="Zayn Malik cancels sellout US tour amid health struggles" 
                                     class="w-full h-32 object-cover"
                                     onerror="this.onerror=null; this.style.display='none'; this.parentElement.innerHTML='<div class=\'w-full h-32 bg-slate-200 flex items-center justify-center\'><img src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==\' alt=\'RSS Feed\' class=\'w-12 h-12 object-contain\'></div>';">
                                                        
                            <div class="p-4">
                                <h3 class="font-semibold text-slate-800 mb-2 line-clamp-2">
                                    Zayn Malik cancels sellout US tour amid health struggles                                </h3>
                                <p class="text-sm text-slate-600 line-clamp-2">
                                    In an announcement made on Friday, the singer shared that he had taken the decision to ax his entire...                                </p>
                            </div>
                        </article>
                                                                    <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden hover:shadow-md transition-shadow cursor-pointer" onclick="window.location.href='https://www.iheard.net/news/anna-nicole-smith-s-daughter-dannielynn-19-chops-off-her-hair-in-dramatic-transformation'">
                                                                                        <img src="https://www.iheard.net/uploads/article_images/article_1846304_69f5af556525b.jpg" 
                                     alt="Anna Nicole Smith&#039;s daughter Dannielynn, 19, &#039;chops off&#039; her hair in dramatic transformation" 
                                     class="w-full h-32 object-cover"
                                     onerror="this.onerror=null; this.style.display='none'; this.parentElement.innerHTML='<div class=\'w-full h-32 bg-slate-200 flex items-center justify-center\'><img src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==\' alt=\'RSS Feed\' class=\'w-12 h-12 object-contain\'></div>';">
                                                        
                            <div class="p-4">
                                <h3 class="font-semibold text-slate-800 mb-2 line-clamp-2">
                                    Anna Nicole Smith&#039;s daughter Dannielynn, 19, &#039;chops off&#039; her hair in dramatic transformation                                </h3>
                                <p class="text-sm text-slate-600 line-clamp-2">
                                    Anna Nicole Smith and Larry Birkhead&#039;s daughter, Dannielynn, debuted a dramatic hair transformation ...                                </p>
                            </div>
                        </article>
                                                                    <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden hover:shadow-md transition-shadow cursor-pointer" onclick="window.location.href='https://www.iheard.net/news/why-princess-charlotte-will-never-be-your-average-spare-heir'">
                                                                                        <img src="https://akns-images.eonline.com/eol_images/Entire_Site/20260429/b42d151e-25c1-4e21-b963-2f2efc4b5cc7_1777480457.jpg" 
                                     alt="Why Princess Charlotte Will Never Be Your Average Spare Heir" 
                                     class="w-full h-32 object-cover"
                                     onerror="this.onerror=null; this.style.display='none'; this.parentElement.innerHTML='<div class=\'w-full h-32 bg-slate-200 flex items-center justify-center\'><img src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==\' alt=\'RSS Feed\' class=\'w-12 h-12 object-contain\'></div>';">
                                                        
                            <div class="p-4">
                                <h3 class="font-semibold text-slate-800 mb-2 line-clamp-2">
                                    Why Princess Charlotte Will Never Be Your Average Spare Heir                                </h3>
                                <p class="text-sm text-slate-600 line-clamp-2">
                                    Princess Charlotte was never going to be an average spare heir.
Not least because the role didn&amp;#x27...                                </p>
                            </div>
                        </article>
                                                                    <article class="bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden hover:shadow-md transition-shadow cursor-pointer" onclick="window.location.href='https://www.iheard.net/news/post-malone-cancels-several-weeks-of-his-upcoming-big-ass-stadium-tour-part-2-with-jelly-roll'">
                                                                                        <img src="https://www.iheard.net/uploads/article_images/article_1846280_69f5b35440a2b.jpg" 
                                     alt="Post Malone Cancels Several Weeks of His Upcoming ‘Big Ass Stadium Tour Part 2’ with Jelly Roll" 
                                     class="w-full h-32 object-cover"
                                     onerror="this.onerror=null; this.style.display='none'; this.parentElement.innerHTML='<div class=\'w-full h-32 bg-slate-200 flex items-center justify-center\'><img src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzk0YTNiOCI+PHBhdGggZD0iTTMuNDI5IDguNTcxdjcuNzE0YzAgLjk1Mi4zODEgMS45MDUgMS4xNDMgMi42NjcuNzYyLjc2MiAxLjcxNSAxLjE0MyAyLjY2NyAxLjE0M2g5LjUyNGMuOTUyIDAgMS45MDUtLjM4MSAyLjY2Ny0xLjE0My43NjItLjc2MiAxLjE0My0xLjcxNSAxLjE0My0yLjY2N1Y4LjU3MU0zLjQyOSA4LjU3MWMwLS45NTIuMzgxLTEuOTA1IDEuMTQzLTIuNjY3QzUuMzM0IDUuMTQzIDYuMjg3IDQuNzYyIDcuMjM5IDQuNzYyaDkuNTI0Yy45NTIgMCAxLjkwNS4zODEgMi42NjcgMS4xNDMuNzYyLjc2MiAxLjE0MyAxLjcxNSAxLjE0MyAyLjY2N00zLjQyOSA4LjU3MWw4LjU3MSA0LjI4NiA4LjU3MS00LjI4NiIvPjwvc3ZnPg==\' alt=\'RSS Feed\' class=\'w-12 h-12 object-contain\'></div>';">
                                                        
                            <div class="p-4">
                                <h3 class="font-semibold text-slate-800 mb-2 line-clamp-2">
                                    Post Malone Cancels Several Weeks of His Upcoming ‘Big Ass Stadium Tour Part 2’ with Jelly Roll                                </h3>
                                <p class="text-sm text-slate-600 line-clamp-2">
                                    Post Malone has canceled the first few weeks of his upcoming Big Ass Stadium Tour Part 2 with Jelly ...                                </p>
                            </div>
                        </article>
                                    </div>
            </section>
            </main>

    <!-- Footer -->
        <!-- Footer -->
    <footer class="bg-white border-t border-slate-200 pt-16">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <!-- Section 1 -->
                <div>
                    <h3 class="text-lg font-semibold text-slate-800 mb-4">The Hottest Gossip, All in One Place</h3>
<p>Stay in the loop with iHeard. Discover what’s trending, who’s making headlines, and the stories everyone’s talking about. Fast, organized, and always fresh, you’ll never miss the buzz again.</p>                </div>
                
                <!-- Section 2 -->
                <div>
                    <h3 class="text-lg font-semibold text-slate-800 mb-4">Quick Links</h3><ul class="space-y-2 text-sm"><li><a href="index" class="text-slate-600 hover:text-primary transition-colors">Home</a></li><li><a href="list" class="text-slate-600 hover:text-primary transition-colors">List View</a></li><li><a href="ticker" class="text-slate-600 hover:text-primary transition-colors">Ticker (embed)</a></li><li><a href="summaries" class="text-slate-600 hover:text-primary transition-colors">Summaries</a></li></ul>                </div>
                
                <!-- Section 3 -->
                <div>
                    <h3 class="text-lg font-semibold text-slate-800 mb-4">Company & Legal</h3>
<ul>
<li><a href="https://www.siteweavers.co.tz/contact" target="_blank" rel="noopener">Advertise With Us</a></li>
<li><a href="https://www.siteweavers.co.tz/contact" target="_blank" rel="noopener">Contact Us</a></li>
<li><a href="https://www.iheard.net/privacy">Privacy Policy</a></li>
<li><a href="https://www.iheard.net/terms">Terms of Use</a></li>
<li><a href="https://www.siteweavers.co.tz/contact" target="_blank" rel="noopener">Report an Issue</a></li>
</ul>                </div>
            </div>
            
            <div class="mt-8 pt-8 border-t border-slate-200 text-center text-sm text-slate-600">
                <p>&copy; 2026 iHeard. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <!-- Cookie Consent Banner -->
        <div id="cookieConsentBanner" class="hidden fixed bottom-0 left-0 right-0 z-[9999] transform transition-all duration-300 ease-in-out" style="transform: translateY(100%);">
        <div class="bg-slate-800 border-t-4 border-primary shadow-2xl">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
                <div class="flex flex-col md:flex-row items-start md:items-center justify-between gap-4">
                    <div class="flex-1 flex items-start gap-4">
                        <div class="flex-shrink-0 mt-0.5">
                            <div class="w-10 h-10 bg-primary-100 rounded-full flex items-center justify-center">
                                <svg class="w-6 h-6 text-primary" fill="currentColor" viewBox="0 0 20 20">
                                    <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"/>
                                </svg>
                            </div>
                        </div>
                        <div class="flex-1">
                            <p class="text-base font-semibold cookie-title leading-relaxed mb-1">
                                Cookie Notice
                            </p>
                            <p class="text-sm cookie-text leading-relaxed">
                                We use cookies to enhance your browsing experience and analyze site traffic. By clicking &quot;Accept&quot;, you consent to our use of cookies.                                <a href="https://www.iheard.net/privacy" class="cookie-link underline font-semibold ml-1">
                                    Privacy Policy                                </a>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-3 flex-shrink-0 w-full md:w-auto">
                        <button id="declineCookies" class="flex-1 md:flex-none px-6 py-3 cookie-decline-btn rounded-lg transition-all font-semibold text-sm shadow-sm">
                            Decline                        </button>
                        <button id="acceptCookies" class="flex-1 md:flex-none px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary-700 active:bg-primary-800 transition-all font-semibold text-sm shadow-md hover:shadow-lg">
                            Accept                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <style>
        /* Ensure banner is always on top */
        #cookieConsentBanner {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 9999 !important;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
            opacity: 0;
        }
        
        #cookieConsentBanner.show {
            transform: translateY(0) !important;
            opacity: 1 !important;
        }
        
        /* Dark theme styles */
        [data-theme="dark"] #cookieConsentBanner > div {
            background-color: var(--bg-white) !important;
            border-color: var(--primary-color);
        }
        
        /* Light theme: Dark background with light text */
        #cookieConsentBanner > div {
            background-color: #1e293b !important; /* slate-800 */
        }
        
        .cookie-title {
            color: #ffffff !important; /* white text on dark background */
        }
        
        .cookie-text {
            color: #e2e8f0 !important; /* slate-200 - light text */
        }
        
        .cookie-link {
            color: #93c5fd !important; /* blue-300 - light link color */
        }
        
        .cookie-link:hover {
            color: #bfdbfe !important; /* blue-200 - lighter on hover */
        }
        
        .cookie-decline-btn {
            background-color: #475569 !important; /* slate-600 */
            border: 2px solid #64748b !important; /* slate-500 */
            color: #f1f5f9 !important; /* slate-100 - light text */
        }
        
        .cookie-decline-btn:hover {
            background-color: #64748b !important; /* slate-500 */
            border-color: #94a3b8 !important; /* slate-400 */
        }
        
        .cookie-decline-btn:active {
            background-color: #334155 !important; /* slate-700 */
        }
        
        /* Dark theme: Light background with dark text */
        [data-theme="dark"] #cookieConsentBanner > div {
            background-color: #f8fafc !important; /* slate-50 - light background */
            border-color: var(--primary-color);
        }
        
        [data-theme="dark"] .cookie-title {
            color: #1e293b !important; /* slate-800 - dark text on light background */
        }
        
        [data-theme="dark"] .cookie-text {
            color: #475569 !important; /* slate-600 - medium dark text */
        }
        
        [data-theme="dark"] .cookie-link {
            color: var(--primary-color) !important;
        }
        
        [data-theme="dark"] .cookie-link:hover {
            color: var(--primary-700) !important;
        }
        
        /* Dark theme buttons */
        [data-theme="dark"] .cookie-decline-btn {
            background-color: #e2e8f0 !important; /* slate-200 */
            border-color: #cbd5e1 !important; /* slate-300 */
            color: #1e293b !important; /* slate-800 */
        }
        
        [data-theme="dark"] .cookie-decline-btn:hover {
            background-color: #cbd5e1 !important; /* slate-300 */
            border-color: #94a3b8 !important; /* slate-400 */
        }
        
        /* Dark theme icon background */
        [data-theme="dark"] #cookieConsentBanner .bg-primary-100 {
            background-color: var(--primary-50) !important;
        }
        
        /* Ensure banner doesn't interfere with page content */
        body {
            padding-bottom: 0;
        }
        
        /* Add padding to body when banner is visible (optional - can be removed if not needed) */
        body.cookie-banner-visible {
            padding-bottom: 0;
        }
    </style>
    
    <script>
        // Cookie Consent Functionality
        (function() {
            // Check if user has already made a choice (accepted or declined)
            function hasCookieConsent() {
                return document.cookie.split(';').some(function(c) {
                    var cookie = c.trim();
                    return cookie.startsWith('cookie_consent=accepted') || cookie.startsWith('cookie_consent=declined');
                });
            }
            
            // Hide banner
            function hideBanner() {
                var banner = document.getElementById('cookieConsentBanner');
                if (banner) {
                    banner.style.transform = 'translateY(100%)';
                    banner.style.opacity = '0';
                    setTimeout(function() {
                        banner.classList.add('hidden');
                    }, 300);
                }
            }
            
            // Accept cookies
            function acceptCookies() {
                // Set cookie to expire in 1 year
                var expiryDate = new Date();
                expiryDate.setFullYear(expiryDate.getFullYear() + 1);
                document.cookie = 'cookie_consent=accepted; expires=' + expiryDate.toUTCString() + '; path=/; SameSite=Lax';
                hideBanner();
            }
            
            // Decline cookies
            function declineCookies() {
                // Set cookie to expire in 1 year (user choice is remembered)
                var expiryDate = new Date();
                expiryDate.setFullYear(expiryDate.getFullYear() + 1);
                document.cookie = 'cookie_consent=declined; expires=' + expiryDate.toUTCString() + '; path=/; SameSite=Lax';
                hideBanner();
            }
            
            // Show banner if no consent choice made
            if (!hasCookieConsent()) {
                // Small delay to ensure page is loaded
                setTimeout(function() {
                    var banner = document.getElementById('cookieConsentBanner');
                    if (banner) {
                        banner.classList.remove('hidden');
                        // Force reflow to ensure transition works
                        banner.offsetHeight;
                        // Trigger animation
                        setTimeout(function() {
                            banner.classList.add('show');
                        }, 50);
                    }
                }, 800);
            }
            
            // Handle accept button click
            var acceptButton = document.getElementById('acceptCookies');
            if (acceptButton) {
                acceptButton.addEventListener('click', acceptCookies);
            }
            
            // Handle decline button click
            var declineButton = document.getElementById('declineCookies');
            if (declineButton) {
                declineButton.addEventListener('click', declineCookies);
            }
        })();
    </script>
    

    <script>
        function copyToClipboard(text) {
            if (navigator.clipboard && window.isSecureContext) {
                // Use the Clipboard API if available
                navigator.clipboard.writeText(text).then(function() {
                    showCopyNotification('Link copied to clipboard!');
                }).catch(function(err) {
                    fallbackCopyToClipboard(text);
                });
            } else {
                // Fallback for older browsers
                fallbackCopyToClipboard(text);
            }
        }
        
        function fallbackCopyToClipboard(text) {
            const textArea = document.createElement('textarea');
            textArea.value = text;
            textArea.style.position = 'fixed';
            textArea.style.left = '-999999px';
            textArea.style.top = '-999999px';
            document.body.appendChild(textArea);
            textArea.focus();
            textArea.select();
            try {
                document.execCommand('copy');
                showCopyNotification('Link copied to clipboard!');
            } catch (err) {
                showCopyNotification('Failed to copy link', true);
            }
            document.body.removeChild(textArea);
        }
        
        function showCopyNotification(message, isError = false) {
            // Remove existing notification if any
            const existing = document.getElementById('copyNotification');
            if (existing) {
                existing.remove();
            }
        
            // Create notification element
            const notification = document.createElement('div');
            notification.id = 'copyNotification';
            notification.className = `fixed bottom-4 right-4 px-4 py-3 rounded-md shadow-lg z-50 ${
                isError ? 'bg-red-500 text-white' : 'bg-green-500 text-white'
            }`;
            notification.textContent = message;
        
            document.body.appendChild(notification);
        
            // Remove notification after 3 seconds
            setTimeout(function() {
                notification.style.opacity = '0';
                notification.style.transition = 'opacity 0.3s';
                setTimeout(function() {
                    notification.remove();
                }, 300);
            }, 3000);
        }
    </script>

    <script>
    // Theme Toggle Functionality
    const themeToggle = document.getElementById('themeToggle');
    const themeIconLight = document.getElementById('themeIconLight');
    const themeIconDark = document.getElementById('themeIconDark');
    const body = document.body;
    
    // Load saved theme
    const savedTheme = localStorage.getItem('theme') || 'light';
    body.setAttribute('data-theme', savedTheme);
    updateThemeIcon(savedTheme);
    
    function updateThemeIcon(theme) {
        if (themeIconLight && themeIconDark) {
            if (theme === 'dark') {
                themeIconLight.classList.add('hidden');
                themeIconDark.classList.remove('hidden');
            } else {
                themeIconLight.classList.remove('hidden');
                themeIconDark.classList.add('hidden');
            }
        }
    }
    
    if (themeToggle) {
        themeToggle.addEventListener('click', function() {
            const currentTheme = body.getAttribute('data-theme') || 'light';
            const newTheme = currentTheme === 'light' ? 'dark' : 'light';
            body.setAttribute('data-theme', newTheme);
            localStorage.setItem('theme', newTheme);
            updateThemeIcon(newTheme);
        });
    }
    
    // Header search functionality
    const headerSearchInput = document.getElementById('headerSearchInput');
    if (headerSearchInput) {
        const urlParams = new URLSearchParams(window.location.search);
        const currentSearch = urlParams.get('search') || '';
        headerSearchInput.value = currentSearch;
        
        headerSearchInput.addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                const searchValue = headerSearchInput.value.trim();
                const params = new URLSearchParams(window.location.search);
                if (searchValue) {
                    params.set('search', searchValue);
                } else {
                    params.delete('search');
                }
                window.location.href = '?' + params.toString();
            }
        });
    }
</script>

</body>
</html>

