<?php
$page = 'cheap-vps-hosting';
include 'inc/nav.php'; ?>

<!-- HERO -->
<style>
    .filter-row {
        display: none;
    }

    .hero_heading span {
        color: #3c47fb;
    }

    .hero-title {
        font-size: 58px;
        font-weight: 800;
        line-height: 1.1;
        color: #04111f;
        margin: 10px 0;
    }

    .hero-title span {
        color: #3c47fb;
    }

    /* SUB */
    .hero-sub1 {
        margin-top: 10px;
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 1.4rem;
    }

    .hero-sub1 span {
        color: #3c47fb;
        font-weight: 700;
    }

    .hero-pill--accent::after {
        background: #f4f6ff;
    }

    .hero-pill--accent {
        color: #3c47fb;
    }

    .hero-sub {
        font-family: "DM Sans", sans-serif;
        margin-top: 20px;
        color: #475569;
        line-height: 1.7;
        font-size: 16px;
        font-weight: 500;
    }
</style>

<section class="hero position-relative overflow-hidden pt-80 pb-80" style="background: #F4F7FE;">
    <div class="container">
        <div class="row align-items-center position-relative">
            <!-- Left Content -->
            <div class="col-lg-6">
                <div class="hero-badge-pills">
                    <span class="hero-pill hero-pill--accent">
                        <i class="fa-solid fa-bolt"></i> #1 Cheapest VPS & Free Hosting 2026
                    </span>
                </div>
                <h1 class="hero-title">Cheap VPS <span>Hosting</span>
                </h1>

                <h3 class="hero-sub1">
                    $100 Free Trial +  <span> Up to 70% Off</span>
                </h3>
                <div>
                    <p class="hero-sub mb-4">Stop wasting money on overpriced hosting! Get up to 10x faster enterprise-grade VPS performance, NVMe SSD-powered cheap VPS servers, a free SSL certificate, a professional control panel and 99.99% uptime. All at a cheap price, or we refund you. Start with 30-day free trial $100 credit, no card required.</p>

                    <!-- 2×2 features grid -->
                    <div class="hero-features-grid">
                        <div class="hero-feature-item">
                            <span class="hf-icon1"><img src="assets/images/circle-check-big.png" alt="checkmark"></span>
                            <span class="hf-text">Full Root VPS Access</span>
                        </div>
                        <div class="hero-feature-item">
                            <span class="hf-icon1"><img src="assets/images/circle-check-big.png" alt="checkmark"></span>
                            <span class="hf-text">Instant Deployment in 60s</span>
                        </div>
                        <div class="hero-feature-item">
                            <span class="hf-icon1"><img src="assets/images/circle-check-big.png" alt="checkmark"></span>
                            <span class="hf-text">24/7 LiveChat via Experts</span>
                        </div>
                        <div class="hero-feature-item">
                            <span class="hf-icon1"><img src="assets/images/circle-check-big.png" alt="checkmark"></span>
                            <span class="hf-text">CyberPanel Control Panel</span>
                        </div>
                    </div>
                </div>


                <!-- CTA Buttons -->
                <div class="d-flex flex-wrap gap-3 mb-3 mt-4">
                    <a href="#vps_plan" class="btn-trial hero_btn position-relative">
                        Grab Best Deal<i class="fa-solid fa-arrow-right ms-3"></i>
                    </a>
                </div>
            </div>
            <!-- Right: Hero Image with floating badges -->
            <div class="col-lg-6">
                <div class="hero-img-wrap">
                    <img src="assets/images/cheap-vps-hosting.webp" alt="Cheap VPS hosting server illustration" class="hero-main-img w-100 h-auto" width="1000" height="849"/>
                </div>
            </div>

        </div>
    </div>
</section>

<section class="stats-band">
    <div class="container">
        <div class="">
            <div class="stats-band-inner">
                <div class="sband-item rv">
                    <div class="sband-num">100%</div>
                    <div class="sband-label">Real unbiased recommendation</div>
                </div>
                <div class="sband-item rv d1">
                    <div class="sband-num">99.99%</div>
                    <div class="sband-label">Avg uptime across tested VPS</div>
                </div>
                <div class="sband-item rv d2">
                    <div class="sband-num">$100</div>
                    <div class="sband-label">Free trial credit - no card</div>
                </div>
                <div class="sband-item rv d3">
                    <div class="sband-num">50%</div>
                    <div class="sband-label">Max discount on VPS plans</div>
                </div>
                <div class="sband-item rv d4">
                    <div class="sband-num">200+</div>
                    <div class="sband-label">Providers reviewed since 2012</div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- ── EDITOR'S CHOICE SECTION ── -->
