<?php
/* FILE: public_html/tag/up-home-guard-guide.php
   STRATEGY: Ultra-Pro Master Guide (Royal Blue Theme)
*/

// --- 1. CONFIGURATION (UP Home Guard Data) ---
$exam_name = "UP Home Guard Bharti 2026";
$main_page_url = "https://sarkarimocktest.com/up-home-guard-2026-mock-test.php"; 
$site_url = "https://sarkarimocktest.com";

// Common Asset
$common_logo = "https://sarkarimocktest.com/images/logo/UP_Home_Guard_logo.png";

// 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 ---
$cards = [
    "apply" => [
        "title" => "Apply Online Form",
        "desc" => "Direct link for 30,000+ Home Guard Volunteers (Swayamsevak) posts. Check District-wise vacancy.",
        "link" => "https://sarkarimocktest.com/news" 
    ],
    "admit" => [
        "title" => "Physical Admit Card",
        "desc" => "Download Hall Ticket for PET/PST. Check Physical center location and timing details.",
        "link" => "https://sarkarimocktest.com/news"
    ],
    "result" => [
        "title" => "Merit List / Result",
        "desc" => "Check District-wise Selection List PDF based on 10th/12th marks and Physical performance.",
        "link" => "https://sarkarimocktest.com/news"
    ],
    "cutoff" => [
        "title" => "Selection Process",
        "desc" => "Understand the selection criteria: Educational Merit + Physical Efficiency Test (Race/Height).",
        "link" => "https://sarkarimocktest.com/news"
    ]
];

