* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Source Sans 3";
}

body {
  background: #ffffff;
}

.navbar {
  background: #ffffff;
  padding: 28px 80px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 24px;
  font-weight: 600;
  color: #243a5e;
  text-decoration: none;
}

.navbar-logo span {
  color: #cd684a;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link,
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #4a5565;
  text-decoration: none;
  position: relative;
}

.nav-link.active,
.dropdown-toggle.active {
  color: #243a5e;
}

.nav-link.active::after,
.dropdown-toggle.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: 2px;
  background: #243a5e;
}

.dropdown {
  position: relative;
}

.arrow {
  font-size: 12px;
}

.dropdown-menu {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
  z-index: 10000;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 14px 20px;
  text-decoration: none;
  color: #1f2937;
}

.dropdown-item:hover {
  background: #f3f4f6;
}

.dropdown-item.active {
  background: #1f2a44;
  color: #fff;
}

.navbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mobile-actions {
    display: none;
  }

.btn {
  padding: 10px 36px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.login-btn {
  background: #243a5e;
  color: #fff;
}

.signup-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #243a5e;
}

/* Hamburger */
.hamburger-btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .navbar {
    padding: 24px 40px;
  }
}

/* Mobile and tablets*/
@media (max-width: 1024px) and (pointer: coarse)  {

  .hamburger-btn {
    display: block;
  }

  .navbar {
    position: relative; 
    z-index: 1000;
  }

  .navbar-container {
    flex-wrap: wrap;
  }

  .navbar-actions {
    display: none;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;             
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px;
    display: none;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }

  .navbar-menu.show {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    width: 100%;
  }

  .mobile-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
  }

  .mobile-actions .btn {
    width: auto;
    padding: 10px 56px;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    font-size: 20px;
  }
}


/* Overlay modal */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.auth-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 58, 94, 0.75);
  backdrop-filter: blur(2px);
}

.auth-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100vh;
  border-radius: 16px;
  overflow: hidden;
  z-index: 2;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 6px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

.auth-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* User Greeting in Navbar */
.user-greeting {
    font-size: 16px;
    font-weight: 600;
    color: #243a5e;
    margin-right: 15px;
}

@media (max-width: 1024px) {
  .user-greeting {
      margin-right: 0;
      margin-bottom: 10px;
  }
}

/* Navbar Flash Messages */
.navbar-flash-container {
    width: 100%;
    margin-top: 10px; /* Space from navbar content */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.navbar-flash-container .alert {
    width: 100%; 
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 5px;
}
.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.alert-info {
    background-color: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
