/* Navigation Styles */

.main-navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  position: sticky;
  top: 80px;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.primary-nav ul:not(.contextual-links) {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--passport-blue);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--passport-gold);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--passport-gold);
  transition: width 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  width: 100%;
}

/* Dropdown Menus */
.primary-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

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

.dropdown a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown a:last-child {
  border-bottom: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.mobile-nav-toggle:focus {
  outline: 2px solid var(--passport-gold);
  outline-offset: 2px;
}

/* Hamburger Icon Animation */
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  margin: auto;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
  top: 0px;
  transform-origin: left center;
}

.hamburger span:nth-child(2) {
  top: 8px;
  transform-origin: left center;
}

.hamburger span:nth-child(3) {
  top: 16px;
  transform-origin: left center;
}

/* Active State Animation */
.mobile-nav-toggle.is-active .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 4px;
}

.mobile-nav-toggle.is-active .hamburger span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.mobile-nav-toggle.is-active .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 16px;
  left: 4px;
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: linear-gradient(135deg, var(--passport-blue) 0%, var(--passport-dark) 100%);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-panel.is-open {
  right: 0;
}

/* Mobile Menu Header */
.mobile-nav-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  box-sizing: border-box;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.mobile-nav-logo img {
  height: 32px;
  width: auto;
}

.mobile-nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Mobile Menu Content */
.mobile-nav-content {
  flex: 1;
  padding: 1rem 0;
}

/* Style Drupal's primary menu in mobile panel */
.mobile-nav-content .menu,
.mobile-nav-content ul:not(.contextual-links) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-content .menu > li,
.mobile-nav-content ul:not(.contextual-links) > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-content .menu > li:last-child,
.mobile-nav-content ul:not(.contextual-links) > li:last-child {
  border-bottom: none;
}

.mobile-nav-content .menu a,
.mobile-nav-content ul:not(.contextual-links) a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-content .menu a::before,
.mobile-nav-content ul:not(.contextual-links) a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-content .menu a:hover::before,
.mobile-nav-content ul:not(.contextual-links) a:hover::before {
  left: 100%;
}

.mobile-nav-content .menu a:hover,
.mobile-nav-content ul:not(.contextual-links) a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--passport-gold);
  padding-left: 2rem;
}

.mobile-nav-content .menu a.is-active,
.mobile-nav-content ul:not(.contextual-links) a.is-active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--passport-gold);
  border-left: 4px solid var(--passport-gold);
}

/* Menu Item Icons */
.mobile-nav-content .menu a::after,
.mobile-nav-content ul:not(.contextual-links) a::after {
  content: '→';
  margin-left: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.mobile-nav-content .menu a:hover::after,
.mobile-nav-content ul:not(.contextual-links) a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered Animation for Menu Items */
.mobile-nav-panel.is-open .mobile-nav-content li {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateX(50px);
}

.mobile-nav-panel.is-open .mobile-nav-content li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-panel.is-open .mobile-nav-content li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-panel.is-open .mobile-nav-content li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-panel.is-open .mobile-nav-content li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-panel.is-open .mobile-nav-content li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-panel.is-open .mobile-nav-content li:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Menu Footer */
.mobile-nav-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.mobile-nav-cta {
  display: block;
  background: linear-gradient(135deg, var(--passport-gold), #e59400);
  color: var(--passport-dark);
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.mobile-nav-cta:hover::before {
  transform: rotate(45deg) translate(100%, 100%);
}

.mobile-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.mobile-nav-contact {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.mobile-nav-contact a {
  color: var(--passport-gold);
  text-decoration: none;
}

/* Body Lock when Menu is Open */
body.mobile-nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}



/* Breadcrumbs */
.breadcrumb {
  background: rgba(248, 250, 252, 0.8);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li::after {
  content: '→';
  margin-left: 0.5rem;
  color: var(--passport-gray);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--passport-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--passport-gold);
}