Introduction

In today’s modern era, environmental concerns are gaining increased attention due to population growth and intensified human activities. Among the most pressing environmental issues, water pollution stands out as it profoundly impacts water quality and aquatic ecosystems. The escalating usage of chemicals, particularly in industries such as textiles, fertilizers, and detergents, has become a major contributor to the current pollution crisis (Ahmad et al. 2019; Ibrahim et al. 2021). Dyes from various sources contain hazardous substances that persist in the environment, with some dyes breaking down into secondary pollutants that pose carcinogenic risks (Ozdemir et al. 2013).

Textile dyes like Coomassie Brilliant Blue R-250 (CBB) (Fig. 1a) often find their way into aquatic environments, where their lack of natural degradation under typical ecological conditions poses significant threats. Their presence not only alters the aesthetic appeal of water bodies but also leads to extensive harm in aquatic ecosystems by hindering light penetration and causing widespread poisoning (Altikatoglu 2011; Abdel-Ghani et al. 2017).

Fig. 1
figure 1

Chemical structures of a CBB and b PIs

In addition to colored dye substances, phosphate waste (PIs) (Fig. 1b) is another concerning chemical generated from fertilizer industries (Dolar et al. 2011) and excessive detergent use (Onyango et al. 2007). Soluble nutrient species from phosphate are significant pollutants, contributing to aquatic eutrophication, which fosters the proliferation of aquatic plants and algae while diminishing dissolved oxygen levels (Hamoudi et al. 2013; Yang et al. 2013). Considering the detrimental effects of unregulated discharge of textile dyes like CBB and PIs into the environment, particularly water bodies, proactive measures should be taken to treat wastewater containing these chemicals before releasing it into the environment.

Currently, adsorption methods are widely recognized and proven effective in addressing water pollution. Adsorption stands out as a preferred method due to its high efficiency, cost-effectiveness, and ease of operation. Nevertheless, conventional adsorbent materials often come with inherent limitations, such as low adsorption efficiency, high production costs, restricted pH interaction range, and limited applicability (Huang et al. 2017; Leo et al. 2011; Elwakeel et al. 2020; Elgarahy et al. 2021). Hence, there is an urgent imperative to develop efficient adsorbents capable of removing high-concentration chemical waste like CBB dyes and PIs from wastewater in an economically viable manner, while also being versatile across a broad pH spectrum (Nodeh et al. 2017; Buhani et al. 2023a).

Numerous endeavors have been undertaken to explore adsorbents derived from inexpensive, readily available materials that are naturally easy to produce and do not generate hazardous by-products for the environment. Such materials may include algal biomass (Buhani et al. 2021a) or biomass sourced from agricultural by-products (Yadav et al. 2015; Xu et al. 2010). The utilization of algal biomass as an adsorbent holds significant promise owing to its wide availability and low production costs. Several studies have reported that algae, whether in living or biomass form, exhibit the capacity to adsorb chemical compounds (Flores-Chaparro et al. 2017; Lee et al. 2022).

However, the efficacy of algal biomass in binding chemical compounds is subject to certain limitations, such as its diminutive size, low density, and susceptibility to degradation by other microorganisms (Haris and Ramelow, 1990). Furthermore, the utility of algal biomass has been largely confined to adsorbing positively charged chemical compounds like metal ions and cationic dyes. This constraint stems from the presence of functional groups in algal biomass, including polysaccharides, proteins, amino, hydroxyl, carboxyl, sulfate ions, and others (Sayadi et al. 2018; Sarwa and Verma 2013).

Surface modification of the adsorbent has emerged as an intriguing strategy to enhance the adsorption properties of biomaterials for the efficient removal of both organic and inorganic pollutants (Adegoke et al. 2023; Buhani et al. 2019). Therefore, to broaden the applicability of algal biomass as an adsorbent for anionic chemical substances, modification is imperative using cationic agents to augment the number of active sites on the positively charged surface of algal biomass.

One effective method of surface modification of algal biomass involves the utilization of cationic surfactants, which can render the adsorbent rich in positive charges (Buhani et al. 2023b). Examples of such surfactants include cetyl trimethyl ammonium bromide (CTABr), hexadecyltrimethylammonium bromide (HDTMA-Br), and dodecyl benzyl dimethyl ammonium chloride (Jing et al. 2011; Yusof and Malek 2009; Bingol et al. 2009). Algal biomass adsorbents typically bear negative charges and possess active alkali or alkaline earth cation exchange groups. These active groups serve as charge balancers that can undergo exchange with other cations, such as cationic surfactants (Zhan et al. 2011).

To enhance the adsorption capacity of algal biomass as an adsorbent for anionic adsorbates such as CBB dyes and PIs, this study has modified the biomass of the macro-alga Sargassum duplicatum (SD-Alg) using the cationic surfactant modifying agent cethyltrimethylammonium chloride (CTACl). SD-Alg biomass belongs to the brown algae group (Phaephyceae) containing polysaccharides, polyphenols, and functional groups such as alcohol, carboxylate, ether, amine, amide, and fucoidan. These contents and functional groups make SD-Alg have significant potential for use as an adsorbent (Saldarriaga-Hernandez et al. 2020) and can be modified with CTACl surfactant to produce adsorption sites with positive charges through cation exchange reactions (Buhani et al. 2021b).

The modified adsorbent, SD-Alg-CTA, has been characterized using FTIR spectrometry and SEM–EDX to determine the functional group characteristics, morphology, and constituent elements of the adsorbent. Adsorption tests were conducted to analyze adsorption parameters, including kinetic and isotherm aspects, adsorption mechanisms, and the adsorbent’s ability to be reused. SD-Alg-CTA adsorbent can be developed as an effective material for adsorbing chemical waste, whether cationic, neutral, or anionic, by leveraging the active groups from algal biomass and the cation exchange properties of CTACl. Therefore, the results of this study could be 1 solution to address the spread of dyes and other hazardous chemicals in the environment, especially in preventing increasing water pollution.

