/* --- Header Layout --- */
.kotaki-header {
  background: linear-gradient(
    to bottom,
    rgba(230, 230, 230, 0.8),
    rgba(207, 207, 207, 0.8)
  );
  padding: 10px 180px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.kotaki-flex {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Push logo left and button right */
  position: relative; /* Base for absolute centering */
}

/* Centering the Hamburger + Desktop Menu Group */
.kotaki-center-group {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Centers the entire group */
}

.logo-img { height: 50px; }

/* Desktop Menu Links */
.kotaki-menu-desktop {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: flex;
  gap: 24px;
}

.kotaki-menu-desktop .nav-link {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

/* --- Hamburger Icon --- */
.custom-toggler.navbar-toggler {
  display: block !important; /* Always show the button */
  border: none;
  padding: 0;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* --- THE DROPDOWN LIST --- */
/* FIX: Force hidden by default unless it has the .show class */
.collapse:not(.show) {
  display: none !important;
}

.navbar-collapse#kotakiNav {
  background: #424242; /* Dark background */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 10000;
}

/* FIX: Vertical Stacking & Removing Bullets */
.kotaki-vertical-list {
  list-style: none !important; /* Removes bullets */
  padding: 0 !important;      /* Removes indent */
  margin: 0;
  display: flex !important;
  flex-direction: column !important; /* Forces vertical stacking */
}

.kotaki-vertical-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}

.kotaki-vertical-list li:last-child { border-bottom: none; }

.kotaki-vertical-list a {
  color: #ffffff;
  padding: 12px 0;
  display: block;
  text-decoration: none;
  font-size: 14px;
}

/* Join Button */
.join-btn {
  background: #f4b400;
  color: #000;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 1200px) {
  .kotaki-header { padding: 10px 40px; }
}

@media (max-width: 991px) {
  .kotaki-header { padding: 10px 20px; }
  
  /* Reset centering for mobile so items fit naturally */
  .kotaki-center-group {
    position: static;
    transform: none;
    margin-left: auto; /* Push hamburger to the right near logo */
  }

  .navbar-collapse#kotakiNav {
    position: relative;
    left: 0;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }
}