<?xml version="1.0" encoding="UTF-8"?>
<!--generator='jetpack-16.2'-->
<!--Jetpack_Sitemap_Buffer_News_XMLWriter-->
<?xml-stylesheet type="text/xsl" href="//christfriends.org/news-sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 <url>
  <loc>https://christfriends.org/</loc>
 </url>
</urlset>
  <!-- START CHRIST FRIENDS GLOBAL AI ONLINE REPRESENTATIVE (ROYAL BLUE, RED & WHITE) -->
  <div id="cfg-ai-root" style="position:fixed;bottom:24px;right:24px;z-index:9999999;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
    
    <!-- FLOATING TOGGLE BADGE -->
    <div id="cfg-ai-toggle" style="display:flex;align-items:center;gap:12px;cursor:pointer;background:linear-gradient(135deg,#061a3f,#04112c);border:1.5px solid #1464e8;padding:8px 18px 8px 8px;border-radius:999px;box-shadow:0 16px 36px rgba(4,17,44,0.6),0 0 25px rgba(20,100,232,0.35);transition:all .25s ease;user-select:none;">
      <div style="position:relative;width:44px;height:44px;">
        <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&#038;fit=crop&#038;w=256&#038;q=80" alt="Sister Grace" style="width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #ef4444;">
        <span style="position:absolute;bottom:1px;right:1px;width:12px;height:12px;background:#ef4444;border:2px solid #061a3f;border-radius:50%;box-shadow:0 0 8px #ef4444;"></span>
      </div>
      <div style="display:flex;flex-direction:column;">
        <span style="color:#ffffff;font-size:13.5px;font-weight:800;letter-spacing:.3px;display:flex;align-items:center;gap:6px;">
          Sister Grace          <span style="background:#ef4444;color:#ffffff;font-size:9px;padding:2px 7px;border-radius:10px;text-transform:uppercase;font-weight:800;">AMBASSADOR</span>
        </span>
        <small style="color:#94a3b8;font-size:10.5px;"></small>
      </div>
      <div style="width:30px;height:30px;background:#1464e8;border-radius:50%;display:grid;place-items:center;color:#fff;margin-left:4px;box-shadow:0 4px 10px rgba(20,100,232,.4);">
        <svg style="width:16px;height:16px;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
      </div>
    </div>

    <!-- CHAT INTERFACE WINDOW -->
    <div id="cfg-ai-window" style="display:none;position:absolute;bottom:68px;right:0;width:380px;max-width:calc(100vw - 32px);height:580px;max-height:calc(100vh - 100px);background:#06183a;border-radius:20px;border:1px solid rgba(255,255,255,0.14);box-shadow:0 28px 70px rgba(0,0,0,0.7),0 0 45px rgba(20,100,232,0.3);flex-direction:column;overflow:hidden;animation:cfgPopUp .25s ease-out;">
      
      <!-- HEADER -->
      <div style="background:linear-gradient(135deg,#061a3f 0%,#09265c 100%);padding:14px 18px;border-bottom:1px solid rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:space-between;color:#fff;">
        <div style="display:flex;align-items:center;gap:10px;">
          <div style="position:relative;">
            <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&#038;fit=crop&#038;w=256&#038;q=80" style="width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #ef4444;">
            <span style="position:absolute;bottom:0;right:0;width:10px;height:10px;background:#ef4444;border:2px solid #061a3f;border-radius:50%;"></span>
          </div>
          <div>
            <div style="font-size:14px;font-weight:800;color:#ffffff;display:flex;align-items:center;gap:6px;">
              Sister Grace              <span style="background:#ef4444;color:#fff;font-size:9px;padding:2px 6px;border-radius:4px;font-weight:800;">ONLINE</span>
            </div>
            <div style="font-size:10.5px;color:#93c5fd;">Christ Friends Global Ambassador</div>
          </div>
        </div>
        <div style="display:flex;align-items:center;gap:8px;">
          <!-- VOICE OUTPUT TOGGLE -->
          <button type="button" id="cfg-ai-voice-btn" title="Toggle Voice Response" style="width:30px;height:30px;background:rgba(255,255,255,0.1);border:none;border-radius:50%;display:grid;place-items:center;color:#38bdf8;cursor:pointer;">
            <svg style="width:16px;height:16px;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 5L6 9H2v6h4l5 4V5z"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"/></svg>
          </button>
          <!-- DIRECT WHATSAPP BUTTON -->
          <a href="https://wa.me/2349114828591?text=Hello%20Christ%20Friends%20Global%2C%20I%20would%20like%20to%20speak%20with%20a%20minister..." target="_blank" title="Connect on WhatsApp" style="width:30px;height:30px;background:#1464e8;border-radius:50%;display:grid;place-items:center;color:#fff;text-decoration:none;">
            <svg style="width:16px;height:16px;" viewBox="0 0 24 24" fill="currentColor"><path d="M12.031 6.172c-3.181 0-5.767 2.586-5.768 5.766-.001 1.298.38 2.27 1.019 3.287l-.711 2.598 2.664-.698c.969.58 1.961.916 2.796.916 3.183 0 5.769-2.587 5.77-5.772zm3.392 8.244c-.144.405-.837.774-1.17.824-.299.045-.677.063-1.092-.069-.252-.08-.575-.187-.988-.365-1.739-.751-2.874-2.502-2.961-2.617-.087-.116-.708-.94-.708-1.793s.448-1.273.607-1.446c.159-.173.346-.217.462-.217l.332.007c.106.005.249-.04.39.299.144.347.491 1.199.534 1.286.043.087.072.188.014.303-.058.116-.087.188-.173.289l-.26.304c-.087.086-.177.18-.076.354.101.174.449.741.964 1.201.662.591 1.221.774 1.394.86.174.086.275.072.376-.044.101-.116.433-.506.549-.679.116-.173.231-.145.39-.087s1.011.477 1.184.564.289.13.332.202c.043.073.043.419-.101.824z"/></svg>
          </a>
          <!-- CLOSE BUTTON -->
          <button type="button" id="cfg-ai-close" style="width:30px;height:30px;background:rgba(255,255,255,0.1);border:none;border-radius:50%;color:#cbd5e1;cursor:pointer;display:grid;place-items:center;font-size:16px;">✕</button>
        </div>
      </div>

      <!-- MESSAGES CONTAINER -->
      <div id="cfg-ai-body" style="flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:radial-gradient(ellipse at bottom left,rgba(20,100,232,0.16),transparent 75%);">
        
        <div style="background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:10px;text-align:center;color:#94a3b8;font-size:11px;">
          <strong style="display:block;color:#ffffff;font-size:12px;margin-bottom:2px;">Christ Friends Global Online</strong>
          Beholding & Manifesting Christ • Global Discipleship
        </div>

        <!-- Greeting Bubble 1: Customer Support (Luxury Royal Blue Bubble) -->
        <div style="display:flex;gap:8px;align-items:flex-start;">
          <img src="https://christfriends.org/wp-content/uploads/2026/01/cropped-cropped-cropped-Christ-Friends-Global-logo.png" style="width:26px;height:26px;border-radius:50%;background:#fff;padding:2px;flex-shrink:0;">
          <div style="max-width:82%;">
            <div style="font-size:9.5px;color:#94a3b8;margin-bottom:3px;font-weight:700;">Customer Support</div>
            <div style="background:#1464e8;color:#ffffff;padding:10px 14px;border-radius:14px 14px 14px 3px;font-size:12.5px;line-height:1.45;box-shadow:0 4px 12px rgba(20,100,232,0.3);">
              👋 Hi! Welcome to Christ Friends Global. How can we help?            </div>
          </div>
        </div>

        <!-- Greeting Bubble 2: Christ Friend Online (Deep Navy / Red Badge) -->
        <div style="display:flex;gap:8px;align-items:flex-start;">
          <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&#038;fit=crop&#038;w=256&#038;q=80" style="width:26px;height:26px;border-radius:50%;object-fit:cover;flex-shrink:0;">
          <div style="max-width:82%;">
            <div style="font-size:9.5px;color:#94a3b8;margin-bottom:3px;font-weight:700;">Christ Friend Online</div>
            <div style="background:#0b4cc4;color:#ffffff;padding:10px 14px;border-radius:14px 14px 14px 3px;font-size:12.5px;line-height:1.45;box-shadow:0 4px 12px rgba(11,76,196,0.3);border-left:3px solid #ef4444;">
              Hello! How can I assist you with the Discipleship Academy or Ministry today?            </div>
          </div>
        </div>

        <!-- Quick Suggestions -->
        <div id="cfg-ai-pills" style="display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px 34px;">
                  </div>

      </div>

      <!-- INPUT BOX & ACTIONS -->
      <div style="background:#04112c;padding:12px;border-top:1px solid rgba(255,255,255,0.08);">
        <div style="display:flex;gap:8px;background:#092147;border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:4px 8px;align-items:center;">
          <input type="text" id="cfg-ai-input" placeholder="Type here and press enter..." style="flex:1;background:transparent;border:none;color:#fff;font-size:13px;outline:none;padding:8px 4px;">
          <button type="button" id="cfg-ai-send" style="background:#ef4444;color:#fff;border:none;width:34px;height:34px;border-radius:8px;cursor:pointer;display:grid;place-items:center;">
            <svg style="width:16px;height:16px;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m22 2-7 20-4-9-9-4Z"/><path d="M22 2 11 13"/></svg>
          </button>
        </div>
        <div style="display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:10px;color:#94a3b8;padding:0 4px;">
          <span>Christ Friends Global AI</span>
          <a href="https://wa.me/2349114828591" target="_blank" style="color:#ef4444;text-decoration:none;font-weight:700;">WhatsApp Pastoral Care</a>
        </div>
      </div>

    </div>

  </div>

  <style>
    @keyframes cfgPopUp { from { opacity:0; transform:translateY(12px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
    .cfg-pill-btn:hover { background:#1464e8!important; color:#fff!important; border-color:#1464e8!important; }
    #cfg-ai-toggle:hover { transform:translateY(-3px); box-shadow:0 20px 42px rgba(4,17,44,0.7),0 0 35px rgba(20,100,232,0.45)!important; }
  </style>

  <script>
  (function(){
    var voiceOn = true;
    var voiceLang = "en-US";
    var voiceSpeed = 1;

    function hideTawk(){
      if(window.Tawk_API && typeof window.Tawk_API.hideWidget === "function"){
        try { window.Tawk_API.hideWidget(); } catch(e){}
      }
      var tawks = document.querySelectorAll("iframe[title*='chat' i], #tawk-script, .widget-visible, .tawk-min-container");
      tawks.forEach(function(el){ if(el && el.style) el.style.display = "none"; });
    }
    hideTawk();
    setInterval(hideTawk, 1500);

    var toggle = document.getElementById("cfg-ai-toggle");
    var win = document.getElementById("cfg-ai-window");
    var close = document.getElementById("cfg-ai-close");
    var body = document.getElementById("cfg-ai-body");
    var input = document.getElementById("cfg-ai-input");
    var send = document.getElementById("cfg-ai-send");
    var vBtn = document.getElementById("cfg-ai-voice-btn");

    if(!toggle || !win) return;

    function speak(text){
      if(!voiceOn || !window.speechSynthesis) return;
      try {
        window.speechSynthesis.cancel();
        var clean = text.replace(/<[^>]*>/g, "").replace(/\*(.*?)\*/g, "$1").replace(/https?:\/\/\S+/g, "");
        var u = new SpeechSynthesisUtterance(clean);
        u.lang = voiceLang;
        u.rate = voiceSpeed;
        window.speechSynthesis.speak(u);
      } catch(e){}
    }

    function toggleChatWin(){
      var isO = win.style.display === "flex";
      win.style.display = isO ? "none" : "flex";
      if(!isO){
        body.scrollTop = body.scrollHeight;
        setTimeout(function(){ input && input.focus(); }, 150);
      }
    }

    toggle.addEventListener("click", toggleChatWin);
    close.addEventListener("click", function(){ win.style.display = "none"; });

    if(vBtn){
      vBtn.addEventListener("click", function(){
        voiceOn = !voiceOn;
        if(!voiceOn && window.speechSynthesis) window.speechSynthesis.cancel();
        alert(voiceOn ? "🔊 Voice Response Enabled!" : "🔇 Voice Response Muted.");
      });
    }

    document.addEventListener("click", function(e){
      var trigger = e.target.closest("[data-cfx='livechat'], .o-chat, a[href*='tawk.to'], .cfg-open-chat");
      if(trigger){
        e.preventDefault();
        e.stopPropagation();
        win.style.display = "flex";
        body.scrollTop = body.scrollHeight;
      }
    });

    body.addEventListener("click", function(e){
      if(e.target.classList.contains("cfg-pill-btn")){
        var q = e.target.textContent.trim();
        sendMsg(q);
      }
    });

    function sendMsg(txt){
      if(!txt) return;

      var uDiv = document.createElement("div");
      uDiv.style.cssText = "display:flex;justify-content:flex-end;";
      uDiv.innerHTML = "<div style=\"background:#1464e8;color:#ffffff;padding:10px 14px;border-radius:14px 14px 2px 14px;font-size:12.5px;max-width:82%;line-height:1.4;\">" + txt.replace(/</g,"&lt;") + "</div>";
      body.appendChild(uDiv);
      body.scrollTop = body.scrollHeight;

      var tDiv = document.createElement("div");
      tDiv.style.cssText = "display:flex;gap:8px;align-items:flex-start;";
      tDiv.innerHTML = "<img src=\"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&#038;fit=crop&#038;w=256&#038;q=80\" style=\"width:24px;height:24px;border-radius:50%;object-fit:cover;\"><div style=\"background:#092147;color:#93c5fd;padding:9px 14px;border-radius:12px;font-size:12px;\">Sister Grace is answering...</div>";
      body.appendChild(tDiv);
      body.scrollTop = body.scrollHeight;

      var params = new URLSearchParams();
      params.append("action", "cfg_ai_chat");
      params.append("message", txt);

      fetch("https://christfriends.org/wp-admin/admin-ajax.php", {
        method: "POST",
        headers: {"Content-Type": "application/x-www-form-urlencoded"},
        body: params.toString()
      })
      .then(function(r){ return r.json(); })
      .then(function(res){
        tDiv.remove();
        var reply = (res.data && res.data.reply) ? res.data.reply : "Grace and peace to you! How may I assist you further today?";
        var aDiv = document.createElement("div");
        aDiv.style.cssText = "display:flex;gap:8px;align-items:flex-start;";
        var formattedReply = reply.replace(/\n\n/g, "<br><br>").replace(/\n/g, "<br>").replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>");

        var actionHtml = "";
        if(res.data && res.data.action_type === "whatsapp" && res.data.action_data){
          actionHtml = "<div style=\"margin-top:10px;\"><a href=\"" + res.data.action_data.url + "\" target=\"_blank\" style=\"display:inline-flex;align-items:center;gap:6px;background:#ef4444;color:#fff;text-decoration:none;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:700;\">Connect on WhatsApp →</a></div>";
        } else if(res.data && res.data.action_type === "link" && res.data.action_data){
          actionHtml = "<div style=\"margin-top:10px;\"><a href=\"" + res.data.action_data.url + "\" target=\"_blank\" style=\"display:inline-flex;align-items:center;gap:6px;background:#1464e8;color:#fff;text-decoration:none;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:700;\">" + res.data.action_data.label + " →</a></div>";
        }

        var speakBtnHtml = "<button type=\"button\" onclick=\"window.cfgPlayVoice(this)\" data-txt=\"" + encodeURIComponent(reply) + "\" style=\"background:none;border:none;color:#38bdf8;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;margin-top:8px;\">🔊 Listen</button>";

        aDiv.innerHTML = "<img src=\"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&#038;fit=crop&#038;w=256&#038;q=80\" style=\"width:26px;height:26px;border-radius:50%;object-fit:cover;flex-shrink:0;\"><div style=\"max-width:82%;\"><div style=\"font-size:9.5px;color:#94a3b8;margin-bottom:3px;font-weight:700;\">Sister Grace</div><div style=\"background:#092147;color:#ffffff;padding:10px 14px;border-radius:14px 14px 14px 3px;font-size:12.5px;line-height:1.45;border:1px solid rgba(255,255,255,.07);border-left:3px solid #ef4444;\">" + formattedReply + actionHtml + speakBtnHtml + "</div></div>";
        body.appendChild(aDiv);
        body.scrollTop = body.scrollHeight;

        speak(reply);
      })
      .catch(function(){
        tDiv.remove();
      });
    }

    window.cfgPlayVoice = function(btn){
      var t = decodeURIComponent(btn.getAttribute("data-txt") || "");
      speak(t);
    };

    send && send.addEventListener("click", function(){
      var v = input.value.trim();
      if(v){ input.value = ""; sendMsg(v); }
    });

    input && input.addEventListener("keydown", function(e){
      if(e.key === "Enter"){
        var v = input.value.trim();
        if(v){ input.value = ""; sendMsg(v); }
      }
    });

  })();
  </script>
  <!-- END CHRIST FRIENDS GLOBAL AI ONLINE REPRESENTATIVE -->
  