/* Skip navigation for accessibility */


  /* Navbar */
.navbar {
    background-color: #ffffff; /* White for a clean aesthetic */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .navbar-brand {
    background-color: #ffffff;
  }
  .navbar-brand img {
    height: 50px;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: #ffffff; /* Darker shade of #6B8AC2 */
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: #d7e4fa !important; /* Lighter color for active link */
    background-color: transparent; /* Remove background color */
    border-radius: 0; /* Remove rounded edges */
    padding: 0.5rem 1rem; /* Maintain consistent spacing */
    text-shadow: none; /* Remove text shadow */
    text-decoration: underline; /* Underline the text */
    text-decoration-color: #d7e4fa; /* Set underline color */
    text-decoration-thickness: 2px; /* Adjust thickness of the underline */
  }
  
  .nav-item {
    background-color: #6B8AC2;
  }
  
  .nav-item .active {
    background-color: #2e4a73 !important;
  }



.skip-nav {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #315a89;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
}

.skip-nav:focus {
  top: 6px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-body, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
  background: #f4f4f4;
  min-height: 100vh;
  line-height: 1.6;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(49, 90, 137, 0.1);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-navbar a {
  color: #3e72ae;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  min-width: 75px;
}

/* Accessibility: Focus indicators for keyboard navigation */
.site-navbar a:focus {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
  background: rgba(74, 144, 226, 0.1);
}

.site-navbar a:hover:not(.btn) {
  color: #2d5a94;
  background: rgba(62, 114, 174, 0.1);
  transform: none;
}

.site-navbar .nav-icon {
  font-size: 1.6rem;
  color: #3e72ae;
  transition: all 0.3s ease;
}

.site-navbar .nav-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3e72ae;
  text-align: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.site-navbar a:hover:not(.btn) .nav-icon,
.site-navbar a:hover:not(.btn) .nav-text {
  color: #2d5a94;
}

.site-navbar a:not(.btn)::after {
  display: none;
}

.site-navbar a.btn {
  background: linear-gradient(135deg, #3e72ae 0%, #5a8bc7 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(62, 114, 174, 0.25);
  transition: all 0.3s ease;
}

.site-navbar a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 114, 174, 0.35);
  background: linear-gradient(135deg, #2d5a94 0%, #3e72ae 100%);
  color: white !important;
}

/* User Avatar in Navigation */
.nav-user-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 75px;
  color: #3e72ae;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
}

.nav-user-avatar:hover {
  background: rgba(62, 114, 174, 0.1);
}

.nav-avatar-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e3eaf7;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(62, 114, 174, 0.2);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #d6e2f5;
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 18px 30px rgba(16, 42, 67, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: #3e72ae;
  font-weight: 600;
}

.user-dropdown .nav-icon {
  font-size: 1rem;
  color: #3e72ae;
}

.user-avatar-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3e72ae 0%, #5a8bc7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.6rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-user-avatar:hover .user-avatar-icon {
  transform: none;
  box-shadow: 0 2px 8px rgba(62, 114, 174, 0.3);
}

.user-name-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3e72ae;
  text-align: center;
  line-height: 1;
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}



.nav-user-avatar:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-avatar:focus-within .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.user-dropdown a:hover {
  background: rgba(62, 114, 174, 0.1);
  transform: none;
}

.user-dropdown a:hover::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #3e72ae;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.show {
  display: block;
  opacity: 1;
}

.nav-sidemenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #ffffff !important;
  background-color: #ffffff !important;
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding-top: 80px;
}

.nav-sidemenu.show {
  right: 0;
}

.nav-sidemenu .menu-header {
  padding: 1rem 2rem;
  border-bottom: 1px solid #e6e6e6;
  font-weight: bold;
  font-size: 1.2rem;
  color: #3e72ae;
  background: #ffffff !important;
  background-color: #ffffff !important;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-sidemenu .menu-header small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6e7fa2;
}

.nav-sidemenu a {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 1rem 2rem;
  color: #3e72ae;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
  transition: background-color 0.2s ease;
  gap: 0.75rem;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.nav-sidemenu a:hover {
  background-color: #f8f9fa;
  color: #3e72ae;
}

.nav-sidemenu .nav-icon {
  font-size: 1.1rem;
  color: #3e72ae;
  flex-shrink: 0;
}

.nav-sidemenu .nav-text {
  font-size: 1rem;
}

.nav-sidemenu a.btn {
  background: linear-gradient(135deg, #3e72ae 0%, #5a8bc7 100%);
  color: white;
  margin: 1rem 2rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  border-bottom: none;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(62, 114, 174, 0.25);
  transition: all 0.3s ease;
}

.nav-sidemenu a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 114, 174, 0.35);
  background: linear-gradient(135deg, #2d5a94 0%, #3e72ae 100%) !important;
  color: white !important;
}

.nav-sidemenu-links {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }
}

.nav-overlay[aria-hidden="true"] {
  opacity: 0;
}

body.nav-lock {
  overflow: hidden;
}





/* Accessibility: Improve hamburger button focus */
.hamburger:focus {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
  background: rgba(74, 144, 226, 0.1);
}
