<?php
/* FILE: public_html/tag/ssc-cgl-guide.php
   STRATEGY: Ultra-Pro Master Guide Template (Dynamic & SEO Optimized)
*/

// --- 1. CONFIGURATION (Sirf yahan change karna future me) ---
$exam_name = "SSC CGL 2026";
$main_page_url = "https://sarkarimocktest.com/ssc-cgl-2026-mock-test.php"; 
$site_url = "https://sarkarimocktest.com";

// Author Details
$author_name = "Shubham Kumar Sah";
$author_url = "https://sarkarimocktest.com/author/shubham-kumar-sah.php";
$author_img = "https://sarkarimocktest.com/images/author/shubham-kumar-sah.webp";

// --- 2. DYNAMIC EXAM CARDS DATA (Realtime Updates) ---
$cards = [
    "apply" => [
        "title" => "SSC CGL 2026 Apply Online",
        "status" => "Coming Soon", 
        "desc" => "Application form dates will be announced shortly. Prepare your documents.",
        "link" => "#" // Jab link aye, yahan update kar dena
    ],
    "admit" => [
        "title" => "SSC CGL Admit Card",
        "status" => "Not Released",
        "desc" => "Admit cards are usually released 10-15 days before the Tier-1 exam.",
        "link" => "#"
    ],
    "result" => [
        "title" => "SSC CGL Result",
        "status" => "Check Status",
        "desc" => "Check Tier-1 and Tier-2 results, merit list and write-up PDF here.",
        "link" => "#"
    ],
    "cutoff" => [
        "title" => "SSC CGL Cut Off",
        "status" => "Updated",
        "desc" => "Check previous year (2024-25) category-wise cut off marks for all posts.",
        "link" => "#"
    ]
];