Materials and methods

Materials

In this study, the SD-Alg biomass used originates from Sebalang Sea, Lampung Province, Indonesia. The chemicals used are of analytical reagent (AR) grade from Merck, including cationic surfactant CTACl (25 wt%), CBB dye (98%), KH2PO4 (85%), KNO3 (99.3%), KCl (99.9%), NaCl (99.8%), Na2EDTA (99.9%), NaNO3 (99%) M, HCl (37%), NaOH (99%), H2SO4 (97%), (NH4)6Mo7O24 (99%), SnCl2 (98%), glycerol (85%), citrate, phosphate buffer, and methylene blue.

The chemical composition of SD-Alg biomass includes analysis of moisture content, ash, fat, protein, and carbohydrates determined based on proximate analysis and carbohydrates by the difference method. The characterization of adsorbent was conducted using SEM–EDX (Zeiss MA10, SEM–EDX, Gottingen, Germany) with the aim of understanding the surface morphology and identifying the constituent elements. The identification of adsorbent functional groups was performed through characterization using a Fourier-transform infrared spectrometer (Prestige-21 Shimadzu, Japan). The crystallinity level of the adsorbent was analyzed using XRD (Rigaku Benchtop Miniplex 600, Japan).

The surface area of the adsorbent is determined using the methylene blue adsorption method (Abd El-Ghaffar et al. 2009). The following equation, Eq. 1, is used to calculate the surface area of the adsorbent.

$${\text{A}}_{{\text{s}}} = \frac{{10^{ - 20} }}{{{\text{M M}}_{{\text{W}}} }}{\text{ G N}}_{{{\text{AV}}}} \phi$$
(1)

whereas is the adsorbent surface area in m2 g−1, G the amount of methylene blue adsorbed (g) based on Langmuir adsorption capacity, NAv the Avogadro’s number (6.02 × 1023), Ø the methylene blue molecular cross-Sect. (197.2 Å), MW the molecular weight of methylene blue (373.9 g mol−1) and M is the mass of adsorbent (g).

Furthermore, the surface charge was determined by analyzing the point of zero charge (pzc) of the adsorbent, determined using the solid addition method (Buhani et al. 2023b). A total of 0.1 g of adsorbent was mixed into a tube containing 20 mL of 0.1 M NaNO3. The initial pH was varied within the range of 3 to 12, adjusted using standard solutions of 0.1 M HCl for acidic conditions and 0.1 M NaOH for basic conditions. The solution was stirred using a shaker for 48 h. The supernatant was then measured for its pH. The pHpzc value was obtained from the plot of initial solution pH against supernatant pH.

Preparation of SD-Alg-CTA adsorbent

The modification procedure of SD-Alg-CTA is an adaptation of the method reported by (Guler et al. 2016; Buhani et al. 2021b). The modification process of SD-Alg involves the following steps: (1) SD-Alg biomass was initially washed with distilled water to remove impurities. (2) Subsequently, it was air-dried for 3 days and then oven-dried at 60 °C for 12 h. (3) The dried SD-Alg biomass is ground to a size of 100 mesh. (4) Then, 5 g of SD-Alg was mixed with a 1 M solution of NaCl (100 mL) in a reaction tube, stirred for 1 h, and left undisturbed for 24 h to enhance cation exchange capacity, resulting in SD-Alg-Na. (5) Separation of precipitate and filtrate is carried out. The obtained precipitate (SD-Alg-Na) was washed with distilled water until neutral pH is achieved, and then it was dried at room temperature. (6) Further, the creation of SD-Alg-CTA involved adding 2 g of SD-Alg-Na to a reaction tube containing 200 mL of CTACl solution with a concentration of 14 mmol L−1. The mixture was stirred with a magnetic stirrer at a speed of 100 rpm and a temperature of 50 °C for 4 h. (7) The obtained precipitate was rinsed with distilled water until achieving a neutral pH and then dried at room temperature. It was subsequently ground to a size of 100 mesh to produce the SD-Alg-CTA adsorbent.

Adsorption experiment

The adsorption study of CBB and PIs substances includes the determination of calibration curves, kinetic tests, adsorption equilibrium, and determination of the adsorption mechanism. To avoid possible interference, all adsorption tests were conducted under controlled conditions. The analyzed adsorption parameters include the influence of adsorption media, contact time, adsorbate concentration, as well as the adsorption mechanism and the repeated use of the adsorbent.

A 1000 mgL−1 stock solution of CCB dye and KH2PO4 as a source of PIs was prepared and further used to obtain standard solutions by diluting the appropriate stock solution. All adsorption experiments were conducted at a temperature of 27 °C. The adsorption study of CBB and PIs was carried out using the batch method. Parameters investigated include the determination of the optimum pH of the medium, kinetics, and adsorption isotherms. The standard curve between absorbance (A) and the concentration of dye substances and PIs (Co, mgL−1) was measured using a UV–Vis spectrophotometer (Agilent Cary 100, U.S.A) at the maximum absorption wavelength of CBB dye (λmax = 558 nm) and PIs (λmax = 698 nm).

