@import url('https://fonts.googleapis.com/css?family=Poppins');
*{
  font-family: 'Poppins';
}

.navbar {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  position: sticky;
  top: 0;
  padding: 20px 60px; /* Reduced from 100px */
  z-index: 20;
  background-color: #fff;
  box-shadow: 0px 3px 67px 0px rgba(0, 0, 0, 0.212);
}
.nav-links {
  color: #173875;
}
div#navbarSupportedContent {
  background: #fff;
  padding: 10px;
  /* height:auto; */
  text-align: center;
  height: 10px;
}
.bg-light {
  background-color: #fff !important;
}
li.nav-item.btn {
  color: white;
  background-color: #f28043;
}
li.nav-item.btn .nav-links {
  color: white;
}
/* .navbar.active{
    background-color: #fff;
    box-shadow: 0px 3px 67px 0px rgba(0,0,0,.15);
}
.navbar.active .nav-links{
    color: #173875;
} */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  max-width: 2000px;
}

.nav-logo {
  color: #f5b921;
  align-items: center;
  /* margin-left: 20px; */
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  flex-grow: 1;
  padding-bottom: 10px;
}

.img-fluid-1{
  width:70px;
  height:70px;
  border-radius: 50px;
  margin-bottom:2px;
}
.nav-menu {
  display: flex;
  list-style: none;
  text-align: center;
  flex-wrap: nowrap; /* Prevent wrapping */
  align-items: center; /* Align items vertically */
}

.nav-links {
  color: #f28043;
  text-decoration: none;
  padding: 0.5rem 0.6rem; /* Reduced from 1rem to 0.6rem */
  height: 100%;
  border-bottom: 3px solid transparent;
  white-space: nowrap; /* Prevent text wrapping */
}
.nav-links a {
  text-decoration: none;
}
.nav-links:hover {
  text-decoration: none;
  color: #173875;
}
.fa-code {
  margin-left: 1rem;
}

.nav-item {
  /* line-height: 40px; */
  margin-right: 0.4rem; /* Reduced from 1rem to 0.4rem */
}
#dropdownStyle {
  left: "-100px" !important;
}
/*
.modal {
    text-align: center;
    padding: 37px;
    background-color: white;
    margin-left: 30%;
    border-radius: 10px;
    box-shadow: 0px 3px 65px 0px rgb(0 0 0 / 15%);
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: -moz-fit-content;
    height: fit-content;
    overflow: hidden;
    outline: 0;
} */
.modal h2 {
  color: #57bae9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 30px;
  padding: 10px;
}
.modal form {
  outline: none;
  border: none;
}
/*
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
}*/
.modal form input {
  border-radius: 5px;
}
input,
textarea {
  background-color: #f9f9f9;
  outline: 0;
  border: 1px solid #f1f1f1;
  padding: 10px 20px;
  float: left;
  width: 100%;
  box-sizing: border-box;
}
.modal form button {
  color: white;
  background-color: rgb(0, 103, 224);
  border: none;
  outline: none;
  border-radius: 5px;
  padding: 10px;
  font-weight: 700;
}

/* .nav-item:after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: transparent;
    transition: width 0.7s ease, background-color 0.5s ease;
  } */

/* .nav-item:hover:after {
    width: 100%;
    background: #ffdd40;
  } */

/* .nav-item .active {
    color: #ffdd40;
    border: 1px solid #ffdd40;
  } */

.nav-icon {
  display: none;
}
.nav-item-jobs {
  position: relative; 
}

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  list-style-type: none;
  padding: 10px;
  margin: 0;
  border-radius: 10px;
  font-size: 16px;
}

.nav-item:hover .dropdown {
  display: block;
}
.nav-item {
  align-items: center;
  cursor: pointer;
}

.dropdown li{
  padding:10px;
}
.arrow {
  font-size: 14px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}
 

@media (max-width: 768px) {
  .nav-item .dropdown {
      display: none;
      position: relative; 
      top: 0;
      left: 0;
  }
  .dropdown li{
    border-top: 1px solid #c0bcbc;
  }

  .nav-item.active .dropdown {
      display: block;
      position: relative; 
      top: 0;
      left: 0;
  }
}

@media screen and (max-width: 480px) {
  #dropdownStyle {
    left: 0 !important;
  }
  .modal {
    margin-left: 0%;
  }
  .nav-menu .dropdown {
    display: none;
  }
}
 
@media screen and (max-width: 992px) {
  .navbar{
    height:auto;
  }
  div#navbarSupportedContent{
    text-align: center;
  }
  .navbar-nav{
    background-color: white; 
    
  }
  li.nav-item.btn {
    background-color: white;
    border-bottom: 2px solid #c0bcbc;
  }
  li.nav-item{
    border-bottom: 2px solid #c0bcbc;
  }
 li.nav-item.btn .nav-links {
        color: #efe9e5;
        background: orange;
        max-width: max-content;
        display: inline-block;
        line-height: 0vh;
    }

  .nav-menu {
    display: flex;
    flex-direction: column;
    border-bottom: #173875;
    width: 100%;
    border-top: 1pxsolid #fff;
    position: absolute;
    top: 80px;
    left: -110%;
    opacity: 1;
    transition: all 0.5s ease;
  }
  .nav-menu.active {
    background: #fff;
    border-top: 2px solid #ff6600;
    border-bottom: 2px solid #ff6600;
    margin: 0% !important;
    left: 0px;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 1;
  }
  .nav-item .active {
    color: #ff6600;
    border: none;
  }
  .nav-links {
    color: #173875;
    padding: 1.5rem;
    width: 100%;
    display: table;
    margin-left: -20px;
  }
  .nav-tabs .nav-link {
    border: 1px solid black;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
  }
  .nav-icon {
    display: block;
    margin-top: -60px;
    margin-left: 10px;
    top: 0;
    right: 0;
    transform: translate(-100%, 60%);
    font-size: 1.8rem;
    cursor: pointer;
    color: #f86604;
  }
}

