/* Blog Filter Section - Contains search and category filter */
.blog-filter-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* Search Bar Wrapper */
.blog-search-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Search Input Container */
.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
}

/* Search Input Field */
.search-input-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-size: 15px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  outline: none;
  color: #333;
}

.search-input-wrapper input:hover {
  border-color: #ccc;
  background: #fff;
}

.search-input-wrapper input:focus {
  border-color: #014E9A;
  background: #fff;
  box-shadow: 0 4px 15px rgba(1, 78, 154, 0.15);
}

.search-input-wrapper input::placeholder {
  color: #999;
  font-size: 14px;
}

/* Search Icon */
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-input-wrapper input:focus ~ .search-icon {
  color: #014E9A;
}

/* Clear Button */
.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #e0e0e0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
  font-size: 12px;
}

.search-clear:hover {
  background: #d0d0d0;
  color: #333;
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .blog-filter-section {
    gap: 15px;
    margin-bottom: 30px;
  }

  .search-input-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  .search-input-wrapper input {
    padding: 12px 45px 12px 40px;
    font-size: 14px;
  }

  .search-icon {
    left: 22px;
    font-size: 14px;
  }

  .search-clear {
    width: 28px;
    height: 28px;
    right: 16px;
    font-size: 11px;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .blog-filter-section {
    gap: 12px;
    margin-bottom: 25px;
  }

  .search-input-wrapper {
    padding: 0 5px;
  }

  .search-input-wrapper input {
    padding: 10px 40px 10px 38px;
    font-size: 14px;
    border-width: 1.5px;
  }

  .search-icon {
    left: 18px;
    font-size: 14px;
  }

  .search-clear {
    width: 26px;
    height: 26px;
    right: 11px;
    font-size: 10px;
  }
}
