<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="/static/css/output.css" rel="stylesheet" />
  <link rel="stylesheet" href="/static/css/animate.min.css">
  
  <!-- Load dark mode code first, then other JS files -->
  <script>
    // Dark mode initialization - on page load
    (function() {
      // Prevent duplicate initialization
      if (window.__darkModeInitialized) return;
      
      const storedTheme = localStorage.getItem('color-theme');
      const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
      
      if (storedTheme === 'dark' || (!storedTheme && prefersDark)) {
        document.documentElement.classList.add('dark');
      } else {
        document.documentElement.classList.remove('dark');
      }
      
      window.__darkModeInitialized = true;
    })();
  </script>

  <script src="/static/javascripts/main.js"></script>
  <script src="/static/javascripts/simple-datatables.js"></script>
  <script src="/static/javascripts/flowbite.min.js"></script>

  <!-- Enhanced dark mode toggle logic - prevents conflicts -->
  <script>
    (function() {
      // Global flag to ensure execution only once
      if (window.__themeToggleInitialized) return;
      window.__themeToggleInitialized = true;
      
      // Update icon states
      function updateThemeIcons() {
        const darkIcon = document.getElementById('theme-toggle-dark-icon');
        const lightIcon = document.getElementById('theme-toggle-light-icon');
        
        if (darkIcon && lightIcon) {
          const isDark = document.documentElement.classList.contains('dark');
          darkIcon.classList.toggle('hidden', isDark);
          lightIcon.classList.toggle('hidden', !isDark);
        }
      }
      
      // Core function to toggle dark mode
      function toggleDarkMode(event) {
        // Prevent event bubbling and default behavior
        if (event) {
          event.preventDefault();
          event.stopPropagation();
          event.stopImmediatePropagation();
        }
        
        const isDark = document.documentElement.classList.contains('dark');
        const darkIcon = document.getElementById('theme-toggle-dark-icon');
        const lightIcon = document.getElementById('theme-toggle-light-icon');
        
        // Update icons
        if (darkIcon && lightIcon) {
          if (isDark) {
            darkIcon.classList.remove('hidden');
            lightIcon.classList.add('hidden');
          } else {
            darkIcon.classList.add('hidden');
            lightIcon.classList.remove('hidden');
          }
        }
        
        // Toggle theme
        if (isDark) {
          document.documentElement.classList.remove('dark');
          localStorage.setItem('color-theme', 'light');
        } else {
          document.documentElement.classList.add('dark');
          localStorage.setItem('color-theme', 'dark');
        }
        
        return false;
      }
      
      // Event delegation handler - uses capture phase to ensure priority
      function themeClickHandler(e) {
        if (e.target.closest('#theme-toggle')) {
          toggleDarkMode(e);
        }
      }
      
      // Reset button event listeners
      function resetThemeButton() {
        const themeBtn = document.getElementById('theme-toggle');
        if (!themeBtn) return;
        
        // Save original button
        const originalBtn = themeBtn;
        
        // Clone button to remove all event listeners
        const newBtn = originalBtn.cloneNode(true);
        originalBtn.parentNode.replaceChild(newBtn, originalBtn);
        
        // Set new event listener
        document.getElementById('theme-toggle').addEventListener('click', toggleDarkMode, true);
      }
      
      // Initialization function
      function initThemeSystem() {
        // Update initial icons
        updateThemeIcons();
        
        // Reset button events
        resetThemeButton();
        
        // Add document-level event listener (capture phase)
        document.removeEventListener('click', themeClickHandler, true);
        document.addEventListener('click', themeClickHandler, true);
        
        // Mark as initialized
        document.documentElement.setAttribute('data-theme-system', 'initialized');
      }
      
      // Delayed initialization to let other scripts run first
      function delayedInit() {
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function() {
            setTimeout(initThemeSystem, 50);
          });
        } else {
          setTimeout(initThemeSystem, 50);
        }
      }
      
      // Immediately set up a global click handler to capture all early clicks
      document.addEventListener('click', function(e) {
        if (e.target.closest('#theme-toggle')) {
          // If theme system not initialized yet, perform basic toggle
          if (!window.__themeToggleInitialized) {
            toggleDarkMode(e);
          }
        }
      }, true);
      
      // Delayed initialization of main system
      delayedInit();
      
      // Provide global functions for other scripts to call
      window.toggleDarkMode = toggleDarkMode;
      window.updateThemeIcons = updateThemeIcons;
      
    })();
  </script>
</head>
<body>

