<?xml version="1.0" encoding="UTF-8"?>
<!--
  Every built route is listed once. Bilingual pages appear as two entries
  (English and Arabic), each carrying the full set of hreflang alternates
  including a self-reference — the reciprocal annotation Google expects.

  The home page is a single route that switches language at runtime (?lang=ar),
  so it is annotated rather than duplicated.

  The whole Perspectives series (Nos. 1, 2 and 3) is now bilingual, so each
  paper appears as an English/Arabic pair. Add both editions when a new paper
  ships, so the series never regresses to half-indexed.
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">

  <!-- Home (runtime language toggle) -->
  <url>
    <loc>https://edsmartly.com/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/"/>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>

  <!-- Our AI Principles (parent-facing) -->
  <url>
    <loc>https://edsmartly.com/principles/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/principles/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/principles/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/principles/"/>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/principles/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/principles/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/principles/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/principles/"/>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <!-- Perspectives series. No. 3 has an Arabic edition; Nos. 1-2 are English
       only for now — give them alternates here when those are published. -->
  <url>
    <loc>https://edsmartly.com/perspectives/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/perspectives/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/perspectives/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/perspectives/"/>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/perspectives/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/perspectives/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/perspectives/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/perspectives/"/>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/perspectives/2/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/perspectives/2/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/perspectives/2/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/perspectives/2/"/>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/perspectives/2/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/perspectives/2/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/perspectives/2/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/perspectives/2/"/>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/perspectives/3/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/perspectives/3/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/perspectives/3/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/perspectives/3/"/>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/perspectives/3/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/perspectives/3/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/perspectives/3/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/perspectives/3/"/>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>

  <!-- Support -->
  <url>
    <loc>https://edsmartly.com/support/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/support/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/support/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/support/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/support/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/support/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/support/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/support/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>

  <!-- Legal -->
  <url>
    <loc>https://edsmartly.com/privacy/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/privacy/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/privacy/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/privacy/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/privacy/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/privacy/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/privacy/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/privacy/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/terms/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/terms/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/terms/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/terms/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/terms/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/terms/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/terms/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/terms/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/cookies/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/cookies/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/cookies/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/cookies/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://edsmartly.com/ar/cookies/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://edsmartly.com/cookies/"/>
    <xhtml:link rel="alternate" hreflang="ar" href="https://edsmartly.com/ar/cookies/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://edsmartly.com/cookies/"/>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>

</urlset>
