SimpleHire — cPanel Deployment with Admin
==========================================

QUICK START
-----------
1. Upload simplehire.zip to your cPanel and extract into public_html.

2. Create a MySQL database in cPanel:
   - cPanel → MySQL Databases
   - Create database (e.g. yourcpanel_simplehire)
   - Create a user with a strong password
   - Add the user to the database with ALL PRIVILEGES

3. Edit includes/config.php and fill in:
     DB_NAME, DB_USER, DB_PASS

4. Open in your browser:
     https://yourdomain.com/admin/install.php
   - This creates the tables and lets you set the first admin username/password.

5. IMPORTANT: After setup, DELETE admin/install.php from the server.

6. Log in at:
     https://yourdomain.com/admin/login.php

ADMIN FEATURES
--------------
- /admin/jobs.php       Add / edit / delete job listings (shown on /jobs.php)
- /admin/posts.php      Create / edit / delete blog posts (shown on /blog.php)
- /admin/content.php    Edit homepage hero text, about, contact info
- /admin/account.php    Change your admin password

PUBLIC PAGES
------------
- /index.html, /about.html, /services.html, /hire.html,
  /training.html, /calculators.html, /contact.html, /login.html  (static)
- /jobs.php   reads jobs from the database
- /blog.php   reads posts from the database (single post: /blog.php?slug=xxx)

SECURITY CHECKLIST
------------------
[ ] Use a strong admin password (8+ chars, mix of letters/numbers/symbols)
[ ] Delete admin/install.php after setup
[ ] Keep PHP version updated in cPanel (PHP 8.0+ recommended)
[ ] Enable HTTPS in cPanel (Let's Encrypt is free)

REQUIREMENTS
------------
- PHP 8.0 or higher
- MySQL 5.7+ / MariaDB 10.2+
- PDO + pdo_mysql extension (enabled by default on cPanel)


NEW IN THIS RELEASE
-------------------
* Featured Employers backend — admin/employers.php
  - Add/edit/delete employer cards shown on the homepage
  - Toggle tier (PREMIUM ★ vs FREE) with one click
  - Toggle visibility, set sort order
* Homepage now renders BOTH a Premium (Featured) section AND a Free Listings
  section using the same card design, differentiated only by header label
  and accent colour.
* Kenya Salary Calculator now appears as a service card on /services.html
  and links to the live calculator on the homepage.

INSTALL / UPGRADE
-----------------
After uploading and updating includes/config.php, visit:
   yourdomain.com/admin/install.php
The installer is idempotent — it will create the new `employers` table
and seed 6 sample employers without touching existing data.
Then DELETE admin/install.php.