<nav class="sticky top-0 left-0 right-0 z-50 bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800 shadow-md">
  <div class="flex flex-wrap justify-between items-center mx-auto mx-4">
    <a href="/" class="flex items-center">
      <img src="/static/images/UT_30_logo.png"
        class="mr-3 h-6 sm:h-9" alt="company Logo" />
      <img src="/static/images/AI_Implementation_Award.png"
        class="mr-3 h-6 sm:h-9" alt="SmartAttendance Logo" />
    </a>

    <div class="hidden justify-between items-center w-full lg:flex lg:w-auto" id="mobile-menu-2">
      <ul
        class="flex flex-col font-medium p-4 md:p-0 mt-4 border border-gray-100 rounded-lg bg-gray-50 md:space-x-8 rtl:space-x-reverse md:flex-row md:mt-0 md:border-0 md:bg-white dark:bg-gray-800 dark:border-gray-700">
        <li>
          <a href="/"
            class="block py-2 px-3 text-white bg-blue-700 rounded md:bg-transparent md:text-blue-700 md:p-0 md:dark:text-blue-500 dark:bg-blue-600 md:dark:bg-transparent"
            aria-current="page">Home</a>
        </li>
        <li>
          <a href="https://www.united.com.hk/"
            class="block py-2 px-3 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-white md:dark:hover:text-blue-500 dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent">Company</a>
        </li>
        <li>
          <a href="/courses/list"
            class="block py-2 px-3 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-white md:dark:hover:text-blue-500 dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent">Course</a>
        </li>
        <li>
          <a href="/contact"
            class="block py-2 px-3 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-white md:dark:hover:text-blue-500 dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent">Contact</a>
        </li>
        <li>
          <a href="/publicity"
            class="block py-2 px-3 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-white md:dark:hover:text-blue-500 dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent">Publicity</a>
        </li>
      </ul>
    </div>
    <div class="flex flex-row">
      
      <button id="theme-toggle" type="button"
        class="rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700">
        <svg id="theme-toggle-dark-icon" class="hidden h-5 w-5" fill="currentColor" viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg">
          <path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
        </svg>
        <svg id="theme-toggle-light-icon" class="hidden h-5 w-5" fill="currentColor" viewBox="0 0 20 20"
          xmlns="http://www.w3.org/2000/svg">
          <path
            d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
            fill-rule="evenodd" clip-rule="evenodd"></path>
        </svg>
      </button>
      <button type="button" data-dropdown-toggle="language-dropdown"
        class="inline-flex cursor-pointer justify-center rounded p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-400 dark:hover:bg-gray-600 dark:hover:text-white">
        <svg class="h-6 w-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
          width="24" height="24" fill="none" viewBox="0 0 24 24">
          <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
            d="m13 19 3.5-9 3.5 9m-6.125-2h5.25M3 7h7m0 0h2m-2 0c0 1.63-.793 3.926-2.239 5.655M7.5 6.818V5m.261 7.655C6.79 13.82 5.521 14.725 4 15m3.761-2.345L5 10m2.761 2.655L10.2 15">
          </path>
        </svg>
      </button>
      <div
        class="z-40 hidden w-44 list-none divide-y divide-gray-100 rounded bg-white text-base shadow dark:bg-gray-700"
        id="language-dropdown" style="
        position: absolute;
        inset: 0px auto auto 0px;
        margin: 0px;
        transform: translate3d(1420.67px, 986px, 0px);
      " data-popper-placement="bottom">
        <ul class="py-1" role="none">
          <li>
            <a href="#"
              class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-600 dark:hover:text-white"
              role="menuitem">English</a>
          </li>
          <li>
            <a href="#"
              class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-600 dark:hover:text-white"
              role="menuitem">繁體中文</a>
          </li>
          <!-- Add more language options -->
        </ul>
      </div>
      
      <div class="ccw_plugin chatbot" style="position: fixed; bottom: 15px; right: 15px; z-index: 9999;">
        <div class="ccw_style9 animated no-animation ccw-no-hover-an">
            <a target="_blank" href="https://api.whatsapp.com/send?phone=85292071752&amp;text=Hi, 我有關於SmartLearning問題想問" rel="noreferrer" class="img-icon-a nofocus">
                <img class="img-icon ccw-analytics" id="style-9" data-ccw="style-9" style="height: 48px;" src="https://www.united.com.hk/wp-content/plugins/click-to-chat-for-whatsapp/./new/inc/assets/img/whatsapp-icon-square.svg" alt="WhatsApp chat">
            </a>
        </div>
    </div>


    
      <script>
        document.addEventListener('DOMContentLoaded', function () {
          // Get the language dropdown element
          const languageDropdown = document.getElementById('language-dropdown');

          // Add event listeners to the language links
          languageDropdown.addEventListener('click', function (event) {
            // Check if the clicked element is a language link
            if (event.target.tagName === 'A' && event.target.getAttribute('role') === 'menuitem') {
              event.preventDefault(); // Prevent the default link behavior

              // Get the selected language from the link text
              const selectedLanguage = event.target.textContent.trim();
              let langCode;

              // Map the language to the corresponding code
              if (selectedLanguage === 'English') {
                langCode = 'en';
              } else if (selectedLanguage === '繁體中文') {
                langCode = 'zh';
              }

              // Send a POST request to the API endpoint
              fetch('/api/v1/lang', {
                method: 'POST',
                headers: {
                  'Content-Type': 'application/json',
                  // Add any other headers if needed, such as authorization tokens
                },
                body: JSON.stringify({ lang: langCode })
              })
                .then(response => response.json())
                .then(data => {
                  // Check the response status
                  if (data.status === 0) {
                    // If the status is 0, refresh the page
                    location.reload();
                  } else {
                    // Handle other status codes if needed
                    console.error('Failed to change language:', data.message);
                  }
                })
                .catch(error => {
                  console.error('Error:', error);
                });
            }
          });
        });
      </script>
      <!--Register buttons-->
      <div class="flex items-center pl-4 lg:order-2">
        <a href="/users/register"
          class="text-gray-800 dark:text-white hover:bg-gray-50 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:hover:bg-gray-700 focus:outline-none dark:focus:ring-gray-800 bg-sky-300 hover:bg-sky-400"> Register</a>
      </div>
      <!--Login buttons-->
      <div class="flex items-center pl-4 lg:order-2">

        <a href="/users/login"
          class="text-gray-800 dark:text-white hover:bg-gray-50 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:hover:bg-gray-700 focus:outline-none dark:focus:ring-gray-800 bg-sky-300 hover:bg-sky-400">Login</a>

      </div>
      <button data-collapse-toggle="mobile-menu-2" type="button"
        class="inline-flex items-center p-2 ml-1 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
        aria-controls="mobile-menu-2" aria-expanded="false">
        <span class="sr-only">Open main menu</span>
        <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
          <path fill-rule="evenodd"
            d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
            clip-rule="evenodd"></path>
        </svg>
        <svg class="hidden w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
          <path fill-rule="evenodd"
            d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
            clip-rule="evenodd"></path>
        </svg>
      </button>
    </div>
  </div>