// --- 3. SEO KEYWORDS CONTENT ---
$keywords = [
    "UP Home Guard Eligibility" => "10th/12th Pass from recognized board. Age Limit: 18-40 Years (varies by notification).",
    "Physical Test (PET)" => "Running (Race), Chest Measurement, and Height (Male: 167.7cm approx).",
    "Salary (Mandey)" => "Daily duty allowance (approx ₹700-₹800/day) as per UP Government rules.",
    "Selection Criteria" => "No Written Exam (Usually). Selection is based on Merit of High School/Intermediate marks & Physical."
];
?>
<!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, Merit List & Physical Date</title>
    <meta name="description" content="All-in-one guide for <?php echo $exam_name; ?>. Check Application Form, Physical Admit Card, District wise Merit List, and Salary details. Curated by Shubham Kumar Sah.">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="<?php echo $site_url . "/tag/up-home-guard-guide.php"; ?>">
    <link rel="preload" as="image" href="<?php echo $author_img; ?>">
    <link rel="preload" as="image" href="<?php echo $common_logo; ?>">
    
    <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 { --dark: #1f2937; }
        body { font-family: 'Segoe UI', sans-serif; background-color: #f3f6f9; color: var(--dark); }
        
        /* 1. ROYAL BLUE GRADIENT HEADER (Matches Screenshot) */
        .hero { 
            background: linear-gradient(135deg, #0061ff 0%, #0044cc 100%); /* Vibrant Royal Blue */
            color: white; 
            padding: 80px 20px; 
            text-align: center; 
            border-radius: 0 0 50px 50px; 
            margin-bottom: 50px; 
            box-shadow: 0 10px 40px rgba(0, 97, 255, 0.3);
        }
        .hero h1 { font-weight: 900; letter-spacing: -1px; margin-bottom: 15px; text-shadow: 0 4px 6px rgba(0,0,0,0.1); }
        
        /* 2. CARDS WITH CENTERED CONTENT */
        .info-card { 
            background: #ffffff; 
            border-radius: 25px; 
            padding: 35px 25px; 
            height: 100%; 
            transition: all 0.3s ease; 
            border: 1px solid #e1e8f0; 
            position: relative;
            text-align: center; /* Center Aligned */
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
        }
        .info-card:hover { 
            transform: translateY(-10px); 
            box-shadow: 0 20px 40px rgba(0, 97, 255, 0.1); 
            border-color: #80b3ff; 
        }
        
        /* 3. LOGO CIRCLE (CENTERED) */
        .logo-wrapper {
            width: 85px;
            height: 85px;
            background: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px auto;
            box-shadow: 0 8px 20px rgba(0,0,0,0.06);
            border: 3px solid #eef2ff;
        }
        .logo-img {
            width: 60px;
            height: 60px;
            object-fit: contain;
        }
        
        /* 4. ROYAL BLUE GRADIENT BUTTONS */
        .btn-card-gradient { 
            width: 100%; 
            border-radius: 50px; 
            font-weight: 700; 
            padding: 12px 20px; 
            margin-top: 25px; 
            background: linear-gradient(90deg, #0061ff 0%, #0044cc 100%); /* Matching Header */
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(0, 97, 255, 0.2);
            transition: all 0.3s ease;
        }
        .btn-card-gradient:hover { 
            background: linear-gradient(90deg, #0044cc 0%, #0061ff 100%); 
            transform: translateY(-2px);
            color: #fff;
            box-shadow: 0 8px 25px rgba(0, 97, 255, 0.35);
        }
        
        /* Author Box */
        .author-card { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); border-radius: 50px; padding: 10px 30px 10px 10px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.3); margin-top: 20px; }
        .author-img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; }
        
        /* Global CTA */
        .btn-global { 
            background: linear-gradient(90deg, #ff9900 0%, #ff6600 100%); /* Orange for Contrast */
            border: none; color: white; font-weight: bold; padding: 16px 40px; border-radius: 50px; 
            box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3); text-decoration: none; display: inline-block; 
        }
        .btn-global:hover { transform: translateY(-3px); color: white; box-shadow: 0 15px 35px rgba(255, 102, 0, 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-90">One-stop Solution: Vacancy, Merit List, Physical Date & Salary Info.</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 text-white-50 text-uppercase fw-bold" style="font-size: 0.7rem;">Curated By</span>
                    <a href="<?php echo $author_url; ?>" class="fw-bold text-white text-decoration-none"><?php echo $author_name; ?> <i class="bi bi-patch-check-fill text-warning"></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 class="logo-wrapper">
                        <img src="<?php echo $common_logo; ?>" alt="UP Home Guard Logo" class="logo-img" loading="lazy" width="60" height="60">
                    </div>
                    
                    <div>
                        <h3 class="h5 fw-bold mb-3 text-dark"><?php echo $card['title']; ?></h3>
                        <p class="small text-muted mb-0" style="line-height: 1.6;"><?php echo $card['desc']; ?></p>
                    </div>
                    
                    <div class="mt-auto">
                        <a href="<?php echo $card['link']; ?>" class="btn btn-card-gradient">
                            View Details <i class="bi bi-arrow-right-circle 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 p-md-5 rounded-4 shadow-lg border-0">
                    <div class="d-flex align-items-center mb-4 border-bottom pb-3">
                         <i class="bi bi-shield-shaded fs-2 text-primary me-3"></i>
                         <h2 class="h4 fw-bold mb-0 text-dark">Bharti Information & Rules</h2>
                    </div>
                    
                    <?php foreach($keywords as $head => $text): ?>
                    <div class="mb-4">
                        <h4 class="h6 fw-bold text-dark"><i class="bi bi-caret-right-fill me-2 text-primary"></i><?php echo $head; ?></h4>
                        <p class="text-secondary mb-0 ps-4 ms-1"><?php echo $text; ?></p>
                    </div>
                    <?php endforeach; ?>

                    <div class="mt-5 p-4 bg-light rounded-4 border text-center">
                        <p class="fw-bold mb-3 fs-5">Preparing for other UP Exams?</p>
                        <a href="https://sarkarimocktest.com/subcategories.php?id=42" class="btn btn-outline-primary btn-lg px-5 rounded-pill">
                            <i class="bi bi-laptop me-2"></i> Attempt Free Mock Tests
                        </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">🔥 Latest UP Government Jobs</h3>
                    <p class="text-muted mb-4" style="max-width: 600px; margin: 0 auto;">
                        Don't miss the chance. Check latest notifications for Police, Home Guard, and Group-C vacancies.
                    </p>
                    <a href="https://sarkarimocktest.com/news" class="btn-global">
                        <i class="bi bi-bell-fill me-2"></i> Check Recruitment News
                    </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. Guide by <strong><?php echo $author_name; ?></strong>.</p>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>