.custom-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  padding: 0.6rem 1rem;
  transition: background 0.3s ease;
}

.hero-section {
  padding-top: 80px;
}

.container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 70px;
  border-radius: 10px;
  margin-top: -18px;
}

.brand-text {
  line-height: 1.1;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.nav-center {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color 0.3s, transform 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: #fa7e7e;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0.25rem 0.5rem;
  color: #fff;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: none !important;
}

.navbar-toggler i {
  margin: 6px;
}

.cta-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-right: 5px;
}

.cta-icons li {
  margin: 0;
}

.cta-icons .nav-link {
  font-size: 20px;
  color: #fff !important;
  transition: transform 0.2s;
}

.cta-icons .nav-link:hover {
  transform: scale(1.2);
}

.right-logo {
  height: 50px;
  border-radius: 5px;
}

.collapse-logo {
  display: none;
  margin-top: 1rem;
}

.right-logo-collapse {
  height: 45px;
}

.desktop-only {
  display: flex;
}

.nav-center-icons,
.collapse-logo {
  display: none;
}

@media (max-width: 1199.98px) {
  .brand-logo {
    height: 60px;
    margin-top: -14px;
  }

  .brand-text {
    font-size: 16px;
  }

  .right-logo {
    height: 45px;
  }

  .nav-link {
    font-size: 15px;
  }
}

@media (max-width: 991.98px) {
  .container-fluid {
    flex-wrap: wrap;
  }

  .desktop-only {
    display: none !important;
  }

  .nav-center-icons,
  .collapse-logo {
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  .collapse-logo {
    margin-bottom: 1rem;
  }

  .collapse.show {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border-radius: 8px;
    padding: 1rem;
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }

  .nav-center {
    flex-direction: column;
    align-items: center;
  }

  .nav-center .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .custom-navbar {
    padding: 0.5rem 0.75rem;
  }

  .brand-logo {
    height: 55px;
    margin-top: -12px;
  }

  .brand-text {
    font-size: 15px;
  }

  .right-logo-collapse {
    height: 40px;
  }

  .nav-link {
    font-size: 14px;
  }

  .collapse.show {
    padding: 1rem 0.5rem;
  }

  .nav-center-icons li {
    margin: 0.4rem;
  }
}

.sidebar {
  display: none;
}

@media (max-width: 991.98px) {

  #mainNavbar {
    display: none !important;
  }

  .sidebar {
    display: block;
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(to bottom, #6e6e6e, #a0a0a0);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    transition: left 0.4s ease;
    z-index: 1050;
    padding-top: 70px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sidebar ul li {
    margin: 0;
    padding: 0;
  }

  .sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 17px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
  }

  .sidebar ul li a i {
    margin-right: 12px;
    font-size: 20px;
  }

  .sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }

  .sidebar ul li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 26px;
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.2);
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .sidebar-icons {
    position: absolute;
    bottom: 30px;
    width: 100%;
  }

  .sidebar-icons a {
    color: #f1f1f1;
    font-size: 24px;
    transition: transform 0.2s, color 0.2s;
  }

  .sidebar-icons a:hover {
    transform: translateY(-2px);
    color: #ffcc00;
  }

  .navbar-toggler-icon {
    display: none !important;
  }
}