/* Navbar */
.navbar {
  padding: 0.7rem 0;
  background: #162447 !important; /* Biru navy tua */
  box-shadow: 0 2px 8px rgba(16, 32, 75, 0.1);
}

.navbar-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ffd700;
  display: block;
}

.navbar-brand {
  align-items: center !important;
  gap: 1rem !important;
}

.bem-title-navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 54px; /* sama dengan logo */
  line-height: 1.1;
  font-size: 1rem;
}

.bem-title-navbar .bem-line-1,
.bem-title-navbar .bem-line-2 {
  font-weight: 700;
  color: #c7c7c7;
}

.bem-title-navbar .bem-line-3 {
  font-weight: 400; /* Tidak bold */
  color: #e0e6ed; /* Biru-putih keabu-abuan, lebih soft */
  font-size: 0.93em; /* Sedikit lebih kecil */
  margin-top: 4px;
  letter-spacing: 1px;
  display: inline-block;
}

.navbar-nav .nav-link {
  color: #e0e6ed !important; /* Biru-putih keabu-abuan */
  font-weight: 500;
  margin: 0 0.7rem;
  transition: color 0.2s, background 0.2s;
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #ffd700 !important;
  background: transparent !important;
}

.navbar-toggler {
  border-color: #ffd700;
}

.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(255,215,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Custom Hamburger Mobile */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 0.4rem 0.7rem;
  outline: none;
  box-shadow: none;
}

.hamburger {
  display: inline-block;
  width: 32px;
  height: 28px;
  position: relative;
  cursor: pointer;
  z-index: 1051;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #ffd700;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transition: all 0.28s cubic-bezier(.4,2.08,.55,.44);
}

.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 20px; }

/* Animasi saat aktif */
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
  background: #fff;
}
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
  background: #fff;
}

/* Hover effect */
.custom-toggler:hover .hamburger span {
  background: #fff;
}

/* Footer */
footer {
  background: #162447;
  color: #ffd700;
  text-align: center;
  padding: 1.2rem 0;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-top: 2rem;
}

footer a {
  color: #ffd700;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

.custom-footer {
  background: #181b23;
  color: #ffd700;
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
  margin-top: 0;
}

.footer-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;

  border: 2px solid #ffd700;
}

.footer-social {
  display: flex;
  gap: 1.1rem;
  margin: 0.5rem 0;
}

.footer-social img {
  width: 30px;
  height: 30px;
  filter: grayscale(0) brightness(1) drop-shadow(0 0 2px #ffd700);
  transition: filter 0.2s;
}

.footer-social a:hover img {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 6px #ffd700);
}

.footer-copy {
  color: #e0e6ed;
  font-size: 0.97rem;
  margin-top: 0.2rem;
  text-align: center;
}

.footer-divider {
  border: none;
  border-top: 2px solid #ffd700;
  width: 100%;
  margin: 0 0 0 0;
  opacity: 0.7;
  background: #181b23;
  height: 0;
  display: block;
}

@media (max-width: 600px) {
  .navbar-logo {
    width: 38px;
    height: 38px;
  }
  .navbar-brand {
    gap: 0.5rem !important;
  }
  .bem-title-navbar {
    height: 38px;
    font-size: 0.93rem;
    line-height: 1.1;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0 0.5rem;
    text-align: center;
  }
  .footer-logo img {
    width: 38px;
    height: 38px;
  }
  .footer-logo {
    font-size: 0.97rem;
  }
  .footer-social img {
    width: 24px;
    height: 24px;
  }
  .footer-copy {
    font-size: 0.93rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    background: #162447;
    border-radius: 0 0 12px 12px;
    padding: 0.7rem 0.5rem;
    margin-top: 0.5rem;
  }
  .nav-link,
  .dropdown-item {
    color: #ffd700 !important;
    font-size: 1rem;
    margin: 0.2rem 0;
  }
  .nav-link.active,
  .dropdown-item.active {
    color: #fff !important;
    background: #ffd70033 !important;
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  .bem-title-navbar.d-none.d-md-block {
    display: none !important; 
  }
  .bem-title-navbar.d-block.d-md-none {
    display: block !important;
    color: #ffd700;
    font-weight: 700;
    font-size: 1rem;
    height: auto;
    line-height: 1.1;
  }
}

.dropdown-menu {
  background: #162447;
  border-radius: 14px;
  border: none;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(16, 32, 75, 0.18);
  padding: 0.5rem 0;
  margin-top: 0.7rem !important;
  animation: fadeInDropdown 0.25s;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: #e0e6ed;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  margin: 0 0.3rem;
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:hover {
  color: #ffd700;
  background: #181b23;
}

.dropdown-toggle::after {
  margin-left: 0.5em;
  vertical-align: middle;
  border-top: 0.45em solid #ffd700;
  border-right: 0.35em solid transparent;
  border-left: 0.35em solid transparent;
  border-bottom: 0;
  content: "";
  display: inline-block;
}

.dropdown-menu-dark {
  background-color: #162447;
  border-radius: 10px;
  border: none;
}

.dropdown-menu-dark .dropdown-item {
  color: #e0e6ed;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
  color: #ffd700;
  background-color: #181b23;
}
