/*===========================
    DHR NAVBAR - CUSTOM STYLE
===========================*/
.navbar-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: all 0.3s ease-out 0s;
}

/* Sayfa yüklendiğinde transition'ı devre dışı bırak */
.navbar-area.no-transition {
  transition: none !important;
}

.sticky {
  position: fixed;
  z-index: 99;
  background-color: #fff;
  box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-out 0s;
}

.sticky .navbar {
  padding: 17px 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .sticky .navbar {
    padding: 15px 0;
  }
}

.sticky .navbar .navbar-nav .nav-item a {
  color: #333;
}

.sticky .navbar .navbar-toggler .toggler-icon {
  background: #333;
}

.navbar {
  padding: 0;
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease-out 0s;
  padding: 20px 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navbar {
    padding: 17px 0;
  }
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  max-width: 180px;
}

.navbar-toggler {
  padding: 0;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler .toggler-icon {
  width: 30px;
  height: 2px;
  background-color: #333;
  display: block;
  margin: 5px 0;
  position: relative;
  transition: all 0.3s ease-out 0s;
}

.navbar-toggler.active .toggler-icon:nth-of-type(1) {
  transform: rotate(45deg);
  top: 7px;
}

.navbar-toggler.active .toggler-icon:nth-of-type(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-of-type(3) {
  transform: rotate(135deg);
  top: -7px;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 9;
    box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.1);
    padding: 5px 12px;
  }
}

.navbar-nav .nav-item {
  position: relative;
  margin-left: 40px;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navbar-nav .nav-item {
    margin-left: 20px;
  }
}

.navbar-nav .nav-item a {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  transition: all 0.3s ease-out 0s;
  padding: 10px 0;
  position: relative;
  text-decoration: none;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.5;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navbar-nav .nav-item a {
    display: inline-block;
    padding: 6px 0px;
    color: #333;
  }
}

.navbar-nav .nav-item a:hover {
  color: #971A08;
}

.navbar-nav .sub-nav-toggler {
  display: none;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .navbar-nav .sub-nav-toggler {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    color: #222;
    font-size: 18px;
    border: 0;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  .navbar-nav .sub-nav-toggler {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    color: #222;
    font-size: 18px;
    border: 0;
    width: 30px;
    height: 30px;
  }
}

/* Language Dropdown */
.navbar-nav .nav-item.dropdown .page-scroll {
  display: inline-block !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  padding: 10px 0 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease;
  vertical-align: baseline !important;
  line-height: 1.5 !important;
  text-decoration: none;
}

.navbar-nav .nav-item.dropdown .page-scroll:hover {
  background: transparent !important;
  color: #971A08;
}

.navbar-nav .nav-item.dropdown .page-scroll i {
  font-size: 18px;
  vertical-align: baseline;
  margin-right: 4px;
  line-height: 1.5;
}

.navbar-nav .nav-item.dropdown .page-scroll.dropdown-toggle::after {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
}

.navbar-nav .nav-item.dropdown #currentLang {
  font-weight: 400 !important;
  font-size: 18px !important;
  vertical-align: baseline;
}

.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  margin-top: 8px;
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 15px;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.dropdown-item.active {
  background: rgba(151, 26, 8, 0.1);
  color: #971A08;
  font-weight: 600;
}

.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.5px;
}

.dropdown-item.active .lang-code {
  background: rgba(151, 26, 8, 0.15);
  color: #971A08;
}

.dropdown-item:hover .lang-code {
  background: #e0e0e0;
  color: #333;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navbar-nav .nav-item.dropdown {
    margin-left: 20px;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    padding-left: 20px;
  }
}
