/* ========== WRAPPER + SCROLL BEHAVIOR ========== */
.menu2-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.menu2-wrapper.scrolled {
    background-color: rgba(1, 28, 57, 0.92) !important; /* translucent navy */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Shrink logo on scroll */
.menu2-wrapper .menu-logo-img {
    width: 180px;
    transition: width 0.3s ease;
}
.menu2-wrapper.scrolled .menu-logo-img {
    width: 140px;
}

/* ========== CONTAINER LAYOUT ========== */
.menu2-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}

/* ========== CENTER: SECTOR DROPDOWNS ========== */
.navbar-center {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 30px;
}

.navbar-center .nav-item {
    position: relative;
}

.nav-sector {
    color: #00c3ff;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}


/* ========== RIGHT: CORPORATE LINKS ========== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-corporate {
    color: white;
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
}

.link-language-white {
    border: 1px solid white;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
}

/* ========== DROPDOWNS ========== */
.dropdown-menu {
    background-color: #022a50;
    border: none;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    height: 8px;
    width: 100%;
  }

/* Alt menü öğeleri */
.dropdown-item {
    color: white;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

/* Hover efekti: arka plan sabit, metin beyaz kalır, altı çizilir */
.dropdown-item:hover {
    background-color: #003060; /* hafif daha açık lacivert ton */
    color: #00c3ff;
    text-decoration: underline;
    font-weight: 500;
    border-left: 3px solid #00c3ff;
}


/* ========== TOGGLER BUTTON FOR MOBILE ========== */
.navbar-toggler {
    border: none;
    background: none;
    font-size: 22px;
    color: white;
}

/* ========== MOBILE LAYOUT ========== */
@media (max-width: 991.98px) {

    .navbar-collapse {
      position: fixed;
      top: 100px; /* 🔧 LOGO’nun altına gelsin */
      left: 0;
      right: 0;
      width: 100vw;
      min-height: calc(100vh - 100px);
      background-color: rgba(1, 28, 57, 1); 
      padding: 20px 25px;
      z-index: 9999;
      border-radius: 0;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
      transition: all 0.3s ease-in-out;
    }
  
    .navbar-nav {
      align-items: flex-start !important;
      text-align: left;
      width: 100%;
      gap: 10px;
    }
    .navbar-nav .nav-link {
      text-align: left;
    }
  
    .navbar-nav.flex-row {
      flex-direction: column !important;
    }
  
    .dropdown-menu {
      position: static !important;
      float: none !important;
      display: none;
      background: transparent;
      box-shadow: none;
      margin-top: 5px;
      padding: 10px 0 10px 0;
      width: 100%;
    }
  
    .dropdown.show .dropdown-menu {
      display: block;
    }
  
    .navbar-nav > .nav-item > .nav-link.nav-sector {
      margin-top: 10px;
      margin-bottom: 5px;
      padding-left: 0;
      font-weight: 600;
      font-size: 15px;
      color: #00c3ff;
      text-align: left;
    }
  
    .dropdown-item {
      padding: 8px 16px;
      text-align: left;
      color: white;
      border-left: 3px solid transparent;
      width: 100%;
    }
  
    .dropdown-item:hover {
      background-color: rgba(255, 255, 255, 0.08);
      border-left: 3px solid #00c3ff;
    }
  
    .link-language-white {
      margin-top: 10px;
      padding: 6px 12px;
      display: inline-block;
      border: 1px solid white;
      color: white;
    }
  
  }
  
  