/* ==== NAVBAR ==== */
header {
  background-color: white; /* Beyaz zemin tüm sayfaya yayılsın */
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white !important;
  padding: 1rem 1rem;
  position: relative;
  z-index: 1000;
  max-width: 2000px;  /* Büyük ekranlarda genişliği sınırla */
  margin: 0 auto;     /* Ortalamak için */
  width: 100%;
}

/* Sol taraf */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  height: 80px;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
}

.brand-top {
  font-size: 1.4rem;
  font-weight: bold;
  color: #f4a742;
}

.brand-bottom {
  font-size: 0.9rem;
  color: #ccc;
}

/* Menü Linkleri */
.navbar-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  color: #009ef7;
  padding-right: 11rem;
}

.navbar-links a {
  color: #009ef7;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  font-weight: bold;
  align-items: center;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #009ef7;
  transition: width 0.3s;
  font-weight: bold;
}

.navbar-links a:hover {
  color: #009ef7;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Sağ taraf */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #e53935;
  padding: 2px;
  background-color: #fff;
  cursor: pointer;
}

/* Hamburger Butonu */
.navbar-toggle {
  font-size: 2rem;
  color: #f4a742;
  cursor: pointer;
  display: none; /* Başta gizli */
}

.profile-icon:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 940px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fefefe;
    width: 100%;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    padding-right: 0rem;
  }

  .navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  color: #009ef7;
}

  .navbar-links.open {
    max-height: 500px;
  }

  .navbar-links li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .navbar-toggle {
    display: block;
  }
}
@media (max-width: 405px) {
  /* Navbar’ın iç boşluklarını azalt */
  .navbar {
    padding: 0.5rem;
  }
  .navbar-links {
    padding-right: 0rem;
  }

  /* Logo boyutunu küçült */
  .navbar-logo {
    height: 50px;   /* eskiden 80px ise, düşürdük */
  }

  /* Sol ve sağ bloklardaki boşlukları sıkıştır */
  .navbar-left,
  .navbar-right {
    gap: 0.5rem;
  }

  /* Profil ikonunu daha küçük yap veya gizle */
  .profile-icon {
    width: 40px;
    height: 40px;
    /* dilerseniz tamamen gizlemek için:
    display: none;
    */
  }

  /* Hamburger simgesini biraz küçült */
  .navbar-toggle {
    font-size: 1.8rem;
  }
}