<section class="editors-section" id="vps_plan">
    <div class="container">
        <div class="editors-title-wrap text-center">
            <h2 class="display-6 fw-bold section_heading mb-2 ">Cheap VPS Plans, <span>Real Discounts, Zero Fluff</span></h2>
            <p class="section_para mx-auto mb-5">Every plan below is tested with a real anonymous account, not a press review. Pick your cheap VPS server plan & start a free VPS trial today! All VPS plans include Free SSL, NVMe SSD, 1-Click Installer and 24/7 support. No hidden charges. Lock your price before it goes back up. </p>

        </div>

        <div class="ec-grid">

            <!-- Card 1: Kamatera -->
            <article class="feature-light-card h-100">
                <span class="ec-offer-label">30-day free VPS trial</span>

                <div class="ec-top-row pb-3">
                    <div class="ec-brand-block">
                        <img src="assets/images/logos/kamtara_logo.svg" alt="Kamatera Logo" class="ec-brand-logo w-100">
                    </div>

                    <div class="ec-price-block">
                        <span class="ec-price-pre">Get</span>
                        <span class="ec-price-main"><strong>$100</strong><em>FREE</em></span>
                        <span class="ec-price-post">Cloud Credits</span>
                    </div>
                </div>

                <div class="ec-features">
                    <div class="ec-feat"><i class="fa-solid fa-sliders"></i><span>Flexible plans</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-hard-drive"></i><span>NVMe SSD Storage</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-shield-halved"></i><span>DDoS protection</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-desktop"></i><span>Windows + Linux OS</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-globe"></i><span>Global Datacenters</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-rocket"></i><span>Instant Deployment</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-gauge-high"></i><span>99.95% Uptime SLA</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-headset"></i><span>24/7 Expert Support</span></div>
                </div>

                <a href="https://googiehost.com/blog/go/kamatera-free-vps" class="tv-btn tv-btn-blue" target="_blank" rel="sponsored noopener noreferrer">START 30-DAY FREE TRIAL<i class="fa-solid fa-arrow-right"></i></a>
                <p class="ec-guarantee"><i class="fa-solid fa-shield-halved"></i>$100 credit - Cancel anytime</p>
            </article>

            <!-- Card 2: YouStable -->
            <article class="feature-light-card h-100">
                <span class="ec-offer-label">Limited Deal</span>

                <div class="ec-top-row pb-3">
                    <div class="ec-brand-block">
                        <img src="assets/images/logos/logo_youstable_color.webp" alt="YouStable Logo" class="ec-brand-logo w-100">
                    </div>

                    <div class="ec-price-block">
                        <span class="ec-price-pre">Save</span>
                        <span class="ec-price-main"><strong>70%</strong><em>OFF</em></span>
                        <span class="ec-price-post">No credit card</span>
                    </div>
                </div>

                <div class="ec-features">
                    <div class="ec-feat"><i class="fa-solid fa-microchip"></i><span>AMD EPYC + NVMe</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-gauge-high"></i><span>99.99% Uptime</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-table-columns"></i><span>Free Control Panel</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-key"></i><span>Full Root Access</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-shield-halved"></i><span>DDoS Protection Free</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-user-shield"></i><span>BitNinja Security</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-comments"></i><span>24/7 Live Chat</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-rocket"></i><span>Instant Deployment</span></div>
                </div>

                <a href="https://googiehost.com/blog/go/youstablevps" class="tv-btn tv-btn-blue" target="_blank" rel="sponsored noopener noreferrer">GRAB DEAL NOW<i class="fa-solid fa-arrow-right"></i></a>
                <p class="ec-guarantee"><i class="fa-solid fa-shield-halved"></i> 30-Day Money-Back - No Hidden Fees</p>
            </article>

            <!-- Card 3: Liquid Web -->
            <article class="feature-light-card h-100">
                <span class="ec-offer-label">Save 50% for 2 mo</span>

                <div class="ec-top-row pb-3">
                    <div class="ec-brand-block">
                        <img src="assets/images/logos/lw-logotype.svg" alt="Liquid Web Logo" class="ec-brand-logo w-100">
                    </div>

                    <div class="ec-price-block">
                        <span class="ec-price-pre">Get</span>
                        <span class="ec-price-main"><strong>50%</strong><em>OFF</em></span>
                        <span class="ec-price-post">No coupon required</span>
                    </div>
                </div>

                <div class="ec-features">
                    <div class="ec-feat"><i class="fa-solid fa-server"></i><span>Managed VPS</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-gauge-high"></i><span>100% Uptime</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-hard-drive"></i><span>SSD + NVMe Storage</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-microchip"></i><span>1 vCPU/1GB RAM entry</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-headset"></i><span>24/7 Heroic Support</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-clock-rotate-left"></i><span>Auto Daily Backups</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-key"></i><span>Full Root Access</span></div>
                    <div class="ec-feat"><i class="fa-solid fa-arrow-up-right-dots"></i><span>Instant Scaling</span></div>
                </div>

                <a href="https://googiehost.com/blog/go/liquidwebvps/" class="tv-btn tv-btn-blue" target="_blank" rel="sponsored noopener noreferrer">NO COUPON REQUIRED<i class="fa-solid fa-arrow-right"></i></a>
                <p class="ec-guarantee"><i class="fa-solid fa-shield-halved"></i>30-Day Money-Back · 100% Uptime SLA</p>
            </article>
        </div>
    </div>
