<?php
require_once("core/data.php");

$service_slug = $_GET['slug'] ?? '';
echo $service_slug;
if (!isset($services_data[$service_slug])) {
    // header("Location: 404.php");
    // exit();
}

$service = $services_data[$service_slug];

$seo = $service['seo'];
$page_title = $seo['title'];
$page_description = $seo['description'];
$page_keywords = $seo['keywords'];

include("components/header.php");
?>

<!-- rts breadcrumb area -->
<div class="rts-bread-crumb-area bg_image bg-breadcrumb">
    <div class="container ptb--65">
        <div class="row">
            <div class="col-lg-12">
                <div class="con-tent-main">
                    <div class="wrapper">
                        <span class="bg-text-stok">Service Details</span>
                        <div class="title skew-up">
                            <a href="#"><?php echo htmlspecialchars($service['title']); ?></a>
                        </div>
                        <div class="slug skew-up">
                            <a href="index.php">HOME /</a>
                            <a class="active" href="#">SERVICE DETAILS</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- rts service details area start -->
<div class="rts-service-details-area rts-section-gap">
    <div class="container">
        <div class="row g-40">
            <div class="col-lg-8">
                <div class="left-service-details-wrapper">
                    <div class="thumbnail-large">
                        <img src="<?php echo htmlspecialchars($service['image']); ?>"
                            alt="<?php echo htmlspecialchars($service['title']); ?>">
                    </div>
                    <?php echo $service['content']; ?>

                    <!-- Common sections for all services -->
                    <div class="service-detials-step-2 mt--50 reveal">
                        <h4 class="title title-g">Our Process</h4>
                        <!-- Add common process content -->
                    </div>
                </div>
            </div>

            <!-- Right sidebar - Same for all services -->
            <div class="col-xl-4 col-md-12 col-sm-12 col-12">
                <!-- Include your existing sidebar content here -->
                <?php include 'components/service-sidebar.php'; ?>
            </div>
        </div>
    </div>
</div>

<?php include("components/footer.php"); ?>