Mono-component adsorption for CBB or PIs solutions was performed by mixing the adsorbent and adsorbate at varying pH values between 3 and 12, contact times between 0 and 150 min, and adsorbate concentrations ranging from 0 to 300 mgL−1. For bi-component adsorption (mixture of CBB or PIs dyes), it was conducted at the optimum pH and contact time obtained from the mono-component adsorption experiments with varying concentrations of the bi-component solution (0.01‒0.35 mmol L−1). The mono-component and bi-component adsorption processes were carried out in a shaker incubator at a temperature of 27 °C with a speed of 150 rpm. The mixture of filtrate and sediment was separated by centrifugation, and the filtrate was analyzed using a UV–Vis spectrophotometer. All adsorption experiments in this study were conducted with 3 repetitions. Specifically, for PIs, before analysis with a UV–Vis spectrophotometer, it was transformed into a phosphomolybdate ammonium complex by adding 20 mL of the PIs-containing solution to 20 mL of a molybdate reagent solution (2.5 g ammonium molybdate dissolved in 50 mL distilled water, then added 28 mL sulfuric acid). This solution was then added to a solution of SnCl2 (12.5 g SnCl2 in 50 mL glycerol) (Nodeh et al. 2017).

Adsorption studies were conducted to evaluate the influence of pH, contact time, and concentration on the removal of CBB and PIs by the adsorbent. The removal efficiency (%) and adsorption capacity at equilibrium conditions (qe) and at a specific time (qt) were calculated based on the Eqs. 24:

$${\text{Adsorption}}\left( \% \right) = \frac{{\left( {C_{o} - C_{t} } \right)}}{{C_{o} }} \times 100$$
(2)
$$q_{e} = \frac{{\left( {C_{o} - C_{e} } \right)}}{m} \times V$$
(3)
$$q_{t} = \frac{{(C_{o} - C_{t} )}}{m} \times V$$
(4)

where Co, Ce, and Ct respectively represent the initial concentration, equilibrium concentration, and concentration at time (t) (mg L−1), V represents the volume of the solution (L) containing CBB or PIs, and m describes the mass of the adsorbent (g).

Sequential desorption

To determine the dominant interactions occurring between CBB and PIs with the adsorbent, the first step involves the adsorption process of both adsorbates under all optimal adsorption conditions (pH, contact time, and optimum concentration). Subsequently, the adsorption interactions were determined through the method of sequential desorption. The trapping mechanisms were identified through desorption using deionized water as the eluent, ion exchange with a 0.1 M KNO3, electrostatic interactions with 0.1 M HCl, and complex formation with a 0.1 M Na2EDTA solution.

Reuse of adsorbent

The ability of the adsorbent to be reused was investigated by conducting adsorption experiments under optimal conditions. CBB or PIs that have been adsorbed by SD-Alg-CTA were released using an eluent consisting of a 50 mL solution of 0.1 M HCl. The adsorption–desorption process was repeated several times until the adsorption percentage of CBB or PIs is less than 60%.

Results and discussion

Characteristics of adsorbents SD-Alg, SD-Alg-Na, and SD-Alg-CTA

Surface modification of SD-Alg begins by interacting SD-Alg with Na+ ion exchange agents, resulting in SD-Alg-Na aimed at enhancing cation exchange capacity. The next step involves cation exchange reactions with CTACl to produce SD-Alg-CTA. The SD-Alg biomass used in this study exhibited proximate content as follows: ash (2.18%), moisture (30.2%), carbohydrates (64.57%), protein (2.24%), and fat (0.81%). Characterization of these 3 adsorbents was carried out by identification of adsorbent functional groups was performed using FTIR spectrometry and analyzing the surface morphology and quantification of the main constituent elements present in the adsorbent using SEM–EDX. Analysis using XRD is conducted to determine the level of crystallinity of the adsorbent, as well as the analysis of the surface area and charge of the adsorbent.

The success of cation exchange on SD-Alg with CTAC can be identified through changes in the FTIR spectra in SD-Alg-Na and SD-Alg-CTA. In SD-Alg (Fig. 2a), a broad FTIR peak is observed between 3700 and 3400 cm–1 associated with the OH bond of hydroxyl groups, and at a wavenumber of 3410.15 cm−1, there is a primary N–H group overlapping with the –OH group in SD-Alg (Kim et al. 2020). Then, there is an absorption at a wavenumber of 2931.80 cm−1, indicating the presence of C–H groups from a carbon chain (aliphatic) CH2 (Buhani et al. 2023a). The characteristic C = O group of carboxylic acid in SD-Alg is indicated by the absorption band at a wavenumber of 1620.21 cm−1. In Fig. 2b, which represents the spectrum of SD-Alg-Na, there is absorption at the same wavenumbers as SD-Alg and additional absorption at a wavenumber of 1419.61 cm−1, indicating the presence of O–Na groups (Na cation bonding with O in the carboxylate group), indicating the formation of SD-Alg-Na (Guler et al. 2016; Buhani et al. 2021b). Furthermore, in SD-Alg-CTA (Fig. 2c), all the characteristic FTIR spectrum features of SD-Alg appear, with an additional new absorption at a wavelength of 1342.46 cm−1, indicating the presence of C–H groups from the –CH3 group of CTACl (Guler et al. 2016; Buhani et al. 2023a).

Fig. 2
figure 2

FTIR Spectra of a SD-Alg, b SD-Alg-Na, c SD-Alg-CTA, d SD-Alg-CTA with CBB, and e SD-Alg-CTA with PIs

The adsorption results of SD-Alg-CTA on CCB (Fig. 2d) and PIs (Fig. 2e) exhibit spectra patterns relatively similar to SD-Alg-CTA (Fig. 2c). The presence of CBB adsorbed onto SD-Alg-CTA (Fig. 2d) is indicated by absorption in the region around 1200–800 cm−1 originating from O-S vibration (Escalona Platero et al. 1996). Furthermore, the IR spectrum of the adsorption results of SD-Alg-CTA with PiS (Fig. 2e) shows strong absorption around 1200–900 cm−1, indicating the presence of O-P vibration from phosphate ions (Jastrzębski et al. 2011). The presence of adsorbed CBB and PIs by SD-Alg-CTA is further identified through elemental constituent analysis using EDX.

