/* Root Variables */
:root {
    --primary-color: #0056a4;
    --secondary-color: #28a745;
    --light-bg: #f8f9fa;
    --font-color: #333;
    --hover-color: rgba(0, 86, 164, 0.1);
    --transition: all 0.3s ease-in-out;
  }
  
  /* *{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
  } */
  /* General Styling */
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* Hide the back option by default */
  .back-option {
    display: none; /* Hidden in normal mode */
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  /* Header Styles */
  .header {
    background-color: #0059a9; /* Matches the primary color in the screenshot */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
  }
  
  /* Header Container */
  .header-container {
    display: flex;
    justify-content: space-between;
    /* width: 100%; */
    width: 100vw;
    align-items: center;
  }
  
  /* Header Links */
  .header-links {
    display: flex;
    gap: 30px;
    align-items: center;
  }
  
  .header-links a,
  .header-links .dropdown > a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease;
  }
  
  /* Hover Effect for Links */
  .header-links a:hover,
  .header-links .dropdown:hover > a {
    color: #40b43e; /* Matches the green hover color */
    border-bottom: 2px solid #40b43e; /* Matches the bottom border effect */
  }
  
  /* Dropdown Menu */
  .header-links .dropdown {
    position: relative;
    list-style: none;
  }
  
  .header-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
  }
  
  .header-links .dropdown-menu li {
    padding: 5px 20px;
  }
  
  .header-links .dropdown-menu li a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  /* .header-links .dropdown-menu li a:hover {
    color: #0059a9;  Matches the blue hover color for dropdown items 
  } */
  
  /* Show Dropdown on Hover */
  .header-links .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* Schedule an Appointment Button */
  .header-links .appointment {
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: transparent;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .header-links .appointment:hover {
    background-color: white;
    color: #0059a9;
  }
  
  /* Navbar */
  .navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .navbar li {
    list-style-type: none;
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    width: 100%;
  }
  
  .nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links > li > a {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    padding: 8px 15px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease-in-out;
  }
  
  .nav-links > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
  }
  
  .nav-links > li > a:hover {
    color: var(--primary-color);
  }
  
  .nav-links > li > a:hover::after {
    width: 100%;
  }
  
  /* Parent nav item default style */
  .navbar .dropdown > a {
    border-bottom: 2px solid transparent; /* Default transparent border */
    transition: border-color 0.3s ease, color 0.3s ease; /* Smooth transition */
  }
  
  /* Show border on hover or when dropdown is active */
  .navbar .dropdown:hover > a,
  .navbar .dropdown:focus-within > a {
    border-bottom: 2px solid var(--primary-color); /* Add border */
    color: var(--primary-color); /* Optional: Adjust color */
  }
  
  /* Base Styles */
  .dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 5px); /* Position right below the dropdown */
    left: 0;
    background-color: var(--light-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out; /* Smooth transition */
  }
  
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Explore Dropdown Specific Styles */
  #explore .dropdown-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: space-between;
    width: 600px; /* Adjust width to fit cards */
    left: -250px;
  }
  
  /* Card Styles for Explore Items */
  #explore .dropdown-menu > li {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 20px); /* Three cards per row */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  
  #explore .dropdown-menu > li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  }
  
  /* Dropdown Link Styles */
  .dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .dropdown-menu li {
    margin-bottom: 5px;
    background: white; /* Ensure background color */
    padding: 8px 12px; /* Add padding for better spacing */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

.dropdown-menu li:hover {
    background: #28a745af; /* Change background color */
    color: white; /* Change text color */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.dropdown-menu strong{
  color: black!important;
}
  
  .dropdown-menu ul li a {
    font-size: 14px;
    color: var(--font-color);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }
  
  .dropdown-menu a:hover {
    color: var(--primary-color)!important;
  }
  
  /* Fix for Study Abroad, Preparation Classes, and Resources */
  .navbar .dropdown .dropdown-menu {
    left: auto;
    min-width: 250px;
  }
  
  /* Prevent Navbar Height Changes */
  .nav-links > li > a {
    display: inline-block;
    height: 100%;
  }
  
  /* Toggle Button for Mobile */
  .toggle-button {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--font-color);
    cursor: pointer;
  }
  
  /* Mobile Navigation Styling */
  @media (max-width: 1024px) {
    .header{
      display: none;
    }
  
    .back-option {
      display: block; /* Show on smaller screens */
      position: relative; /* Adjust positioning as needed */
      font-size: 16px; /* Adjust font size for mobile */
      margin-bottom: 10px; /* Add some spacing */
      color: var(--primary-color); /* Style to match theme */
      cursor: pointer;
    }
  
    .toggle-button {
      display: block;
      font-size: 24px;
      background: none;
      border: none;
      color: grey; /* Adjust color if needed */
      cursor: pointer;
      position: absolute;
      top: 15px;
      right: 20px;
      z-index: 1001;
    }
  
    .navbar-container {
      position: relative;
    }
  
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background: #111;
      color: white;
      flex-direction: column;
      align-items: start;
      padding: 20px;
      transition: right 0.3s ease-in-out;
      overflow: hidden;
      z-index: 1000;
    }
  
    .nav-links.menu-open {
      right: 0;
    }
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background: #111;
      color: white;
      flex-direction: column;
      align-items: start;
      padding: 20px;
      transition: right 0.3s ease-in-out;
      overflow: hidden;
    }
  
    .nav-links.menu-open {
      right: 0;
    }
  
    .nav-links li {
      width: 100%;
    }
  
    .nav-links a {
      display: block;
      padding: 12px 15px;
      color: white;
      font-size: 16px;
    }
  
    .dropdown-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background: #111;
      display: flex;
      flex-direction: column;
      padding: 20px;
      transition: right 0.3s ease-in-out;
    }
  
    .dropdown-menu.active-layer {
      right: 0;
    }
  
    .hidden-layer {
      right: -100% !important;
    }
  
    .back-button {
      padding: 10px 0;
      font-size: 16px;
    }
  
    .back-button a {
      color: #ddd;
      display: flex;
      align-items: center;
    }
  
    .back-button a::before {
      /* content: "←"; */
      margin-right: 8px;
    }
  
    /* Overlay effect */
    .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out;
    }
  
    .overlay-active {
      opacity: 1;
      visibility: visible;
    }
  }
  