</nav>
  <section class="bg-white dark:bg-gray-900">
    <div class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6">
        <div class="mx-auto max-w-screen-sm text-center">
            <h1 class="mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-primary-600 dark:text-primary-500">404</h1>
            <p class="mb-4 text-3xl tracking-tight font-bold text-gray-900 md:text-4xl dark:text-white">Something's missing.</p>
            <p class="mb-4 text-lg font-light text-gray-500 dark:text-gray-400">Sorry, we can't find that page. You'll find lots to explore on the home page. </p>
            <a href="#" onclick="window.location.href = document.referrer;" class="inline-flex text-white bg-sky-600 hover:bg-sky-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:focus:ring-primary-900 my-4">Back to Previous Page</a>
        </div>
    </div>
  </section>

<!-- Modern Footer -->
<footer class="bg-white dark:bg-gray-900 text-gray-800 dark:text-gray-100 pt-12 pb-8">
  <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
    <!-- Main Footer Content -->
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 pb-10 border-b border-gray-300 dark:border-gray-700">
      <!-- Social Media -->
      <div>
        <h3 class="text-lg font-semibold mb-6 pb-2 border-b border-gray-300 dark:border-gray-700 text-gray-900 dark:text-white">
          Social Media
        </h3>
        <div class="flex space-x-4">
          <a href="https://www.facebook.com/UnitedTechnologies1994/" 
             class="bg-gray-200 hover:bg-blue-600 text-gray-800 hover:text-white p-3 rounded-full transition duration-300 inline-flex items-center justify-center dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-blue-600 dark:hover:text-white" 
             aria-label="Facebook">
            <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
              <path fill-rule="evenodd" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" clip-rule="evenodd" />
            </svg>
          </a>
          <a href="https://www.linkedin.com/company/united-technologies-int-l-ltd" 
             class="bg-gray-200 hover:bg-blue-700 text-gray-800 hover:text-white p-3 rounded-full transition duration-300 inline-flex items-center justify-center dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-blue-700 dark:hover:text-white" 
             aria-label="LinkedIn">
            <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
              <path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
            </svg>
          </a>
        </div>
      </div>

      <!-- Quick Links -->
      <div>
        <h3 class="text-lg font-semibold mb-6 pb-2 border-b border-gray-300 dark:border-gray-700 text-gray-900 dark:text-white">
          Quick_links
        </h3>
        <ul class="space-y-3">
          <li>
            <a href="https://www.united.com.hk/about-us/" class="text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white flex items-center group transition duration-300">
              <span class="w-1 h-1 bg-blue-500 rounded-full mr-3 opacity-0 group-hover:opacity-100 transition duration-300"></span>
              About Us
            </a>
          </li>
          <li>
            <a href="https://www.united.com.hk/%e6%96%b0%e8%81%9e%e4%b8%ad%e5%bf%83/" class="text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white flex items-center group transition duration-300">
              <span class="w-1 h-1 bg-blue-500 rounded-full mr-3 opacity-0 group-hover:opacity-100 transition duration-300"></span>
              News
            </a>
          </li>
          <li>
            <a href="/privatepolicy" class="text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white flex items-center group transition duration-300">
              <span class="w-1 h-1 bg-blue-500 rounded-full mr-3 opacity-0 group-hover:opacity-100 transition duration-300"></span>
              Privacy Policy
            </a>
          </li>
        </ul>
      </div>
      
      <!-- Technology Partners -->
      <div>
        <h3 class="text-lg font-semibold mb-6 pb-2 border-b border-gray-300 dark:border-gray-700 text-gray-900 dark:text-white">
          Teaching Tools
        </h3>
        <div class="grid grid-cols-2 gap-4">
          <div class="">
            <img src="../static/images/footer_logos/MS365-removebg.png" alt="Microsoft 365" class="h-6 mx-auto">
          </div>
          <div class="">
            <img src="../static/images/footer_logos/AzurexOpenAI-removebg.png" alt="Azure x OpenAI" class="h-6 mx-auto">
          </div>
          <div class="">
            <img src="../static/images/footer_logos/PowerAuto-removebg.png" alt="Power Automate" class="h-6 mx-auto">
          </div>
          <div class="">
            <img src="../static/images/footer_logos/PowerApps-removebg.png" alt="Power Apps" class="h-6 mx-auto">
          </div>
        </div>
      </div>
      
      <!-- Contact Info -->
      <div>
        <h3 class="text-lg font-semibold mb-6 pb-2 border-b border-gray-300 dark:border-gray-700 text-gray-900 dark:text-white">
          Contact Us
        </h3>
        <ul class="space-y-4 text-gray-600 dark:text-gray-300">
          <li class="flex items-start">
            <svg class="w-5 h-5 mr-3 mt-0.5 text-blue-500 dark:text-blue-400 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
            </svg>
            <span class="text-sm dark:text-gray-300">Unit 1501, Westlands Centre, 20 Westlands Road, Quarry Bay, Hong Kong</span>
          </li>
          <li class="flex items-center">
            <svg class="w-5 h-5 mr-3 text-blue-500 dark:text-blue-400 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path>
            </svg>
            <span class="text-sm dark:text-gray-300">Call: +852 2960 1002</span>
          </li>
          <li class="flex items-center">
            <svg class="w-5 h-5 mr-3 text-blue-500 dark:text-blue-400 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
            </svg>
            <span class="text-sm dark:text-gray-300">Email: enquiry@united.com.hk</span>
          </li>
        </ul>
      </div>
    </div>
    
    <!-- Copyright Section -->
    <div class="pt-8 flex flex-col md:flex-row justify-between items-center">
      <div class="text-gray-600 dark:text-gray-400 text-sm mb-4 md:mb-0">
        © 2024 - 2026 <span class="font-medium text-gray-800 dark:text-gray-300">United Technologies (Int'l) Limited</span>. All Rights Reserved.
      </div>
      
      <div class="flex items-center space-x-6">
        <a href="/privatepolicy" class="text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white text-sm transition duration-300">
          Privacy Policy
        </a>
      </div>
    </div>
  </div>
</footer>

<script>
  // Theme toggle functionality
  const themeToggleBtn = document.getElementById('theme-toggle');
  const themeToggleDarkIcon = document.getElementById('theme-toggle-dark-icon');
  const themeToggleLightIcon = document.getElementById('theme-toggle-light-icon');

  if (themeToggleBtn) {
    // Set initial icon based on theme
    if (localStorage.getItem('color-theme') === 'dark' || 
        (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
      themeToggleLightIcon.classList.remove('hidden');
    } else {
      themeToggleDarkIcon.classList.remove('hidden');
    }

    themeToggleBtn.addEventListener('click', function() {
      // Toggle icons
      themeToggleDarkIcon.classList.toggle('hidden');
      themeToggleLightIcon.classList.toggle('hidden');

      // Toggle theme
      if (localStorage.getItem('color-theme') === 'light') {
        document.documentElement.classList.add('dark');
        localStorage.setItem('color-theme', 'dark');
      } else {
        document.documentElement.classList.remove('dark');
        localStorage.setItem('color-theme', 'light');
      }
    });
  }
  
  // Add smooth hover effects for footer links
  document.addEventListener('DOMContentLoaded', function() {
    const footerLinks = document.querySelectorAll('footer a');
    footerLinks.forEach(link => {
      link.addEventListener('mouseenter', function() {
        this.style.transform = 'translateY(-2px)';
      });
      link.addEventListener('mouseleave', function() {
        this.style.transform = 'translateY(0)';
      });
    });
  });
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script>
</body>
</html>