</section>


<!-- ── PROVIDER DETAILED REVIEW ── -->
<?php
$vps_data = json_decode(file_get_contents(__DIR__ . '/data/vps-providers.json'), true);
$vps_section = $vps_data['section'];
$vps_providers = $vps_data['providers'];
?>

<section class="provider-review-section pt-80">
    <div class="container">
        <h2 class="free-plan-title display-6 fw-bold section_heading mb-5 text-center">
            <?= htmlspecialchars($vps_section['title']) ?>
            <span><?= htmlspecialchars($vps_section['highlight']) ?></span>
        </h2>

        <?php foreach ($vps_providers as $p): ?>
            <article class="pr-card mb-4">
                <h3 class="pr-title"><?= htmlspecialchars($p['title']) ?></h3>

                <!-- TOP: 3-column header (brand | content | price/CTA) -->
                <div class="pr-top">

                    <!-- LEFT: Brand tile + rating -->
                    <div class="pr-brand-col">
                        <div class="ec-brand-block">
                            <img src="<?= htmlspecialchars($p['logo']) ?>" alt="<?= htmlspecialchars($p['logo_alt']) ?>" class="ec-brand-logo w-100">
                        </div>
                        <div class="pr-brand-rating">
                            <div class="pr-stars">
                                <?php for ($i = 0; $i < (int) $p['stars']; $i++): ?>
                                    <i class="fa-solid fa-star"></i>
                                <?php endfor; ?>
                            </div>
                            <p class="pr-reviews"><?= $p['rating_text'] ?></p>
                        </div>
                        <a href="<?= htmlspecialchars($p['review_url']) ?>" class="pr-btn-outline" target="_blank" rel="noopener noreferrer"><?= htmlspecialchars($p['review_label']) ?></a>
                    </div>

                    <!-- CENTER: Title, description, tags -->
                    <div class="pr-content-col">
                        <p class="pr-desc"><?= $p['description'] ?></p>
                        <div class="pr-tags">
                            <?php foreach ($p['tags'] as $tag): ?>
                                <span class="pr-tag"><i class="fa-solid fa-check me-2"></i><?= $tag ?></span>
                            <?php endforeach; ?>
                        </div>
                    </div>

                    <!-- RIGHT: Pick badge, price, CTA, coupon -->
                    <div class="pr-price-col">
                        <?php if (!empty($p['badge'])): ?>
                            <div class="pr-pick-badge"><i class="fa-solid fa-trophy"></i> <?= htmlspecialchars($p['badge']) ?></div>
                        <?php endif; ?>

                        <p class="pr-price-now"><?= htmlspecialchars($p['price']) ?><span class="pr-price-per"><?= htmlspecialchars($p['price_per']) ?></span></p>
                        <?php if (!empty($p['was_price'])): ?>
                            <p class="pr-was-price"><?= htmlspecialchars($p['was_price']) ?></p>
                        <?php endif; ?>
                        <?php if (!empty($p['save_text'])): ?>
                            <p class="pr-save"><i class="fa-solid fa-check"></i> <?= $p['save_text'] ?></p>
                        <?php endif; ?>
                        <a href="<?= htmlspecialchars($p['cta_url']) ?>" class="pr-btn-primary"  target="_blank" rel="sponsored noopener noreferrer"><?= htmlspecialchars($p['cta_label']) ?> <span class="arrow"><i class="fa-solid fa-arrow-right"></i></span></a>
                        <p class="pr-guarantee"><i class="fa-solid fa-shield-halved"></i> <?= htmlspecialchars($p['guarantee_text']) ?></p>
                    </div>
                </div>

                <!-- STATS ROW (icon + label + value, no progress bars) -->
                <div class="pr-stats">
                    <?php foreach ($p['stats'] as $stat): ?>
                        <div class="pr-stat">
                            <span class="pr-stat-icon"><i data-lucide="<?= htmlspecialchars($stat['icon']) ?>"></i></span>
                            <div class="pr-stat-text">
                                <p class="pr-stat-label"><?= htmlspecialchars($stat['label']) ?></p>
                                <p class="pr-stat-val"><?= htmlspecialchars($stat['value']) ?></p>
                            </div>
                        </div>
                    <?php endforeach; ?>
                </div>

                <!-- FEATURES grid (two columns with arrow bullets) -->
                <h5 class="features-title">
                    <?= htmlspecialchars($p['features_title']) ?>
                    <span><?= htmlspecialchars($p['features_highlight']) ?></span>
                </h5>
                <div class="pr-features">
                    <ul class="pr-feat-list">
                        <?php foreach ($p['features_col1'] as $feat): ?>
                            <li><i class="fa-solid fa-arrow-right me-2"></i><?= $feat ?></li>
                        <?php endforeach; ?>
                    </ul>
                    <ul class="pr-feat-list">
                        <?php foreach ($p['features_col2'] as $feat): ?>
                            <li><i class="fa-solid fa-arrow-right me-2"></i><?= $feat ?></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </article>
        <?php endforeach; ?>

    </div>