Surface morphology analysis of the 3 adsorbents was conducted by observing the SEM (Fig. 3) results coupled with semi-quantitative analysis of the major constituent elements using EDX (Fig. 4 and Table 1). From the SEM analysis results, it can be observed that in SD-Alg (Fig. 3a), the surface morphology is quite homogeneous but not contrasting, while in SD-Alg-Na (Fig. 3b), the surface is non-homogeneous but more contrasting compared to the morphology of SD-Alg. In SD-Alg-CTA (Fig. 3c), it can be seen that the surface morphology tends to be more homogeneous and contrasting compared to SD-Alg and SD-Alg-Na. This indicates that a change in the surface morphology has occurred in SD-Alg-CTA due to the cation exchange interaction with CTACl. This is further supported by the EDX analysis results (Fig. 4 and Table 1), which show semi-quantitative data of the major constituent elements in the adsorbents before and after adsorption. In Fig. 4 and Table 1, it can be observed that there is an increase in the % of C and N elements in SD-Alg-CTA (Fig. 4c) compared to SD-Alg (Fig. 4a). The percentage of C and N elements in SD-Alg is 47.86 and 4.53%, respectively, and in SD-Alg-CTA, they become 58.06 and 6.10%, respectively. The increase in the % of C and N elements in SD-Alg-CTA is derived from the CTACl surfactant, indicating that the cation exchange reaction with Na+ ions has occurred, resulting in the formation of SD-Alg-CTA.

Fig. 3
figure 3

SEM of a SD-Alg, b SD-Alg-Na, c SD-Alg-CTA, d SD-Alg-CTA with CBB, and e SD-Alg-CTA with PIs

Fig. 4
figure 4

EDX spectra of a SD-Alg, b SD-Alg-Na, c SD-Alg-CTA, d SD-Alg-CTA with CBB, and e SD-Alg-CTA with PIs

Table 1 Data on the constituent elements in the adsorbent before and after adsorption of CBB and PIs from SD-Alg, SD-Alg-Na, and SD-Alg-CTA

The surface morphology of SD-Alg-CTA after adsorbing CBB (Fig. 3d) and PIs (Fig. 3e) shows more pronounced changes compared to SD-Alg-CTA before adsorption (Fig. 3c). This is also supported by the EDX data, which indicates an increase in the composition of elements within SD-Alg-CTA originating from the adsorbates CBB (Fig. 4d) and PIs (Fig. 4e). In the SD-Alg-CTA-CBB material (Fig. 4d and Table 1), there is an additional presence of S elements originating from CBB, while in the SD-Alg-CTA-PIs material (Fig. 4e and Table 1), there is an additional presence of P elements from PIs. The EDX analysis data aligns with the results of the IR analysis (Fig. 2d and 2e).

In Fig. 5, the differences in XRD diffraction patterns of SD-Alg, SD-Alg-Na, and SD-Alg-CTA are shown. From Fig. 5a, it can be observed that the XRD spectrum of SD-Alg exhibits several sharp peaks indicating its crystalline nature, with dominant mineral content derived from CaCO3 and KCl (Milledge et al. 2020). The XRD spectrum of SD-Alg-Na (Fig. 5b) and SD-Alg-CTA (Fig. 5c) both show an amorphous shape. This indicates ion exchange by Na+ ions in SD-Alg-Na and exchange with CTA+ ions in SD-Alg-CTA has altered its structure to an amorphous form (Guler et al. 2016).

Fig. 5
figure 5

XRD patterns of a SD-Alg, b SD-Alg-Na, and c SD-Alg-CTA

The surface area characteristics of the adsorbents obtained using the methylene blue adsorption method (Abd El-Ghaffar et al. 2009) on SD-Alg, SD-Alg-Na, and SD-Alg-CTA were found to be 147.58, 162.44, and 171.897 m2 g−1, respectively. From this data, it can be inferred that ion exchange on SD-Alg with Na+ ions result in SD-Alg-Na, and ion exchange of Na+ ions on SD-Alg-Na with CTA+ ions results in SD-Alg-CTAC, thereby increasing the surface area of the material. Furthermore, the analysis results of the pHPZC values of SD-Alg, SD-Alg-Na, and SD-Alg-CTA are as follows: 8.02, 8.00, and 7.03, respectively. Determination of the pHPZC value aims to understand the influence of pH on the surface charge of the adsorbent. The surface charge of the adsorbent will be negative at pH > pHPZC and positive at pH < pHPZC (Ai et al. 2011).

Effect of pH on the % adsorption of CBB and PIs

Figure 6 illustrates the influence of solution pH on the adsorption of CBB and PIs by the adsorbents SD-Alg, SD-Alg-Na, and SD-Alg-CTA. As depicted in Fig. 6, it can be observed that the % adsorption of CBB and PIs follows the sequence SD-Alg < SD-Alg-Na < SD-Alg-CTA. This indicates that the modification of SD-Alg with the surfactant CATCl has successfully increased the % adsorption of anionic substances such as CBB and phosphate ions. These results align with the research reported by Buhani et al. 2023b, stating that anionic dyes like methyl orange are more adsorbed by adsorbents with a positive surface resulting from electrostatic interactions between positive and negative charges.

Fig. 6
figure 6

Effect of solution pH parameters on the adsorption percentage of a CBB and b PIs (adsorbent mass: 0.1 g; solution volume: 25 mL; C0: 10 mg L–1; temperature: 27 ± 1 °C; agitation speed: 150 rpm; time: 60 min)