.modal a {
  cursor: pointer;
}
#navbarNavDropdown ul li a {
  font-family: Montserrat;
  font-style: normal;
  /* font-weight: 500; */
  color: rgb(23, 56, 117);
}

.login {
  color: rgb(23 56 117);
  font-weight: 500;
  font-size: 18px;
  background-color: #ff6600;
  transition: 0.5s;
  border-radius: 8px;
  letter-spacing: 1px;
  padding: 7px 20px;
  border: 2px solid #ff6600;
}
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  max-width: 2000px;
}

.input-error {
  color: #f32d0f;
}

@media (max-width: 480px) {
  .navbar {
    max-width: 100%;
  }
}

/* @media only screen and (max-width: 480px){
.navbar {
    padding: 20px 20px !important;
    width:100%;
}
.nav-container{
    width:100%;
}
body{
    width:100%;
}
} */

@media only screen and (max-width: 480px) {
  .navbar {
    padding: 20px;
    width: 100%;
  }

  .nav-container {
    width: 100%;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }
}

.nav-item a{
  /* font-size: 20px; */
  /* font-weight: 500; */
  border-radius: 10px;
  color:#173875;
}
.navbar-nav{
  margin-left: 20%; /* Reduced from 35% */
}
@media(max-width:768px){
  .navbar-nav{
      margin-left: 0px;
  }
  .img-fluid-1{
    width:50px;
    height:50px;
    border-radius: 50px;
  }
}


/* === Navbar consistency fix for all pages === */
.navbar {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  padding: 20px 40px !important;
}

.navbar-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-left: 10px !important; /* Keeps Home close to logo */
  flex-wrap: nowrap !important;
}

.nav-item {
  margin: 0 6px !important; /* Equal spacing between items */
  white-space: nowrap !important;
}

.nav-links {
  padding: 0.5rem 0.6rem !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
}

.login {
  margin-left: 10px !important; /* Keeps login button aligned properly */
}

.navbar * {
  box-sizing: border-box;
}

/* Prevent ambassador.css from overriding navbar */
.fixed-top .navbar,
.fixed-top .navbar-nav {
  all: unset;
}

/* ===== Mobile menu fixes - paste at the END of your CSS ===== */
/* Applies to phones and small tablets */
@media (max-width: 768px) {
  /* tighten header spacing */
  .navbar {
    padding: 12px 16px !important;
    height: 64px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    justify-content: space-between !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: #fff;
  }

  /* logo and hamburger */
  .nav-logo { flex: 0 0 auto; margin-right: 8px; padding-bottom: 0; }
  .nav-icon {
    display: block !important;
    font-size: 1.8rem;
    color: #f86604;
    cursor: pointer;
    z-index: 75;
  }

  /* full-width, scrollable panel under header */
  .nav-menu {
    position: fixed !important;
    top: 64px !important;           /* below header */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;        /* use viewport width to avoid container constraints */
    max-width: 100% !important;
    background: #fff !important;
    z-index: 65 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-6px);
    transition: transform .22s ease, opacity .18s ease;
    opacity: 0;
    visibility: hidden;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    display: block !important; /* ensure block so items stack */
  }

  /* visible state toggled by JS -> add .active to .nav-menu */
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* each item = full-width touch target */
  .nav-menu > .nav-item,
  .nav-menu li {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border-bottom: 1px solid #e9e9e9;
    background: transparent;
  }

  /* links expand to full-width and align left */
  .nav-links {
    display: block !important;
    width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: #173875 !important;
    white-space: normal !important;
  }

  /* move login button into menu flow nicely */
  .login {
    display: inline-block;
    margin: 10px 18px;
    padding: 8px 16px;
    border-radius: 8px;
  }

  /* smaller logo image on mobile */
  .img-fluid-1 {
    width: 48px;
    height: 48px;
  }

  /* Submenus should be static and collapsible on mobile */
  .nav-item .dropdown {
    display: none; /* hidden by default - toggled by JS */
    position: relative !important;
    top: 0;
    left: 0;
    padding-left: 12px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 6px 0 0 0;
  }
  .nav-item.active .dropdown {
    display: block;
  }
  .nav-item .dropdown li {
    padding: 10px 18px;
    border-top: 1px solid #f1f1f1;
    background: #fff;
  }

  /* remove awkward left margin */
  .navbar-nav {
    margin-left: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  /* prevent horizontal scroll */
  body, html { overflow-x: hidden; }

  /* when menu open, prevent background scroll (JS will add class to body) */
  body.nav-open { height: 100vh; overflow: hidden; }

  /* defensive reset for any inline styles that might force width/left */
  .nav-menu[style] { left:0 !important; right:0 !important; top:64px !important; width:100vw !important; }
}

/* Extra safety for very narrow screens */
@media (max-width: 480px) {
  .nav-menu > .nav-item,
  .nav-menu li { padding: 12px 14px; font-size: 15px; }
  .login { font-size: 15px; padding: 7px 14px; }
  .img-fluid-1 { width:44px; height:44px; }
  .navbar { padding: 10px 12px !important; height:56px; }
  .nav-menu { top:56px !important; max-height: calc(100vh - 56px); }
}