// --- 3. SEO KEYWORDS CONTENT ---
$keywords = [
    "SSC CGL Syllabus 2026" => "Detailed Tier-1 & Tier-2 syllabus covering Math, Reasoning, English & GK.",
    "SSC CGL Exam Pattern" => "New revised pattern: Tier-1 is qualifying, Tier-2 decides merit.",
    "SSC CGL Eligibility" => "Bachelor's Degree from any recognized university. Age: 18-30 Years.",
    "SSC CGL Salary" => "Lucrative pay scale (Level 4 to Level 8) ranging from ₹25,500 to ₹1,51,100."
];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $exam_name; ?> Complete Guide: Apply, Admit Card, Result & Mock Test</title>
    <meta name="description" content="All-in-one guide for <?php echo $exam_name; ?>. Check Application Status, Admit Card, Result, Cut Off, and Syllabus. Curated by Shubham Kumar Sah.">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="<?php echo $site_url . "/tag/ssc-cgl-guide.php"; ?>">
    <link rel="preload" as="image" href="<?php echo $author_img; ?>">
    
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    
    <style>
        :root { --primary: #4f46e5; --secondary: #10b981; --dark: #1f2937; --light: #f3f4f6; }
        body { font-family: 'Segoe UI', sans-serif; background-color: #f9fafb; color: var(--dark); }
        
        /* Hero Section */
        .hero { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); color: white; padding: 60px 20px; text-align: center; border-radius: 0 0 30px 30px; margin-bottom: 40px; }
        .hero h1 { font-weight: 800; letter-spacing: -1px; margin-bottom: 15px; }
        
        /* Cards */
        .info-card { background: white; border-radius: 16px; padding: 25px; height: 100%; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
        .info-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
        .status-badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: #e0e7ff; color: var(--primary); display: inline-block; margin-bottom: 10px; }
        
        /* Author Box */
        .author-card { background: #fff; border-radius: 50px; padding: 8px 25px 8px 8px; display: inline-flex; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-top: 20px; }
        .author-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fff; }
        
        /* Buttons */
        .btn-action { width: 100%; border-radius: 10px; font-weight: 600; padding: 10px; margin-top: 15px; }
        .btn-global { background: linear-gradient(90deg, #f59e0b, #d97706); border: none; color: white; font-weight: bold; padding: 15px 30px; border-radius: 50px; box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3); text-decoration: none; display: inline-block; }
        .btn-global:hover { transform: scale(1.05); color: white; box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.4); }
    </style>

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Article",
      "headline": "<?php echo $exam_name; ?> Complete Guide",
      "author": {
        "@type": "Person",
        "name": "<?php echo $author_name; ?>",
        "url": "<?php echo $author_url; ?>"
      },
      "publisher": { "@type": "Organization", "name": "Sarkari Mock Test", "logo": { "@type": "ImageObject", "url": "https://sarkarimocktest.com/logo.png" } }
    }
    </script>
</head>
<body>

    <header class="hero">
        <div class="container">
            <h1 class="display-4"><?php echo $exam_name; ?> Ultimate Guide</h1>
            <p class="lead opacity-75">Your one-stop destination for Application, Admit Card, Result & Preparation.</p>
            
            <div class="author-card">
                <img src="<?php echo $author_img; ?>" alt="<?php echo $author_name; ?>" class="author-img me-3">
                <div class="text-start lh-1">
                    <span class="d-block small text-muted text-uppercase fw-bold" style="font-size: 0.7rem;">Written By</span>
                    <a href="<?php echo $author_url; ?>" class="fw-bold text-dark text-decoration-none"><?php echo $author_name; ?> <i class="bi bi-patch-check-fill text-primary"></i></a>
                </div>
            </div>
        </div>
    </header>

    <div class="container pb-5">
        
        <div class="row g-4 mb-5">
            <?php foreach($cards as $key => $card): ?>
            <div class="col-md-6 col-lg-3">
                <div class="info-card d-flex flex-column">
                    <div>
                        <span class="status-badge"><?php echo $card['status']; ?></span>
                        <h3 class="h5 fw-bold mb-2"><?php echo $card['title']; ?></h3>
                        <p class="small text-muted mb-0"><?php echo $card['desc']; ?></p>
                    </div>
                    <div class="mt-auto">
                        <a href="<?php echo $card['link']; ?>" class="btn btn-outline-primary btn-action">
                            View Details <i class="bi bi-arrow-right ms-1"></i>
                        </a>
                    </div>
                </div>
            </div>
            <?php endforeach; ?>
        </div>

        <div class="row">
            <div class="col-lg-8 mx-auto">
                <div class="bg-white p-4 rounded-4 shadow-sm border">
                    <h2 class="h4 fw-bold mb-4 border-bottom pb-2">Exam Information & Updates</h2>
                    
                    <?php foreach($keywords as $head => $text): ?>
                    <div class="mb-4">
                        <h4 class="h6 fw-bold text-primary"><i class="bi bi-check-circle-fill me-2"></i><?php echo $head; ?></h4>
                        <p class="text-secondary mb-0"><?php echo $text; ?></p>
                    </div>
                    <?php endforeach; ?>

                    <div class="mt-4 p-3 bg-light rounded border text-center">
                        <p class="fw-bold mb-2">Want to practice for <?php echo $exam_name; ?>?</p>
                        <a href="<?php echo $main_page_url; ?>" class="btn btn-primary px-4 rounded-pill">Start Free Mock Test</a>
                    </div>
                </div>
            </div>
        </div>

        <div class="text-center mt-5 pt-4">
            <div class="card border-0 bg-transparent">
                <div class="card-body">
                    <h3 class="h2 fw-bold mb-3">🔥 This Month's Latest Vacancies</h3>
                    <p class="text-muted mb-4" style="max-width: 600px; margin: 0 auto;">
                        Stay updated with the latest government job notifications, admit cards, and results across India. Never miss an opportunity.
                    </p>
                    <a href="https://sarkarimocktest.com/news" class="btn-global">
                        <i class="bi bi-newspaper me-2"></i> Check Latest News & Jobs
                    </a>
                </div>
            </div>
        </div>

    </div>

    <footer class="bg-white border-top py-4 text-center mt-auto">
        <div class="container">
            <p class="small text-muted mb-0">&copy; 2026 Sarkari Mock Test. Designed by <strong><?php echo $author_name; ?></strong>.</p>
        </div>
    </footer>

</body>
</html>