</section>

<!-- Feature Section  -->
<?php
$features = [
    'section' => [
        'title' => 'Everything You Need. Nothing You Don\'t Pay Extra For',
        'description' => 'Most hosting companies sell cheap base plans and charge extra for every feature you need. We do the opposite. What you see is what you get. Every feature below is included in every plan. Paid and free. ',
    ],

    'items' => [
        [
            'icon' => 'assets/images/icon/custom-os-installation.webp',
            'title' => 'Custom OS Installation',
            'description' => 'Switch your OS or rebuild your server stack. Do everything from your DirectAdmin dashboard. Run the operating system you actually want. Shared hosting locks you into one environment. With free VPS lifetime, you choose your OS. Install CentOS, Ubuntu, Debian, AlmaLinux, or Windows Server.',
        ],
        [
            'icon' => 'assets/images/icon/advanced-firewall-configuration.webp',
            'title' => 'Advanced Firewall Configuration',
            'description' => 'Bots are hammering your login page? Block the traffic source before they reach your website. A website with no firewall is an open door. Brute-force attacks hit unprotected servers every day. Set your own rules. Whitelists the reliable IPs. You decide what gets in and what gets stopped at the gate.',
        ],
        [
            'icon' => 'assets/images/icon/dedicated-ip-address.webp',
            'title' => 'Dedicated IP Address',
            'description' => 'Your website gets its own address on the internet. Sharing one IP with multiple users is the worst! If a user gets blacklisted, your site gets caught in the same net. A dedicated IP fixes this permanently. Your IP belongs to you alone. Your sender reputation stays clean. Your SSL certificate works correctly.',
        ],
        [
            'icon' => 'assets/images/icon/container-support.webp',
            'title' => '100% Container Support',
            'description' => 'Run multiple apps on one server. Modern apps run in containers. Docker, Kubernetes, LXC! These tools let you isolate every app in its own environment. Free VPS hosting supports full container deployment.
One server. Multiple isolated apps. Each runs its own dependencies. You can scale individual containers.
',
        ],
        [
            'icon' => 'assets/images/icon/daily-auto-backups.webp',
            'title' => 'Regular Backups',
            'description' => 'Recover anything. Lose nothing. Data loss is not a matter of IF. It is a matter of WHEN. A bad deployment or an accidental file deletion, these happen to every website sooner or later. We run automatic daily backups of your entire VPS. Restore your website to a previous version in one click.',
        ],
        [
            'icon' => 'assets/images/icon/staging-and-testing-environment.webp',
            'title' => 'Staging and Testing Environment',
            'description' => 'Are you migrating to a new plugin! Run it in the testing environment first, push only when it passes. Test every change before it touches your live site. Pushing changes directly to production is one of the most expensive mistakes in web development. Build and test changes in a private clone of your live website.',
        ],
    ],
];

