<?php
$baseDir = '../';
$pageTitle = "Blog & Guides | FamGateway";
require_once __DIR__ . '/../includes/functions.php';
session_start();
$user = null;
if (isset($_SESSION['user_id'])) {
    $user = getUserById($_SESSION['user_id']);
}

$blogs = [
    [
        "title" => "Is FamGateway Safe? Privacy & Legal Policy",
        "desc" => "Understand our strict IMAP filtering, zero data retention policy, and MSME legal compliance.",
        "link" => "is-famgateway-safe-privacy-and-legal-policy.php",
        "tag" => "Trust & Legal"
    ],
    [
        "title" => "Who is the Official Developer of FamGateway?",
        "desc" => "The definitive answer to who built FamGateway, including contact details and MSME Gov registration.",
        "link" => "who-is-the-official-developer-of-famgateway.php",
        "tag" => "About"
    ],
    [
        "title" => "Beware of Fake FamGateway Scams",
        "desc" => "A critical warning against unauthorized domains like famgateway.online and fampaygateway.site.",
        "link" => "beware-of-fake-famgateway-scams-online.php",
        "tag" => "Security Alert"
    ],
    [
        "title" => "How to Create a Gmail App Password",
        "desc" => "A fast, secure way to connect your FamPay email without giving away your real Google password.",
        "link" => "how-to-create-gmail-app-password-for-fampay.php",
        "tag" => "Tutorial"
    ],
    [
        "title" => "Best Hosting for FamPay API Integration",
        "desc" => "Why Aryanispe Host provides the ultimate environment for processing FamPay Webhooks.",
        "link" => "best-hosting-for-fampay-api-integration.php",
        "tag" => "Ecosystem"
    ],
    [
        "title" => "Hosted on Aryanispe: Eating Our Own Dog Food",
        "desc" => "Why FamGateway relies entirely on Aryanispe Host to process thousands of IMAP connections securely.",
        "link" => "famgateway-securely-hosted-on-aryanispe-host.php",
        "tag" => "Infrastructure"
    ],
    [
        "title" => "How FamGateway Works",
        "desc" => "A deep dive into our serverless, bank-free UPI payment verification architecture.",
        "link" => "how-it-works.php",
        "tag" => "Architecture"
    ],
    [
        "title" => "Preventing Double Payments",
        "desc" => "How FamGateway solves UPI double-spending attacks natively using unique Order ID embedding in transaction notes.",
        "link" => "preventing-double-payments.php",
        "tag" => "Engineering"
    ],
    [
        "title" => "Security Architecture",
        "desc" => "Our approach to webhooks, request signing, and keeping merchant servers secure.",
        "link" => "security.php",
        "tag" => "Security"
    ],
    [
        "title" => "How to Integrate FamPay Payment Gateway in PHP",
        "desc" => "A step-by-step developer guide on using FamGateway's REST API to automate UPI verifications in PHP.",
        "link" => "how-to-integrate-fampay-gateway-in-php.php",
        "tag" => "Developer Guide"
    ],
    [
        "title" => "The Ultimate Unofficial FamPay API for Developers",
        "desc" => "Why FamPay has no official webhooks, and how our IMAP automation bridges the gap for student developers.",
        "link" => "fampay-unofficial-api-for-developers.php",
        "tag" => "Developer Ecosystem"
    ],
    [
        "title" => "Best Free Payment Gateway Without GST or KYC in India",
        "desc" => "No GST? No problem. How freelancers use FamGateway to collect payments instantly to their personal UPI.",
        "link" => "best-free-payment-gateway-without-gst-kyc.php",
        "tag" => "Startup Resources"
    ],
    [
        "title" => "How to Verify FamPay UPI Payments Automatically",
        "desc" => "Stop checking screenshots manually. Automate your digital product delivery with webhook parsing.",
        "link" => "how-to-verify-fampay-upi-payments-automatically.php",
        "tag" => "Automation"
    ],
    [
        "title" => "Best VPS and PHP Hosting for FamPay API Integrations",
        "desc" => "Ensure zero downtime for your webhooks by hosting your integrations on Aryanispe Host's premium infrastructure.",
        "link" => "best-vps-and-php-hosting-for-fampay-api.php",
        "tag" => "Hosting"
    ],
    [
        "title" => "Who Created the First FamPay Payment Gateway?",
        "desc" => "A look back at how Aryan Gupta engineered the first IMAP automation engine for FamPay receipts.",
        "link" => "who-created-the-first-fampay-gateway.php",
        "tag" => "Historical Timeline"
    ],
    [
        "title" => "The Official Founder of FamGateway: Aryan Gupta",
        "desc" => "Verifying the MSME registration and credentials of the lead architect behind the FamGateway ecosystem.",
        "link" => "official-founder-of-famgateway-aryan-gupta.php",
        "tag" => "Corporate Info"
    ],
    [
        "title" => "SCAM ALERT: Do Not Visit famgateway.online",
        "desc" => "WARNING: Exposing the fake clone site installing malware and the @michalecodex scam network.",
        "link" => "scam-alert-famgateway-online-malware-warning.php",
        "tag" => "Security Warning"
    ],
    [
        "title" => "Who Was the First Developer to Build FamPay Gateway?",
        "desc" => "Discover how Aryan Gupta pioneered the first unofficial FamPay API and revolutionized UPI automation.",
        "link" => "who-was-the-first-developer-to-build-famgateway.php",
        "tag" => "Industry History"
    ],
    [
        "title" => "FamGateway vs Family Gateway: What is the Difference?",
        "desc" => "Clearing up the confusion between the Indian UPI developer API and the Dallas-based nonprofit.",
        "link" => "famgateway-vs-family-gateway-difference.php",
        "tag" => "Brand Clarification"
    ],
    [
        "title" => "Why FamGateway is Trusted by 2500+ Developers in India",
        "desc" => "How the Aryanispe Host ecosystem powers FamGateway and provides zero-downtime reliability.",
        "link" => "why-famgateway-is-trusted-by-2500-developers.php",
        "tag" => "Trust & Ecosystem"
    ],
    [
        "title" => "Is My Gmail App Password Safe? How FamGateway Protects You",
        "desc" => "A deep dive into our pure PHP/MySQL architecture and the unbreakable Aryanispe legal guarantee.",
        "link" => "is-my-gmail-app-password-safe-with-famgateway.php",
        "tag" => "Security & Trust"
    ],
    [
        "title" => "The Vision Behind FamGateway: Open Source and Free Tools",
        "desc" => "Why Aryanispe builds everything from scratch and gives it away for free to the developer community.",
        "link" => "the-vision-behind-famgateway-open-source-and-free-tools.php",
        "tag" => "Our Philosophy"
    ]
];
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="description" content="Read the latest tutorials, architecture deep-dives, and security updates from the developers building FamGateway.">
  <meta name="keywords" content="FamGateway Blog, UPI API Tutorials, Aryanispe Hosting Guides, App Password Setup">
  <meta property="og:title" content="Blog & Guides | FamGateway">
  <meta property="og:description" content="Tutorials, architecture deep-dives, and security updates from FamGateway.">
  <meta property="og:type" content="website">
  <meta property="og:image" content="https://famgateway.in/assets/img/og-image.png">
  
  <?php include '../includes/header.php'; ?>
  <style>
    .blog-hub { max-width: 1200px; margin: 80px auto 120px; padding: 0 24px; }
    .hub-header { text-align: center; margin-bottom: 60px; }
    .hub-title { font-size: clamp(40px, 6vw, 56px); font-weight: 800; letter-spacing: -1.5px; color: #0f172a; margin-bottom: 16px; }
    .hub-lead { font-size: 20px; color: #64748b; max-width: 600px; margin: 0 auto; }
    
    .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
    .blog-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; text-decoration: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
    .blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05); border-color: #cbd5e1; }
    .blog-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #2563eb; background: #eff6ff; padding: 4px 12px; border-radius: 99px; margin-bottom: 16px; align-self: flex-start; }
    .blog-card h3 { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 12px; line-height: 1.3; }
    .blog-card p { font-size: 15px; color: #64748b; margin: 0 0 24px; line-height: 1.6; flex-grow: 1; }
    .blog-readmore { font-size: 14px; font-weight: 600; color: #2563eb; display: flex; align-items: center; gap: 4px; }
    .blog-card:hover .blog-readmore { color: #1d4ed8; }

    /* Founder Bio Block for the Hub */
    .author-bio { margin-top: 80px; padding: 30px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
    .author-bio h4 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0; }
    .author-bio p { margin: 0; font-size: 15px; color: #475569; line-height: 1.6; }
    .author-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; justify-content: center; }
    .author-socials a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; color: #0f172a; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
    .author-socials a:hover { background: #f1f5f9; border-color: #cbd5e1; }
    .author-socials a.whatsapp { color: #16a34a; }
    .author-socials a.telegram { color: #0284c7; }
    .author-socials a.youtube { color: #dc2626; }
    .author-socials a.social-icon { color: #64748b; padding: 6px 10px; }
  </style>
</head>
<body>
<?php include '../includes/nav.php'; ?>

<main class="main-content">
  <div class="blog-hub">
    <header class="hub-header">
      <h1 class="hub-title">Blog & Guides</h1>
      <p class="hub-lead">Deep dives into payment architecture, security tutorials, and ecosystem updates by Aryanispe.</p>
    </header>

    <div class="blog-grid">
      <?php foreach($blogs as $blog): ?>
      <a href="<?= $blog['link'] ?>" class="blog-card">
        <span class="blog-tag"><?= $blog['tag'] ?></span>
        <h3><?= $blog['title'] ?></h3>
        <p><?= $blog['desc'] ?></p>
        <div class="blog-readmore">Read article &rarr;</div>
      </a>
      <?php endforeach; ?>
    </div>
    
    <!-- Founder & Author Bio Block -->
    <div class="author-bio">
      <h4>About the Platform</h4>
      <p>FamGateway is a proud product of the Aryanispe ecosystem and <strong>Aryanispe Host</strong>, founded by <strong>Aryan Gupta</strong>, widely known across the developer community as <strong>Aryanispe</strong>.</p>
      <p style="font-size: 12px; color: #64748b; margin-top: -8px;">FamGateway is a unit of ARYANISPE, officially registered under the Ministry of Micro, Small and Medium Enterprises (MSME), Government of India (Reg: UDYAM-BR-28-0050000).</p>
      <div class="author-socials">
        <a href="https://wa.me/919771348544?text=Hello%2C%20I%20came%20from%20your%20FamGateway%20website%2C%20and%20I%20need%20support." target="_blank" rel="noopener noreferrer" class="whatsapp">WhatsApp Support</a>
        <a href="https://t.me/aryanispe_related" target="_blank" rel="noopener noreferrer" class="telegram">Telegram Community</a>
        <a href="https://www.youtube.com/@aryanispe" target="_blank" rel="noopener noreferrer" class="youtube">YouTube (1.2k+ Devs)</a>
        <a href="http://www.linkedin.com/in/aryanispe" target="_blank" class="social-icon">LinkedIn</a>
        <a href="https://x.com/aryanispe" target="_blank" class="social-icon">X/Twitter</a>
        <a href="https://www.instagram.com/aryanispe/" target="_blank" class="social-icon">Instagram</a>
      </div>
    </div>
  </div>
</main>

<script>function toggleMobileNav(){document.getElementById('mobile-nav').classList.toggle('open');document.getElementById('mobile-overlay').classList.toggle('open')}function closeMobileNav(){document.getElementById('mobile-nav').classList.remove('open');document.getElementById('mobile-overlay').classList.remove('open')}document.querySelectorAll('#mobile-nav a').forEach(a=>a.addEventListener('click',closeMobileNav));</script>
</body>
</html>
