<?php echo view ('header.php') ?>

 <style>
        .page-hero {
            background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.8)), 
                        url('') center/cover;
            height: 300px;
        }
        .sidebar-nav {
            position: sticky;
            top: 120px;
            max-height: calc(100vh - 140px);
            overflow-y: auto;
        }
        .nav-item {
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            font-size: 0.875rem;
        }
        .nav-item:hover, .nav-item.active {
            background: rgba(30, 64, 175, 0.1);
            border-left-color: #1e40af;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
        }
        .content-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .content-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .timeline-item {
            position: relative;
            padding: 1rem 0 1rem 3rem;
            border-left: 2px solid #e5e7eb;
        }
        .timeline-item:before {
            content: '';
            position: absolute;
            left: -6px;
            top: 1.5rem;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #3b82f6;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .milestone-card {
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 1rem;
            background: white;
            transition: all 0.3s ease;
        }
        .milestone-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        .recognition-badge {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }
        .program-card {
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 1.5rem;
            background: white;
            transition: all 0.3s ease;
        }
        .program-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        .infrastructure-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        .compliance-status {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .status-compliant {
            background: #dcfce7;
            color: #15803d;
        }
        .status-pending {
            background: #fef3c7;
            color: #d97706;
        }
        .value-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            transition: all 0.3s ease;
        }
        .value-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        .achievement-timeline {
            position: relative;
        }
        .achievement-timeline:before {
            content: '';
            position: absolute;
            left: 20px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #e5e7eb;
        }
        .achievement-item {
            position: relative;
            padding: 1rem 0 1rem 3rem;
            margin-left: 1rem;
        }
        .achievement-item:before {
            content: '';
            position: absolute;
            left: -6px;
            top: 1.5rem;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #3b82f6;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .facility-feature {
            display: flex;
            align-items: center;
            padding: 0.5rem;
            background: #f8fafc;
            border-radius: 4px;
            margin-bottom: 0.5rem;
        }
        .phase-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border-left: 4px solid #3b82f6;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
    </style>
    
    <!-- Page Hero Section -->
    <section class="page-hero flex items-center justify-center text-white text-center pt-28">
        <div class="max-w-4xl mx-auto px-4">
            <!-- Breadcrumb -->
            <div class="mb-4">
                <a href="<?php echo base_url()?>" class="text-white/80 hover:text-white text-sm">
                    <i class="ri-home-line mr-1"></i>Home
                </a>
                <span class="text-white/60 mx-2">/</span>
                                                            <span class="text-white/80 text-sm"><?php echo $page_name?></span>
                       
            </div>
            
            <h1 class="text-4xl md:text-5xl font-bold mb-4"></h1>
            <p class="text-xl opacity-90"></p>
            
            <!-- Page Stats -->
                    </div>
    </section>

    <div class="max-w-7xl mx-auto px-4 py-8">
        <div class="grid lg:grid-cols-4 gap-8">
            <!-- Left Sidebar Navigation -->
             <?php
                if(!empty($page)){
                    ?>
                    <?php echo $page['section1']?>

                    <!-- Main Content -->
                    <div class="lg:col-span-3 space-y-8">
                        
                                            <!-- Overview Section -->
                            <?php echo $page['section2']?>

                            <!-- Recognitions Section -->
                            <?php echo $page['section3']?>

                            <!-- Leadership Section -->
                            <?php echo $page['section4']?>

                            <!-- Quick Statistics Overview -->
                            <?php echo $page['section5']?>
                        
                    </div>
                    <?php
                }
             ?>
          
        </div>
    </div>

     <?php echo view ('footer.php') ?>

    <!-- JavaScript for Smooth Scrolling -->
    <script>
        // Smooth scrolling for navigation links
        document.querySelectorAll('.sidebar-nav a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                    
                    // Update active state
                    document.querySelectorAll('.sidebar-nav a').forEach(link => {
                        link.classList.remove('active');
                    });
                    this.classList.add('active');
                }
            });
        });

        // Update active navigation on scroll
        window.addEventListener('scroll', () => {
            const sections = document.querySelectorAll('section[id]');
            const scrollPos = window.scrollY + 150;
            
            sections.forEach(section => {
                const top = section.offsetTop;
                const bottom = top + section.offsetHeight;
                const id = section.getAttribute('id');
                
                if (scrollPos >= top && scrollPos <= bottom) {
                    document.querySelectorAll('.sidebar-nav a').forEach(link => {
                        link.classList.remove('active');
                    });
                    const activeLink = document.querySelector(`.sidebar-nav a[href="#${id}"]`);
                    if (activeLink) {
                        activeLink.classList.add('active');
                    }
                }
            });
        });

        // Auto-scroll to focus section if specified in page_data
            </script>
</body>
</html>