<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

    <!-- ============================================================
         HOMEPAGE
    ============================================================ -->
    <url>
        <loc>https://algrowthm.com/</loc>
        <priority>1.00</priority>
        <changefreq>daily</changefreq>
    </url>

    <!-- ============================================================
         PAGES
    ============================================================ -->
    <url>
        <loc>https://algrowthm.com/about</loc>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/about-akc</loc>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/services</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/blog</loc>
        <priority>0.80</priority>
        <changefreq>weekly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/faq</loc>
        <priority>0.70</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/free-resource</loc>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
     <url>
        <loc>https://algrowthm.com/free-meta-generator/</loc>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/contact</loc>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/privacy-policy</loc>
        <priority>0.30</priority>
        <changefreq>yearly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/terms</loc>
        <priority>0.30</priority>
        <changefreq>yearly</changefreq>
    </url>

    <!-- ============================================================
         SERVICE PAGES
    ============================================================ -->
    <url>
        <loc>https://algrowthm.com/amazon-marketing</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/seo-services</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/google-ads</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/meta-ads</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/social-media-marketing</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://algrowthm.com/web-development</loc>
        <priority>0.90</priority>
        <changefreq>monthly</changefreq>
    </url>

<!-- ============================================================
     RESOURCE PAGES (NEW)
============================================================ -->
<url>
    <loc>https://algrowthm.com/guide-resource-by-akc</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/amazon-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/find-products-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/optimize-listing-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/ranking-strategy-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/ppc-optimization-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/ai-tools-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/business-growth-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

<url>
    <loc>https://algrowthm.com/guide-resource-by-akc/free-audit-resource</loc>
    <lastmod>2024-08-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
</url>

    <!-- ============================================================
         BLOG POSTS (DYNAMIC)
    ============================================================ -->
    <?php
    $jsonFile = 'data/blogs.json';
    if (file_exists($jsonFile)) {
        $content = file_get_contents($jsonFile);
        $data = json_decode($content, true);
        $blogs = $data['blogs'] ?? [];
        foreach ($blogs as $blog) {
            echo '    <url>' . "\n";
            echo '        <loc>https://algrowthm.com/blog-post?slug=' . htmlspecialchars($blog['slug']) . '</loc>' . "\n";
            echo '        <priority>0.70</priority>' . "\n";
            echo '        <changefreq>monthly</changefreq>' . "\n";
            echo '    </url>' . "\n";
        }
    }
    ?>

</urlset>