/* User Dropdown Styles */
.user-with-btn {
  position: relative;
}

.user-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.user-icon:hover {
  background-color: #e9ecef;
}

.user-icon i {
  font-size: 18px;
  color: #495057;
}

/* Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  border: 1px solid #e9ecef;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.user-dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.user-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.user-dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.user-dropdown-item i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Different icon colors for visual distinction */
.user-dropdown-item:nth-child(1) i { color: #000000; }
.user-dropdown-item:nth-child(2) i { color: #000000; }
.user-dropdown-item:nth-child(3) i { color: #000000; }
.user-dropdown-item:nth-child(4) i { color: #000000; }
.user-dropdown-item:nth-child(5) i { color: #000000; }
.user-dropdown-item:nth-child(6) i { color: #000000; }


.user-dropdown-item:nth-child(1):hover i { color: #007bff; }
.user-dropdown-item:nth-child(2):hover i { color: #ffc107; }
.user-dropdown-item:nth-child(3):hover i { color: #dc3545; }
.user-dropdown-item:nth-child(4):hover i { color: #28a745; }
.user-dropdown-item:nth-child(5):hover i { color: #6f42c1; }
.user-dropdown-item:nth-child(6):hover i { color: #6c757d; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-dropdown {
    right: -10px;
    min-width: 180px;
  }
}

/* Overlay for mobile to close dropdown when clicking outside */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
}

.dropdown-overlay.show {
  display: block;
}
.blog-page.search.page .blog-post {
    gap: 20px;
    padding: 20px;
}