?>

<section class="feature-light-section pt-80">
    <div class="container text-center">

        <div class="feature-light-head mb-5">
            <h2 class="display-6 section_heading fw-bold text-dark">
                <?= htmlspecialchars($features['section']['title']) ?>
            </h2>
            <p class="section_para mx-auto">
                <?= htmlspecialchars($features['section']['description']) ?>
            </p>
        </div>

        <div class="row g-4 text-start">
            <?php foreach ($features['items'] as $item): ?>
                <div class="col-md-6 col-lg-4">
                    <div class="feature-light-card h-100">

                        <img
                            src="<?= htmlspecialchars($item['icon']) ?>"
                            class="w-25 mb-3"
                            alt="<?= htmlspecialchars($item['title']) ?>">

                        <h3 class="feature-title-light">
                            <?= htmlspecialchars($item['title']) ?>
                        </h3>

                        <p class="feature-text-light mb-0">
                            <?= htmlspecialchars($item['description']) ?>
                        </p>

                    </div>
                </div>
            <?php endforeach; ?>
        </div>

    </div>
</section>

<?php include 'inc/testimonials.php'; ?>

<?php

$faqs = [
    [
        'cat' => 'features',
        'question' => "What do you actually get with a cheap VPS, and is it worth it over shared hosting?",
        'answer' => "Even entry-level VPS plans give you dedicated CPU cores, guaranteed RAM (typically 1 to 2 GB), and full root access that shared hosting never offers. For anyone running more than a basic brochure site, VPS is well worth the small price difference.",
    ],
    [
        'cat' => 'features',
        'question' => "Which OS can I run on a cheap VPS?",
        'answer' => "Most budget VPS providers support the full range of Linux distributions, Ubuntu, Debian, CentOS, AlmaLinux, and Rocky Linux being the most common.",
    ],
    [
        'cat' => 'features',
        'question' => "How much bandwidth and storage do cheap VPS plans include?",
        'answer' => "Entry-level plans typically include 20 to 50 GB of SSD storage and 1 to 3 TB of monthly bandwidth.",
    ],
    [
        'cat' => 'features',
        'question' => "Can I scale up my cheap VPS plan as my site grows?",
        'answer' => "Yes! Vertical scaling (adding more CPU, RAM, or storage) is available on all major providers and usually takes just a few clicks with no downtime. If you anticipate rapid growth, choose a provider with a clear upgrade path so you are never forced to migrate to a completely new server.",
    ],
    [
        'cat' => 'billing',
        'question' => "Are cheap VPS plans billed monthly, and are there hidden fees I should know about?",
        'answer' => "Yes! Most providers offer hourly, monthly, or annual billing, annual plans typically save 20 to 40%. Common extras to watch for include: backup storage (usually $1 to 3 dollars per month), additional IP addresses, control panel licences (cPanel can add $15+/month) and bandwidth overage charges.",
    ],
    [
        'cat' => 'billing',
        'question' => "Is there a free trial or money-back guarantee on cheap VPS hosting?",
        'answer' => " Yes! Top providers offer either a free trial credit or a 30-day money-back guarantee. DigitalOcean provides $200 in free credits for 60 days for new accounts. Hostinger offers a 30-day refund policy. Always read the refund terms before signing up.",
    ],
    [
        'cat' => 'billing',
        'question' => "Can I pay for a cheap VPS with PayPal or cryptocurrency?",
        'answer' => "Payment method availability varies by provider. Most accept major credit and debit cards (Visa, Mastercard, Amex). PayPal is supported by Hostinger. Cryptocurrency payments (Bitcoin, Ethereum) are accepted by Vultr, Hostinger, and a growing number of smaller providers.",
    ],
    [
        'cat' => 'billing',
        'question' => "What happens if I exceed my bandwidth limit on a cheap VPS?",
        'answer' => "This depends on your provider. Some (like Hostinger) simply rate-limit your connection to 10 Mbit/s when you exceed your allocation, your server stays online, just slower.",
    ],
    [
        'cat' => 'technical',
        'question' => "Can I host a website on a cheap VPS without any technical experience?",
        'answer' => "Yes! Most budget VPS providers include one-click control panel installers (HestiaCP, CyberPanel, or Plesk) that let you deploy WordPress, PHP sites, or Node.js apps without touching the command line.",
    ],
    [
        'cat' => 'technical',
        'question' => "What is the difference between managed and unmanaged cheap VPS hosting?",
        'answer' => "With unmanaged VPS, the provider maintains the physical hardware and network; you are responsible for the operating system, software, security patches, and everything else. Managed VPS includes OS-level maintenance, security updates, and often application support, but costs more (typically 2 to 3× the price).",
    ],
    [
        'cat' => 'technical',
        'question' => "How do I set up a web server on a cheap VPS from scratch?",
        'answer' => "The standard process is: \n<ul><li>SSH into your server using the credentials emailed at setup</li><li>update packages with 'sudo apt update && sudo apt upgrade'</li><li>install your web server, Nginx is recommended for its low memory footprint on budget plans</li><li>configure your domain DNS to point to your server IP</li><li>install an SSL certificate using Certbot (free with Let's Encrypt). </li></ul>\nMost providers offer a setup guide in their documentation for exactly this workflow..",
    ],
    [
        'cat' => 'technical',
        'question' => "Is a cheap VPS fast enough to run a WordPress site with decent traffic?",
        'answer' => "1 vCPU / 1 GB RAM VPS can comfortably handle 5,000–15,000 monthly visitors when paired with a caching plugin (WP Super Cache or W3 Total Cache) and Nginx. For 50,000+ monthly visitors, a 2 vCPU / 2 GB RAM plan is more appropriate.",
    ],
    [
        'cat' => 'support',
        'question' => "Do cheap VPS providers actually offer 24/7 support, or am I mostly on my own?",
        'answer' => "Quality of support varies significantly at the budget end of the market. The providers recommended here all offer ticket-based support around the clock, and the best ones include live chat with under one-hour response times even on their cheapest plans.",
    ],
    [
        'cat' => 'support',
        'question' => "What should I do if my cheap VPS goes down or becomes unreachable?",
        'answer' => "First, check the provider's status page (usually status.providername.com) to see if there is a known outage. If the status is clear, try rebooting your server from the control panel, this resolves most unresponsive server issues in under 60 seconds.",
    ],
    [
        'cat' => 'support',
        'question' => "Is there a community or knowledge base I can use to get help without paying more?",
        'answer' => "Yes! Most top VPS providers maintain extensive free documentation. DigitalOcean's community tutorials (digitalocean.com/community) cover virtually every Linux and server setup scenario and are free to use even if you are not a DigitalOcean customer.",
    ],
    [
        'cat' => 'support',
        'question' => "Can I get a refund if the cheap VPS provider's support is poor?",
        'answer' => "This depends on the provider's terms of service. Most reputable hosts on this page offer a 30-day money-back guarantee with no questions asked, this covers dissatisfaction with support quality. Hourly-billing providers like Vultr let you delete your server at any time and only pay for the hours used, making them inherently low-risk.",
    ],

];
?>


