/* ===== NAVBAR ANNOUNCEMENT BADGE ===== */
.navbar-announcement-badge {
  background: #ff4444;
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-left: 8px;
  padding: 0 6px;
}
/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 5% 0 0%;
  background: #203147;
  z-index: 1000;
  border-radius: 0 0 40px 40px; /* Smooth bottom curve */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px !important;
}

/* ===== Logo ===== */
.brand-text {
  font-size: 2.2rem;
  color: #f7a600;
  font-family: 'Brush Script MT', cursive;
  font-weight: bold;
  white-space: nowrap;
  margin: 0;
  text-decoration: none; /* ← removes underline */
  transition: all 0.3s ease;
}

/* ===== Mobile User Icon (Right side) ===== */
.nav-user-mobile-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: none;
  text-decoration: none;
  white-space: nowrap;
}

.nav-user-mobile-right:hover {
  background-color: transparent;
}

.nav-user-mobile-right:active,
.nav-user-mobile-right:focus {
  background-color: transparent;
  box-shadow: none;
  outline: none;
}

.nav-user-mobile-right i {
  font-size: 1.2rem;
  color: #f7a600;
}

.nav-username-mobile {
  font-size: 0.8rem;
  font-weight: 500;
  color: #f7a600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Nav Links (Left-aligned) ===== */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 10px 0 0 2rem;
  padding: 0;
  justify-content: flex-start;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: #f7a600;
  transition: width 0.3s ease;
}

.navbar ul li a:hover {
  color: #f7a600;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* ===== Right Buttons ===== */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-btn {
  background: #f7a600;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: none;
}

.menu-btn {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: #f7a600;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Custom styles for navbar toggler */
.navbar-toggler {
  width: 35px;
  height: 35px;
  padding: 4px;
  border: none;
  border-radius: 5px;
  background-color: transparent;
}

.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
  border: none !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(56%) sepia(100%) saturate(1000%) hue-rotate(15deg) brightness(100%);
}

/* ===== USER INFO ===== */
.user-info {
  display: flex;
  align-items: center;
}

/* User Link */
.nav-profile-link {
  background: transparent !important;
  border: none !important;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-profile-link:hover {
  color: #f7a600;
}

/* Avatar beside username */
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f7a600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
  display: none !important;
  position: absolute;
  background-color: #203147 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  min-width: 150px;
  z-index: 2000; /* raise above hero or other positioned elements */
  padding: 0 !important;
  pointer-events: auto; /* ensure clickable */
}

.dropdown-menu.show {
  display: block !important;
  animation: fadeIn 0.12s ease;
}

/* Ensure proper positioning context for dropdown toggler */
.dropdown { position: relative; }

.dropdown-item {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
  background-color: #2a3a4a !important;
  margin: 2px 4px;
}

.dropdown-item:hover {
  background-color: #f7a600 !important;
  color: #203147 !important;
}

/* ===== OFFCANVAS STYLES ===== */
.offcanvas {
  background-color: #203147 !important;
  color: white;
  width: 280px !important; /* Fixed width, not full width */
  margin-top: 0; /* Stick to top edge */
  margin-left: 0; /* Stick to left edge */
  margin-bottom: 0; /* Stick to bottom edge */
  border-radius: 0; /* Remove rounded corners */
  box-shadow: none;
  height: 100vh; /* Full viewport height */
}

.offcanvas-header {
  border-bottom: 1px solid #f7a600;
  padding: 1rem;
}

.offcanvas-title {
  color: #f7a600;
  font-weight: bold;
}

.btn-close {
  filter: invert(1);
}

.offcanvas-body {
  padding: 1rem;
}

.offcanvas-body .navbar-nav {
  gap: 0 !important;
}

.offcanvas-body .navbar-nav .nav-item {
  margin-bottom: 8px;
}

.offcanvas-body .navbar-nav .nav-link,
.offcanvas-body .navbar-nav .nav-link button {
  color: white;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(247, 166, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: 8px;
}

.offcanvas-body .navbar-nav .nav-link:hover,
.offcanvas-body .navbar-nav .nav-link button:hover {
  color: #f7a600;
  text-shadow: 0 0 8px rgba(247, 166, 0, 0.5);
}

.offcanvas-body .navbar-nav .nav-link i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  color: #f7a600;
}

.offcanvas-body .login-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 12px;
  font-size: 1rem;
}

.offcanvas-body .nav-profile-link {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  margin-top: 1.5rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

/* ===== MOBILE USER PROFILE SECTION ===== */
.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 10px;
  background-color: rgba(247, 166, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
}

.mobile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f7a600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.mobile-user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f7a600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-email {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-divider {
  border-color: rgba(247, 166, 0, 0.3);
  margin: 15px 0;
}

/* ===== RESPONSIVE STYLES ===== */

/* Medium screens */
@media (max-width: 992px) {
  .navbar ul {
    gap: 1.5rem;
  }

  .navbar ul li a {
    font-size: 1rem;
  }

  .login-btn {
    padding: 8px 14px;
    font-size: 0.95rem;
  }

  .nav-avatar {
    width: 32px;
    height: 32px;
  }
}

/* Small screens / mobile */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 3%;
  }

  .nav-buttons {
    order: 2;
  }

  .menu-btn {
    display: block;
  }

  .login-btn {
    width: 100%;
    text-align: center;
  }

  .nav-profile-link {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .brand-text {
    font-size: 1.6rem;
  }

  .navbar ul li a {
    font-size: 0.95rem;
  }

  .login-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