The data in Fig. 6a and b indicate that CBB and PIs are adsorbed most significantly by SD-Alg-CTA at pH 5 (87.54%) and pH 4 (96.75%), respectively. Increasing the pH value does not significantly reduce the percentage of CBB adsorbed on SD-Alg-CTA. In general, it can be observed that the interaction between CBB and PIs with SD-Alg-CTA occurs at low pH. This is supported by the pHpzc analysis data of SD-Alg-CTA, which has a value of 7.03, indicating that the adsorbent surface is positively charged under these conditions. Thus, the optimum interaction between CBB and PIs is more likely to occur at pH < pHpzc and begins to decline at pH > pHpzc. The interaction between CBB and PIs occurs through electrostatic interactions between the positively charged SD-Alg-CTA and the negatively charged CBB or PIs (Li et al. 2008; Huang et al. 2015; Hussain et al. 2021). At low pH, it is assumed that protonation of the electrostatic interactions between the adsorbate and adsorbent will drive high adsorption efficiency (Nodeh et al. 2017). The decrease in adsorption at high pH is caused by the competitive adsorption of hydroxide ions (OH) between CBB or PIs to the active sites of the adsorbent (Buhani et al. 2019; Nodeh et al. 2017).

Influence of contact time

The influence of contact time between the adsorbed CBB and PIs is presented in Fig. 7. From the data in Fig. 7a and b, it can be observed that CBB and PIs exhibit a higher percentage of adsorption on SD-Alg-CTA compared to SD-Alg and SD-Al-CTAC. This is consistent with the findings from the investigation on the influence of pH discussed earlier.

Fig. 7
figure 7