<section class="faq-section pt-80 pb-80 position-relative">
    <div class="faq-wrap container">

        <div class="faq-header text-center">
            <div class="faq-header-left">
                <h2 class="faq-title display-6 fw-bold section_heading">Your VPS hosting questions, <span class="hl">answered honestly</span></h2>
                <p class="section_para mx-auto mb-4">Choosing a VPS plan can feel overwhelming with so many technical terms and pricing tiers thrown at you. We've cut through the noise below! No upsells, no confusing jargon, just straightforward answers to help you find the right VPS hosting plan for your budget and your needs.</p>
            </div>
        </div>

        <div class="faq-grid" id="faq-grid">
            <?php foreach ($faqs as $index => $faq): ?>
                <?php
                $cat = htmlspecialchars($faq['cat'] ?? 'features');
                $question = htmlspecialchars($faq['question'] ?? '');
                $answer = $faq['answer'] ?? '';
                ?>
                <article class="faq-item cat-<?= $cat ?>"
                    data-cat="<?= $cat ?>"
                    data-faq-index="<?= (int) $index ?>"
                    data-q="<?= htmlspecialchars(strtolower(strip_tags($faq['question'] ?? ''))) ?>">

                    <button class="faq-q"
                        type="button"
                        aria-expanded="false">

                        <span class="faq-q-icon" aria-hidden="true">
                            <img
                                src="assets/images/faq-<?= $cat ?>.png"
                                alt="<?= ucfirst($cat) ?>"
                                class="faq-icon-img" />
                        </span>

                        <span class="faq-q-text">
                            <?= $question ?>
                        </span>

                        <span class="faq-toggle" aria-hidden="true"><i class="fa-solid fa-plus"></i></span>
                    </button>

                    <div class="faq-a">
                        <div class="faq-a-inner">
                            <div class="cat-pill cp-<?= $cat ?>">
                                <?= ucfirst($cat) ?>
                            </div>
                            <?= $answer ?>
                        </div>
                    </div>

                </article>
            <?php endforeach; ?>
        </div>

        <div class="faq-cta">
            <div class="faq-cta-left">
                <strong>Still have questions?</strong>
                <span>Explore our knowledge base of 400+ articles or contact our team for a guaranteed response within an hour, even on free plans.</span>
            </div>
            <div class="faq-cta-btns">
                <a href="/contact.php" class="text-decoration-none"><button class="btn-chat" type="button">Contact Us<i class="fa-solid fa-arrow-right ms-3"></i></button></a>
                <a href="https://googiehost.com/blog/"><button class="btn-kb" type="button">Browse Knowledge Base<i class="fa-solid fa-arrow-right ms-3"></i></button></a>
            </div>
        </div>
    </div>
