/* Enhanced Search Box Styles */
.search-box .sidebar-title {
  margin-bottom: 20px;
  text-align: center;
}

.search-box .sidebar-title h4 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  position: relative;
  display: inline-block;
}

.search-box .sidebar-title h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #024f9a);
  border-radius: 3px;
}

.search-box .form-group {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* Base Input Styles */
.search-box input[type='search'],
.search-box input[type='text'] {
  width: 100%;
  height: 55px;
  padding: 0 60px 0 20px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* RTL Adjustments for Input */
html[dir='rtl'] .search-box input[type='search'],
html[dir='rtl'] .search-box input[type='text'] {
  padding: 0 20px 0 60px !important;
}

.search-box input[type='search']:focus,
.search-box input[type='text']:focus {
  border-color: #3498db;
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15);
  outline: none;
}

/* Button Styles */
.search-box button {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 45px !important;
  height: 45px !important;
  background: linear-gradient(135deg, #3498db, #024f9a) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 5;
}

/* RTL Adjustments for Button */
html[dir='rtl'] .search-box button {
  right: auto !important;
  left: 5px !important;
}

.search-box button:hover {
  background: linear-gradient(135deg, #2980b9, #024f9a) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Icon Centering */
.search-box button span,
.search-box button i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Search Section Container */
.search-section {
  margin-bottom: 40px;
  padding: 25px 0;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .search-box input[type='search'],
  .search-box input[type='text'] {
    height: 50px;
    font-size: 15px;
  }

  .search-box button {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
}
