/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
  }
  
  figure.background-figure { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; margin: 0; }
  figure.background-figure img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
  
  /* Container */
  .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header */
  #header {
    grid-column: 1 / -1;
   
    background-image: url(cityNight1.webp);
    background-blend-mode: overlay;
      background-repeat: no-repeat;
      background-position: right 20% top 21%;
      background-size: cover;
    color: #14568A;
    padding: 50px;
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    border-radius: 10px;
    width: 720;
    height: 405;
  }
  
  #header h1 {
    background-color:rgba(255, 255, 255, 0.8);
    text-align: end;
    margin: 0;
    border-radius: 10px;
  }
  
  /* Sidebar */
  .sidebar {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
  }
  
  .sidebar h2 {
    color: #14568A;
  }
  .navbar-links {
    list-style: none;
  }
  .navbar-links a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
    background-color: #14568A;
    margin: 5px 0;
  }
  .navbar-links a:hover {
    background-color: #2980b9;
  }
  
  /* Dropdown */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
  }
  .dropdown-menu a:hover {
    background-color: #e0e0e0;
  }
  .dropdown-menu.active {
    display: block;
  }
  
  /* Hamburger Menu */
  .hamburger-menu {
    display: none;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    margin-bottom: 5px;
    z-index: 1000;
  }
  
  /* Main Content */
  .content {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .content p a {
    color: #14568A;
  }
  
  .content p a:hover {
    color: #971B79;
  }
  
  .content img {
    display: block;
    max-width: 100%;
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 0 0 10px 10px;;
  }
  
  section {
    flex: 3;
    padding: 15px;
  }
  
  /* Footer */
  #footer {
    grid-column: 1 / -1;
    text-align: center;
    background-color: #255579;
    color: white;
    padding: 10px;
    border-radius: 10px;
  }
  
  #footer p a {
    color: #FBFE43;
  }
  
  #footer p a:hover {
    color: #C4FDEA;
  }
  
  /* Mobile View */
  @media (max-width: 768px) {
  
    #header {
      padding: 0; 
    }
    
    #header h1 {
      font-size: 1.25rem; 
      text-align: center; 
    }
  
  
    .container {
      grid-template-columns: 1fr;
    }
  
    /* Hamburger Menu */
    .hamburger-menu {
      display: block;
      position: fixed;
      top: 20px;
      left: 15px;
      background-color: #333;
      color: white;
      padding: 5px;
      cursor: pointer;
      border-radius: 5px;
      z-index: 1000; /* Move it to the top */
    }
  
    /* Sidebar (Navbar) */
    .sidebar {
      position: fixed;
      top: 0;
      margin-top: 40px;
      left: -100%; /* Initially hide the menu */
      width: 250px;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.4);
      z-index: 999;
      transition: left 0.3s ease; /* Smooth transition */
      overflow-y: auto; /* Add scroll if content overflows */
    }
  
    .sidebar h2 {
      color: #3498db;
      margin-top: 25px;
      font-weight: bold;
      text-align: left;
      background-color: rgba(255, 255, 255, 0.6)
    }
  
    .sidebar.open {
      left: 0; /* Show the menu when open */
    }
  
    /* Navbar Links */
    .navbar-links {
      display: flex;
      flex-direction: column;
      padding: 10px 0;
      margin: 0;
    }
  
    .navbar-links li {
      margin: 0;
    }
  
    .navbar-links a {
      display: block;
      padding: 10px 15px;
      text-align: left;
      color: white;
      font-size: 14px;
      background-color: rgba(31, 216, 142, 1);
      border-bottom: 1px solid rgba(255, 255, 255, 0.4);
      transition: background-color 0.3s ease;
      border-radius: 30px;
    }
  
    .navbar-links a:hover {
      background-color: rgba(19, 116, 207, 1);
    }
  
    /* Dropdown Menus */
    .dropdown-menu {
      display: none;
      position: static; /* Prevent overlapping */
      width: 100%;
      border-radius: 10px;
    }
  
    .dropdown-menu a { 
      background-color: rgb(239, 27, 27);
    }
  
    .dropdown-menu.active {
      display: block; /* Show the active dropdown menu */
    }
  
    /* Responsive Font Size for Submenus */
    @media (max-width: 480px) {
      .navbar-links a {
        font-size: 12px;
        padding: 8px 10px;
      }
    }
  }
  