Influence of contact time on % adsorption of a CBB and b PIs by SD-Alg, SD-Alg-Na, and SD-Alg-CTA (adsorbent mass: 0.1 g; solution volume: 10 mL; C0: 10 mgL–1; temperature: 27 ± 1 °C; agitation speed: 150 rpm; CBB dye (pH 5) and PIs (pH 4)

The data in Fig. 7a indicates that with an increase in contact time, there is an increase in the percentage of CBB dye adsorbed on all 3 adsorbents, although not as significant as the increase in the percentage of PIs (Fig. 7b). In Fig. 7a, it can be observed that the contact time between CBB and SD-Alg-CTA in the first 15 min resulted in 81.25% CBB adsorbed, reaching an optimum at a contact time of 120 min with 88.46% adsorption. There is a decrease in adsorption at a contact time of 150 min. Furthermore, the influence of contact time on the percentage of adsorbed PIs is observed in Fig. 7b, where the first 15 min of contact time resulted in 55.44%, and at a contact time of 150 min, 93.73% PIs were adsorbed. The optimum contact time data for the interaction between CBB and PIs is then used as the optimum contact time in the subsequent experiments.

Kinetics of adsorption

The kinetics of CBB and PIs adsorption by SD-Alg, SD-Alg-Na, and SD-Alg-CTA were studied by analyzing the data obtained from the variation in adsorption contact time against the % adsorbed CBB and PIs, as shown in Fig. 7. The experimental data presented in Fig. 7 were analyzed using the pseudo-first-order, pseudo-second-order, intra-particle diffusion models, and Elovich each employing Eqs. 58, with the results of the analysis presented in Fig. 8 and Table 2.

$$\log (q_{e} - q_{t} ) = \log q_{e} - \frac{{k_{1} }}{2.303}t$$
(5)
$$\frac{t}{{q_{t} }} = \frac{1}{{k_{2} q_{e}^{2} }} + \frac{t}{{q_{e} }}$$
(6)
$$q_{t} = k_{id} t^{0.5} + C$$
(7)
$$qt = \frac{1}{\beta } \ln \;\left( {\alpha \beta } \right) + \frac{1}{\beta } \ln t$$
(8)

where qt and qe (mg g−1) are total CBB dye or PIs adsorption capacity at time (t) and at equilibrium, respectively, k1 and k2 are the first order and second order rate constants, respectively. In addition, kid (mg g−1 min−0.5) is the intra-particle diffusion rate constant, and C value (mg g−1) represents a constant depicting resistance to mass transfer in the boundary layer. In the Elovich kinetic model, the initial rate and adsorption capacity are described by the parameters α (mg g−1 m−1) dan β (g mg−1), respectively.

Fig. 8
figure 8

Regression analysis of the adsorption CBB and PIs on SD-Alg, SD-Alg-Na, and SD-Alg-CTA by a Pseudo-first-order equation, b Pseudo second order equation, c Intra particle diffussion model, and d Elovich equation

Table 2 Kinetics parameters of CBB and PIs adsorption by SD-Alg, SD-Alg-Na, and SD-Alg-CTA (adsorbent mass: 0.1 g; solution volume: 10 mL; C0: 10 mg L–1; temperature: 27 ± 1 °C; agitation speed: 150 rpm; CBB dye (pH 5) and PIs (pH 4)

Based on Table 2, it can be observed that the pseudo-second-order kinetic model has the best correlation coefficient (R2) compared to the pseudo-first-order and Elovich model, both for CBB and PIs on all 3 adsorbents. The pseudo-second-order kinetic model assumes that the adsorption capacity is proportional to the number of active sites on the adsorbent. Thus, this kinetic model suggests that chemisorption is the rate-limiting step of adsorption at fixed locations without interaction between adsorbates. However, similar to the pseudo-first-order model, rapid and controlled diffusion exchange is usually considered in the adsorption of solutes from a solvent (Boparai et al. 2011). The Elovich kinetic model is more suitable for describing adsorption processes that occur chemically and is suitable for systems with highly heterogeneous surfaces (Aharoni et al. 1970). When the surface coverage is low, the influence of interactions between adsorbed species does not significantly affect the kinetics (Ferreira et al. 2019; Al-Odayni et al. 2023). In this study, interactions between the adsorbent and adsorbate may occur through multiple mechanisms. Therefore, the Elovich kinetic model is less appropriate for explaining the interactions of the 3 adsorbents (SD-Alg, SD-Alg-Na, and SD-Alg-CTA) with CBB and PIs. In general, the pseudo-second-order model is more dominant, indicating that chemisorption occurs in several stages of adsorption between the adsorbate and adsorbent through electrostatic interactions (Aqdam et al. 2021).

Furthermore, to investigate the adsorbate diffusion process by the adsorbent in simulating kinetic data (Dogan et al. 2009), the data in Fig. 7 were also analyzed with the intra-particle diffusion (IPD) model. The results of this analysis are presented in Fig. 8c and Table 2. From Fig. 8c, it can be observed that all plots have 2 linear segments. The first part represents the initial period with a contact time of 0‒60 min, depicting external mass transfer. The second part is the adsorption period (60‒150 min), representing a pattern that describes intra-particle diffusion. The second linear part does not pass through the origin (C ≠ 0), indicating that intra-particle diffusion is not the only rate-controlling step, and external mass transfer also occurs simultaneously (Liang et al. 2019; AbdEl-Salam et al. 2017).

Based on the data in Table 2, it can be concluded that there are 2 steps that describe the transfer of CBB and PIs from the solution to the external surface of the adsorbent and further directed diffusion from the adsorbate to the active sites of each adsorbent through interactions with the active functional groups of the adsorbent. The adsorption mechanism can be explained in 2 different ways: diffusion through the pores of the adsorbent and electrostatic interaction with positively charged functional groups resulting from the modification of SD-Alg with CTACl to become SD-Alg-CTA (Ebadollahzadeh and Zabihi 2020; Buhani et al. 2023a). The results of the IPD kinetic model analysis are consistent with the previously discussed pseudo-second-order kinetic model.

Equilibrium adsorption isotherms

Isotherm adsorption studies, which depict the interaction between adsorbent and adsorbate at a specific temperature under equilibrium conditions, are generally necessary for designing the adsorption mechanism (Jais et al. 2021). The adsorption isotherm patterns of CBB and PIs dyes on SD-Alg, SD-Alg-Na, and SD-Alg-CTA were investigated by analyzing the data relationship between Co (mg L−1) exposed to the amount of CBB and PIs adsorbed (mmol g−1) as shown in Fig. 9. The data presented in Fig. 9 were analyzed using the Langmuir (Eq. 9), Freundlich (Eq. 10), Dubinin-Raduskevic (D-R) Eq. (11), and Temkin Eq. (12) adsorption isotherm models.

$$\frac{1}{{q_{e} }} = \frac{1}{{q_{m} K_{L} C_{e} }} + \frac{1}{{q_{m} }}$$
(9)
$$\log q_{e} = \log K_{F} + \frac{1}{n}\log C_{e}$$
(10)
$$\ln q_{e} = q_{DR} - 2B_{DR}^{{}} RT\ln ({1} + {\text{1/C}}_{{\text{e}}} )$$
(11)
$$q_{e} = \frac{RT}{{b_{Te} }}\ln (K_{Te} C_{e} )$$
(12)
$$\Delta G^\circ = - RTlnK_{L}$$
(13)

where Ce (mg L−1) is the equilibrium concentration of CBB or phosphate ion solution, qe (mmol g−1) is the adsorption capacity of CBB or PIs at equilibrium, qm is the monolayer adsorption capacity of the adsorbent, and KL is the equilibrium constant, including the affinity of binding sites (L mg−1). Furthermore, KF ((mg g−1) (L mg−1)1/n) is the adsorption capacity factor, and n is the intensity factor, with the value of n ranging between 1 and 10 (Ho and McKay 2002). Furthermore, qDR and BDR are the D-R isotherm constants in mg g−1 and mol2 kJ−2 respectively, bTe is the Temkin constant related to the heat adsorption (J mol−1), KTe is the equilibrium binding constant L g−1, R is the gas constant (8.314 kJ mol−1), and T is the absolute temperature (K).

Fig. 9
figure 9

Graph illustrating the relationship between Co (mg L−1) and the amount of a CBB and b PIs adsorbed (q) (mmol g−1) (adsorbent mass: 0.1 g; solution volume: 25 mL; temperature: 27 ± 1 °C; agitation speed: 150 rpm; pH: CBB dye (pH 5) and PIs (pH 4); time: 120 min)

The selection of the adsorption isotherm models aims to investigate the tendency of the adsorption patterns of CBB and PIs with SD-Alg, SD-Alg-Na, and SD-Alg-CTA. The Langmuir adsorption isotherm model assumes that there is a certain number of active sites on the adsorbent surface proportional to the surface area, the adsorbent surface is uniform, and the adsorption process is monolayer (Xin et al. 2012; Larraza et al. 2012). The Freundlich isotherm model is an empirical equation employed for heterogeneous systems and adsorption at multilayers (Shao et al. 2016). Therefore, the results of the data analysis using both adsorption isotherm models can indicate the tendency of the adsorption process to occur physically or chemically. The D-R (Dubinin-Radushkevich) isotherm model can be used to explain adsorption occurring on both homogeneous and heterogeneous surfaces. This model assumes that adsorption takes place on a homogeneous adsorption layer. Meanwhile, the Temkin isotherm model explains that the heat of adsorption decreases linearly with increasing interaction between the adsorbate and adsorbent (Buhani et al. 2019). The results of the data analysis with the adsorption isotherm models and adsorption parameters for CBB and PIs are presented in Fig. 10 and Table 3.

Fig.10
figure 10

The linear equations of the adsorption isotherm models of the CBB and PIs on the SD-Alg, SD-Alg-Na, and SD-Alg-CTA with the adsorption isotherm model of a Langmuir, b Freundlich, c Dubinin-Raduskevich, and d Temkin

Table 3 Energy and adsorption isotherm parameters of CBB dye dan PIs on SD-Alg, SD-Alg-Na, SD-Alg-CTA (mmol g−1) (adsorbent mass: 0.1 g; solution volume: 25 mL; temperature: 27 ± 1 °C; agitation speed: 150 rpm; pH: CBB dye (pH 5) and PIs (pH 4); time: 120 min)

The adsorption parameters for CBB and PIs on SD-Alg, SD-Alg-Na, and SD-Alg-CTA in Fig. 10 and Table 3 indicate that the coefficient of regression (R2) for the Freundlich adsorption isotherm model tends to be larger than that for the Langmuir, D-R, and Temkin isotherm. This suggests that the adsorption isotherms of CBB and PIs are more suitable for the Freundlich adsorption isotherm model. The Freundlich adsorption isotherm describes that the adsorption process of the adsorbate occurs on a heterogeneous surface with a multilayer structure. This indicates that the adsorption of CBB and PIs dyes on SD-Alg, SD-Alg-Na, and SD-Alg-CTA is more dominated by physical interactions through cation exchange or weak chemical interactions via electrostatic interactions in an aqueous medium. In other words, it can be stated that adsorption occurs through several stages. This aligns with the pseudo-second-order kinetic model, which assumes that chemisorption occurs in multiple stages through electron exchange between the adsorbate and adsorbent via electrostatic interactions (Aqdam et al. 2021; Buhani et al. 2021b). The adsorption of CBB and PIs dyes by the 3 adsorbents does not occur solely through chemical or physical interactions but is a combination of both (Buhani et al. 2019; Dhawane et al. 2017). This is also supported by the magnitude of the ΔG0ads values (Eq. 13) obtained from the interaction between the adsorbent and adsorbate as listed in Table 3, with respective ranges for CBB between − 54 and − 76.00 kJ mol−1 and for PIs between − 67 and − 75 kJ mol−1. From this free energy data, it can be inferred that the modification of SD-Alg with CTA+ ions causes the interaction between adsorbent and adsorbate to become increasingly exothermic.

Furthermore, the data in Table 3 show adsorption parameters such as the adsorption capacity (qm), KL, and KF values for each adsorbate on the adsorbent, indicating that SD-Alg-CTA has higher values compared to SD-Alg and SD-Alg-Na. This indicates that anionic CBB and PIs are more suitable for the SD-Alg-CTA adsorbent, which has a positive surface charge. The interactions between CBB and PIs with SD-Alg-CTA are dominated by electrostatic interactions (Buhani et al. 2023b). In this case, the adsorption mechanism can be explained in 2 different ways: diffusion through the pores of the adsorbent and electrostatic interactions with positively charged functional groups resulting from the modification of SD-Alg with the surfactant CTACl, producing SD-Alg-CTA rich in positive charge.

Bi-component adsorption

The competition of CBB and PIs adsorption onto SD-Alg-CTA was studied by conducting adsorption on a bi-component mixture of CBB and PIs, which was analyzed using the Langmuir isotherm equation model for a binary mixture (Eq. 14) (Fagundes-Klen et al. 2007; Kleinubing et al. 2011).

$$q_{1}^{*} = \frac{{q_{m} C_{1}^{*} b_{1} }}{{1 + b_{1} C_{1}^{* } + b_{2} C_{2}^{*} }}$$
(14)

where b1 (CBB) and b2 (PIs) are the binary Langmuir isotherm constants (Olusegun et al. 2020). The results of the adsorption data on the bi-component mixture (CBB and PIs) by SD-Alg-CTA using the Langmuir isotherm equation for a binary mixture are presented in Table 4.

Table 4 Bi-component adsorption parameters of CBB and PIs dyes on SD-Alg, SD-Alg-Na, SD-Alg-CTA (adsorbent mass: 0.1 g; solution volume: 25 mL; Co (CBB + PIs) = 0.0‒0.35 mmol L−1; temperature: 27 ± 1 °C; agitation speed: 150 rpm; pH: 5; time: 120 min)

In Table 4, it can be observed that the qm values for bi-component adsorption on the 3 adsorbents, SD-Alg, SD-Alg-Na, and SD-Alg-CTA, are 6.803 × 10−2, 52.632 × 10−2, and 90.909 × 10−2 mmol·g−1, respectively. This aligns with the qm values obtained for mono-component adsorption (Table 3). In mono-component adsorption, there is no competition for adsorption, whereas in bi-component adsorption, it is assumed that there is competition for adsorption between CBB and PIs in occupying the active sites of the adsorbent, whether in the form of pores or active groups (Buhani et al. 2021b). Furthermore, in Table 4, it is observed that all 3 adsorbents produce values where b1(CBB) < b2(PIs). This indicates that PIs are more dominantly adsorbed compared to the CBB dye on SD-Alg-CTA in bi-component adsorption. The CBB dye (MR C47H49N3NaO7S2 = 855.028 g mol‒1) has a larger size than PIs (MR KH2PO4 = 136.09), making it less mobile and slower to compete compared to PIs.

Proposed adsorption mechanism

The mechanism of the reaction occurring during the adsorption of CBB and PIs dyes by SD-Alg-CTA was studied by performing sequential desorption using several eluents based on their ability to elute the adsorbed adsorbate in the adsorbent (Buhani et al. 2023a, b, c). In this study, the adsorbed CBB or PIs dyes were eluted with H2O (A), 0.1 M KNO3 (B), 0.1 M HCl (C), and 0.1 M Na2EDTA (D) (Fig. 11), with their strengths increasing sequentially to release the physically adsorbed CBB or PIs dyes, ion exchange, electrostatic interactions, and complexes.

Fig. 11
figure 11

Graph depicting the relationship between eluent types and the % desorption of CBB and PIs from SD-Alg-CTA using eluents H2O A, 0.1 M KNO3 B, 0.1 M HCl C, and 0.1 M Na2EDTA D under adsorption conditions: adsorbent mass: 0.1 g; solution volume: 25 mL; temperature: 27 ± 1 °C; agitation speed: 150 rpm; pH: CBB dye (pH 5) and PIs (pH 4); time: 120 min

In Fig. 11, it can be observed that the CBB dye adsorbed by SD-Alg-CTA can be released by eluents in the following order: 0.1 M HCl (82.023%) > H2O (13.057%) > KNO3 (3.030%) > 0.1 M Na2EDTA (1.890%). The same trend is observed for the desorption of PIs, with the order of eluents and % desorption as follows: 0.1 M HCl (51.090%) > H2O (27.560%) > KNO3 (20.933%) > 0.1 M Na2EDTA (0.417%). From this data, it can be inferred that the interaction of CBB and PIs dyes with SD-Alg-CTA follows a similar trend, dominated by electrostatic interactions and followed by physical interactions (trapping mechanism). This is consistent with the results of pseudo-second-order adsorption kinetics and Freundlich adsorption isotherm models. Furthermore, 3 main processes occur during the adsorption of an adsorbate by an adsorbent: physical adsorption, precipitation, complexation, and pore filling (Fagbohungbe et al. 2017).

The mechanism of adsorption of an adsorbate by an adsorbent in a solution is influenced by several factors such as the surface charge of the adsorbent, the nature and type of interactions between the active groups of the adsorbent and the adsorbate, such as electrostatic attraction, hydrogen bonding, ion exchange, acid–base interactions, as well as covalent bonds and complexes (Zhang et al. 2019). The electrostatic interaction mechanism becomes key in the adsorption process of ionizable organic compounds onto the adsorbent surface, indicating a positive charge through electrostatic interactions. However, the success of this mechanism in attracting or repelling organic pollutants is highly influenced by the ionic strength and pH value of the solution. These factors play a crucial role because they enhance the electrostatic interaction of repulsion between the adsorbate and adsorbent when they both have similar charges (Ambaye et al. 2021). In this case, the surface of SD-Alg-CTA contains positively charged active sites from HDTMA+ ions, thus dominantly interacting strongly with negatively charged CBB or PIs through electrostatic interactions, in addition to other physical and chemical interactions.

Regeneration of SD-Alg-CTA adsorbent

The technology of cost-effective and environmentally friendly adsorbent modification is highly essential, including the development of adsorbents that can be regenerated or reused in multiple adsorption cycles. The ability of an adsorbent to be used repeatedly is a crucial aspect in wastewater treatment, as it significantly contributes to cost savings in treating water containing pollutants. To assess the regenerative capacity of SD-Alg-CTA as an adsorbent, adsorption–desorption cycles were conducted for five repetitions, as shown in Fig. 12. In this study, the release of CBB and PIs dyes from SD-Alg-CTA using a 0.1 M HCl solution as the eluent was quite effective, involving proton substitution for CBB and PIs dyes as cations (Varghese et al. 2017; Buhani et al. 2023b).

Fig. 12
figure 12

Reutilization of SD-Alg-CTA in 5 adsorption–desorption cycles for CBB and PIs

From Fig. 12, it can be observed that in the third repetition of adsorption–desorption cycles, the SD-Alg-CTA still retains respective adsorption capacities of 80% for CBB and 84% for PIs. The regeneration capacity of SD-Alg-CTA decreases over several cycles (approximately 10% reduction in the fourth cycle), and in the fifth cycle, it reaches 52% for CBB and 54% for PIs. This is attributed to the incomplete release of adsorbate still attached to the adsorbent, and it is assumed that damage occurs on the adsorbent surface due to interaction with the eluent and neutralization processes. The assessment of the lifespan through adsorption–desorption equilibrium data confirms the feasibility of reusing SD-Alg-CTA as an effective and recyclable adsorbent. The reusability of this adsorbent is advantageous for continuous industrial applications that require repeated use of the adsorbent.

Comparison of adsorption capacity with other adsorbents

Table 5 shows the comparison of adsorption capacities of SD-Alg-CTA for CBB and PIs with previously documented adsorbents. The information in the table depicts that SD-Alg-CTA exhibits high effectiveness as an adsorbent for both CBB and PIs, especially when compared to other adsorbents listed in Table 5. The comparison of adsorption performance of SD-Alg-CTA clearly demonstrates the synergistic effect of the precursor. Addition of cationic surfactant CTACl into algal biomass enables enhanced adsorption towards anions such as CBB and PIs. Modification of SD-Alg with cationic surfactant shows a significant improvement in its ability to attract anionic dye molecules like CBB and PIs. This is due to the formation of positive charges on the surface of SD-Alg-CTA, which enhances the adsorption of CBB and PIs through electrostatic interactions.

Table 5 Comparison of the adsorption capacities of several adsorbents for CBB and PIs

Conclusion

In this study, the modification of the macro-alga Sargassum duplicatum with the cationic surfactant CTACl has been successfully achieved. The modification procedure is straightforward and takes place at room temperature, resulting in an adsorbent that is highly effective in adsorption CBB and PIs in both mono-component and bi-component forms. The optimum adsorption conditions occur at pH 5 for CBB dye and at pH 4 for PIs, with respective contact times of 120 and 150 min. The adsorption of CBB and PIs by SD-Alg-CTA tends to follow the pseudo-second-order kinetic model and Freundlich isotherm adsorption model. The adsorption capacities (qm) for the mono-component adsorption of CBB and PIs by SD-Alg-CTA are 6.27 × 10−2 and 32.468 × 10−2 mmol g−1, respectively, while the qm for the bi-component mixture is 90.909 mmol g−1. SD-Alg-CTA adsorbent can be reused in 3 cycles of adsorption–desorption with adsorption efficiencies for CBB and PIs exceeding 80%. The SD-Alg-CTA material has significant potential for development due to its effective adsorption, easy manufacturing procedure, and reusability. This provides an advantage in industrial applications that require repeated use of the adsorbent.