    <!-- Main Content End -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>Contact Us</h3>
                    <ul>
                        <li><i class="fas fa-map-marker-alt"></i> 1km Defence Road, Lahore</li>
                        <li><i class="fas fa-phone"></i> +92 42 111 865 865</li>
                        <li><i class="fas fa-envelope"></i> info@uol.edu.pk</li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h3>Quick Links</h3>
                    <ul>
                        <li><a href="index.php">Home</a></li>
                        <li><a href="programs.php">Programs</a></li>
                        <li><a href="login.php">Admission Portal</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h3>About</h3>
                    <p>The University of Lahore is the largest private sector university in Pakistan with more than 35,000 students.</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; <?php echo date("Y"); ?> University Admission Portal. All Rights Reserved.</p>
                <p>Developed By <a href="http://www.bmhost.co.uk" target="_blank">BM Host UK</a></p>
            </div>
        </div>
    </footer>
    
    <script>
    function calculatePercentage() {
        var obtained = parseFloat(document.getElementById('obtained_marks').value);
        var total = parseFloat(document.getElementById('total_marks').value);
        
        if (!isNaN(obtained) && !isNaN(total) && total > 0) {
            var percentage = (obtained / total) * 100;
            document.getElementById('percentage').value = percentage.toFixed(2) + '%';
        } else {
            document.getElementById('percentage').value = 'Invalid input';
        }
    }
    
    // Auto-calculate on input change
    document.addEventListener('DOMContentLoaded', function() {
        var obtainedField = document.getElementById('obtained_marks');
        var totalField = document.getElementById('total_marks');
        
        if (obtainedField && totalField) {
            obtainedField.addEventListener('input', calculatePercentage);
            totalField.addEventListener('input', calculatePercentage);
        }
    });
    </script>
</body>
</html>