</section>

<script>
    (() => {
        const grid = document.getElementById('faq-grid');
        const items = [...document.querySelectorAll('.faq-item')];
        const tabs = [...document.querySelectorAll('.filter-tab')];
        let currentCat = 'all';

        const isMobile = () => window.innerWidth <= 767;

        function resetItems() {
            items.forEach(item => {
                item.classList.remove('open', 'sibling-open');
                const trigger = item.querySelector('.faq-q');
                const toggle = item.querySelector('.faq-toggle');
                trigger.setAttribute('aria-expanded', 'false');
                toggle.textContent = '+';
            });
        }

        function visibleItems() {
            return items.filter(item => item.style.display !== 'none');
        }

        function toggleItem(item) {
            const wasOpen = item.classList.contains('open') || item.classList.contains('sibling-open');
            resetItems();

            if (wasOpen) {
                return;
            }

            const visible = visibleItems();
            const index = visible.indexOf(item);
            const siblingIndex = index % 2 === 0 ? index + 1 : index - 1;
            const sibling = visible[siblingIndex];

            item.classList.add('open');
            item.querySelector('.faq-q').setAttribute('aria-expanded', 'true');
            item.querySelector('.faq-toggle').textContent = '✕';

            if (!isMobile() && sibling) {
                sibling.classList.add('sibling-open');
                sibling.querySelector('.faq-q').setAttribute('aria-expanded', 'true');
                sibling.querySelector('.faq-toggle').textContent = '✕';
            }
        }

        function applyFilter(cat) {
            currentCat = cat;
            resetItems();

            items.forEach(item => {
                item.style.display = cat === 'all' || item.dataset.cat === cat ? '' : 'none';
            });

            tabs.forEach(tab => {
                tab.classList.toggle('active', tab.dataset.cat === cat);
            });
        }

        tabs.forEach(tab => {
            tab.addEventListener('click', () => applyFilter(tab.dataset.cat));
        });

        items.forEach(item => {
            item.querySelector('.faq-q').addEventListener('click', () => toggleItem(item));
        });

        window.addEventListener('resize', () => applyFilter(currentCat));

        applyFilter(currentCat);
        if (grid) {
            grid.dataset.ready = 'true';
        }
    })();
</script>


<?php include 'inc/footer.php'; ?>