/* Resetting default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styling navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #F6B825;
  padding: 10px 0;
  z-index: 3;
}

.container {
  position: relative; /* Create a stacking context for its children */
  width: 100%;
  margin: 0 auto;
  height: 70px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.navbar-menu {
    position: fixed;
    right: 0;
    background-color: #F6B825;
    padding: 10px 20px;
    z-index: 2; /* Ensure the navbar menu has a lower z-index */
}

.navbar-brand {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px; /* Adjust width as needed */
  height: 90px; /* Cover the entire height of the navbar */
  background-image: url('../img/logo.png'); /* Replace 'your-logo-url.png' with your image URL */
  background-size: contain;
  background-repeat: no-repeat;
}

.navbar-brand a,
.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex; /* Use flexbox to align items horizontally */
}

.nav-links a {
    color: black;
    text-decoration: none;
    padding: 1em 1em; /* Adjust padding as needed */
    display: inline-flex; /* Change display to inline-flex */
    height: 50px; /* Set fixed height for all links */
    width: 180px; /* Set a fixed width for all links */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    box-sizing: border-box; /* Include padding and border in the width */
}

.nav-links li {
    display: inline-block;
    position: relative;
}

.nav-links li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%; /* Position the line at the vertical center of the list item */
  transform: translateY(-50%); /* Adjust to vertically center the line */
  left: calc(100%); /* Position the line to the right of the list item */
  height: 50px; /* Adjust the height of the line as needed */
  width: 1px;
  background-color: black; /* Adjust the color of the line */
}



.nav-links a:hover {
    background-color: #C4911E;
}

.navbar-toggler-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: black;
  position: relative;
  transition: background-color 0.3s ease;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: black;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.navbar-toggler-icon:before {
  top: -8px;
}

.navbar-toggler-icon:after {
  top: 8px;
}

.navbar-toggler.active .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon:before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler.active .navbar-toggler-icon:after {
  transform: rotate(-45deg);
  top: 0;
}

.navbar-toggler {
  display: none; /* Initially hide the button */
}

/* Dropdown button */
.dropbtn {
  color: white;
  padding: 1em 1em;
  text-decoration: none;
  display: inline-block;
}

.profile-img img {
    padding: 0.5em; /* Adjust padding as needed */
    width: 42x;
    height: 42px;
}

.dropdown {
    vertical-align: top; /* Align the dropdown list item to the top of the container */
}

/* Dropdown container (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #F8C642;
  min-width: 180px;
  z-index: 1;
  top: 100%; /* Adjust to position the dropdown below the dropdown button */
  right: 0; /* Align the dropdown with the right side of the container */
  text-align: center; /* Center text horizontally */
}

.dropdown-content a {
  color: black;
  padding: 0.5em 1em; /* Adjust padding as needed */
  text-decoration: none;
  display: block;
  width: 100%; /* Ensure links take full width */
  box-sizing: border-box; /* Include padding and border in the width */
  position: relative; /* Create a positioning context for ::after pseudo-element */
  /* Center the text */
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown-content a:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%; /* Adjust width as needed */
  height: 1px;
  background-color: black;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #C4911E;
}



/* Show the dropdown menu on hover for large screens */
@media screen and (min-width: 1135px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Position the dropdown content */
.dropdown-content {
  right: 0;
}

.shorten-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10ch; /* Change this value to adjust the maximum length */
}

@media screen and (max-width: 1135px) {
    /* Center all content horizontally and vertically */
    .navbar,
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Initially hide the navbar menu */
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggler {
        display: block; /* Display the button on small screens */
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 15px; /* Increase padding for entire button clickable */
        position: fixed;
        top: 30px;
        right: 20px; /* Adjust as needed */
        z-index: 4; /* Ensure it's above other content */
    }

    /* Show the navbar menu as a dropdown when the active class is present */
    .navbar-menu.active {
        display: block;
        position: fixed;
        top: 90px; /* Adjust as needed to align with navbar */
        right: 0;
        background-color: #F6B825;
        z-index: 2;
        max-height: calc(100vh - 90px); /* Set maximum height to viewport height minus navbar height */
        overflow-y: auto; /* Add vertical scroll if content exceeds max height */
    }

    /* Style the navbar menu items */
    .nav-links {
        list-style: none;
        padding: 0;
        display: flex; /* Change display to block for stacking vertically */
        flex-direction: column-reverse;
    }

	.nav-links li {
	    display: flex; /* Use flexbox to align items */
	    align-items: center; /* Center items vertically */
	    margin: 5px 0;
	}
	
	.nav-links li:not(:last-child)::after {
	    display: none;
	}
	
	.nav-links a {
	    display: flex; /* Use flexbox to align items */
	    justify-content: center; /* Center items horizontally */
	    align-items: center; /* Center items vertically */
	    padding: 10px; /* Adjust as needed */
	    color: black;
	    text-decoration: none;
	}

    .dropdown-content {
        display: none; /* Initially hide dropdown content */
    }

    /* Show dropdown content when its parent list item is clicked */
    .dropdown.active .dropdown-content {
        display: block;
    }
}
