/* === Desktop Header (main-header) === */
.main-header {
  background: #ffffff;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  position: sticky;
  z-index: 100;
}

.logo img {
  height: 60px;
  vertical-align: middle;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Always apply padding */
nav a {
  color: #0e4037;
  text-decoration: none;
  font-weight: normal;
  padding: 8px;
  border-radius: 20px;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  color: #f96302;
  background-color: #fde0d2;
}


/* Button */
.btn {
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 14px;
  margin-left: 10px;
}

.login-signup-btn {
  background: linear-gradient(to right, #f7941d, #E0663C);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
}

.login-signup-btn:hover {
  background: #E0663C;
  color: #fff;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-radius: 5px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a i {
  margin-right: 10px;
  color: #f96302;
  width: 20px;
}

.dropdown-content a {
  color: #333;
  padding: 10px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #fff0e6;
  color: #f96302;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.dropdown-content a i,
.dropdown-content button i {
  margin-right: 10px;
  color: #f96302;
  width: 20px;
}

.mr-1 {
  margin-right: 10px;
  font-size: 1.2rem;
}

.dropdown-content a,
.dropdown-content button.logout-btn {
  color: #333;
  padding: 10px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  font-size: inherit;
}

.dropdown-content a:hover,
.dropdown-content button.logout-btn:hover {
  background-color: #fff0e6;
  color: #f96302;
}


/* === Mobile Header === */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.mobile-logo img {
  height: 80px;
  width: 80px;
  margin-top: 10px;
}
@media(max-width:992px){
  .mobile-logo img {
  height: 80px;
  margin-top: 10px;
  width: 100%;
}
}

.menu-btn {
  background: none;
  border: 1px solid #E0663C;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-btn span {
  width: 24px;
  height: 3px;
  background: #E0663C;
  border-radius: 2px;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: none;
}

.mobile-menu.open {
  transform: translateX(0);
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.close-btn {
  background: none;
  border: 1px solid #E0663C;
  border-radius: 6px;
  font-size: 2.0rem;
  color: #E0663C;
  padding: 4px 10px;
  cursor: pointer;
  margin-right: 18px;
}

.menu-list {
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu-list li {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 18px;
  color: #333;
}

.menu-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
}
@media(max-width:992px){


.menu-footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
}
}

.login-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}

.footer-btn {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-btn.donor {
  background: linear-gradient(to right, #f7941d, #E0663C);
  color: white;
  border: none;
}

.footer-btn.volunteer {
  background: white;
  color: #E0663C;
  border: 2px solid #E0663C;
}

.footer-btn.donor:hover {
  background: #E0663C;
}

.footer-btn.volunteer:hover {
  background: #E0663C;
  color: white;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1099;
}

.mobile-menu.open~.menu-overlay {
  display: block;
}

/* === Mobile Menu Auth Buttons (Custom Classes) === */
.footer-btn.profile-btn {
  background: linear-gradient(to right, #f7941d, #E0663C);
  color: white;
  border: none;
}

.footer-btn.logout-btn {
  background: white;
  color: #E0663C;
  border: 2px solid #E0663C;
}

/* Hover Effects */
.footer-btn.profile-btn:hover {
  background: #E0663C;
}

.footer-btn.logout-btn:hover {
  background: #E0663C;
  color: white;
}


/* === Media Queries === */
@media (max-width: 991px) {
  .main-header {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }
}

@media (min-width: 992px) {

  .mobile-header,
  .mobile-menu,
  .menu-overlay {
    display: none !important;
  }

  .main-header {
    display: flex !important;
  }
}
