Specific Weight Calculation Formula & Calculator
:root {
–primary-color: #004a99;
–secondary-color: #007bff;
–success-color: #28a745;
–warning-color: #ffc107;
–danger-color: #dc3545;
–light-gray: #f8f9fa;
–dark-gray: #343a40;
–white: #ffffff;
–border-color: #dee2e6;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(–light-gray);
color: var(–dark-gray);
line-height: 1.6;
margin: 0;
padding: 0;
}
.container {
max-width: 1000px;
margin: 20px auto;
padding: 20px;
background-color: var(–white);
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h1, h2, h3 {
color: var(–primary-color);
text-align: center;
margin-bottom: 20px;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.8em;
margin-top: 30px;
border-bottom: 2px solid var(–primary-color);
padding-bottom: 10px;
}
h3 {
font-size: 1.4em;
margin-top: 20px;
color: var(–secondary-color);
}
.loan-calc-container {
background-color: var(–white);
padding: 25px;
border-radius: 8px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.input-group {
margin-bottom: 20px;
text-align: left;
}
.input-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: var(–primary-color);
}
.input-group input[type="number"],
.input-group input[type="text"],
.input-group select {
width: calc(100% – 20px);
padding: 12px 10px;
border: 1px solid var(–border-color);
border-radius: 4px;
font-size: 1em;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
.input-group input[type="number"]:focus,
.input-group input[type="text"]:focus,
.input-group select:focus {
border-color: var(–secondary-color);
outline: none;
}
.input-group .helper-text {
font-size: 0.85em;
color: #6c757d;
margin-top: 5px;
display: block;
}
.input-group .error-message {
color: var(–danger-color);
font-size: 0.85em;
margin-top: 8px;
display: none; /* Hidden by default */
}
.input-group .error-message.visible {
display: block;
}
.button-group {
display: flex;
justify-content: space-between;
margin-top: 25px;
gap: 10px;
}
.btn {
padding: 12px 20px;
border: none;
border-radius: 5px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
flex: 1;
text-align: center;
text-decoration: none;
}
.btn-primary {
background-color: var(–primary-color);
color: var(–white);
}
.btn-primary:hover {
background-color: #00397a;
transform: translateY(-2px);
}
.btn-secondary {
background-color: var(–secondary-color);
color: var(–white);
}
.btn-secondary:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
.btn-warning {
background-color: var(–warning-color);
color: var(–dark-gray);
}
.btn-warning:hover {
background-color: #e0a800;
transform: translateY(-2px);
}
#results {
margin-top: 30px;
padding: 20px;
background-color: #eef7ff;
border: 1px solid #cce5ff;
border-radius: 6px;
text-align: center;
}
#results h3 {
color: var(–primary-color);
margin-top: 0;
}
.result-item {
margin-bottom: 15px;
}
.result-label {
font-weight: 600;
color: var(–dark-gray);
}
.result-value {
font-size: 1.2em;
font-weight: 700;
color: var(–primary-color);
display: block;
margin-top: 5px;
}
.primary-result .result-value {
font-size: 2em;
color: var(–success-color);
background-color: var(–white);
padding: 10px;
border-radius: 4px;
display: inline-block;
margin-top: 10px;
}
.primary-result {
margin-bottom: 20px;
padding: 15px;
background-color: var(–primary-color);
color: var(–white);
border-radius: 6px;
}
.primary-result .result-label {
color: var(–white);
font-size: 1.1em;
}
.formula-explanation {
font-size: 0.95em;
color: #5a6268;
margin-top: 15px;
text-align: center;
font-style: italic;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 25px;
margin-bottom: 25px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
th, td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid var(–border-color);
}
thead th {
background-color: var(–primary-color);
color: var(–white);
font-weight: 600;
}
tbody tr:nth-child(even) {
background-color: #f2f6fa;
}
tbody td {
font-size: 0.95em;
}
caption {
caption-side: bottom;
text-align: center;
font-size: 0.9em;
color: #6c757d;
margin-top: 10px;
font-style: italic;
}
#chartContainer {
width: 100%;
max-width: 600px;
margin: 20px auto;
text-align: center;
background-color: var(–white);
padding: 15px;
border-radius: 8px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
.chart-legend {
margin-top: 15px;
font-size: 0.9em;
color: #5a6268;
display: flex;
justify-content: center;
gap: 20px;
}
.chart-legend span {
display: inline-block;
margin-right: 5px;
width: 12px;
height: 12px;
border-radius: 3px;
}
.legend-density span { background-color: var(–primary-color); }
.legend-specific-weight span { background-color: var(–success-color); }
article {
margin-top: 40px;
background-color: var(–white);
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
article h2 {
text-align: left;
margin-bottom: 15px;
border-bottom: none;
}
article h3 {
text-align: left;
color: var(–dark-gray);
margin-top: 25px;
margin-bottom: 10px;
}
article p {
margin-bottom: 15px;
color: #333;
}
article ul, article ol {
margin-left: 20px;
margin-bottom: 15px;
color: #333;
}
article li {
margin-bottom: 8px;
}
.faq-list {
list-style: none;
padding: 0;
}
.faq-item {
border: 1px solid var(–border-color);
border-radius: 5px;
margin-bottom: 15px;
}
.faq-question {
background-color: #f8f9fa;
padding: 15px;
font-weight: 600;
cursor: pointer;
color: var(–primary-color);
position: relative;
}
.faq-question::after {
content: '+';
position: absolute;
right: 15px;
font-size: 1.2em;
color: var(–secondary-color);
}
.faq-answer {
padding: 15px;
display: none; /* Hidden by default */
border-top: 1px solid var(–border-color);
}
.faq-item.open .faq-answer {
display: block;
}
.faq-item.open .faq-question::after {
content: '-';
color: var(–danger-color);
}
.related-links {
margin-top: 30px;
padding: 20px;
background-color: var(–light-gray);
border-radius: 8px;
}
.related-links h3 {
margin-top: 0;
text-align: center;
color: var(–primary-color);
}
.related-links ul {
list-style: none;
padding: 0;
text-align: center;
}
.related-links li {
margin-bottom: 10px;
}
.related-links a {
color: var(–secondary-color);
text-decoration: none;
font-weight: 500;
}
.related-links a:hover {
text-decoration: underline;
}
.related-links span {
display: block;
font-size: 0.9em;
color: #6c757d;
margin-top: 3px;
}
.copy-button {
background-color: var(–warning-color);
color: var(–dark-gray);
margin-left: 10px;
flex: none;
}
.copy-button:hover {
background-color: #e0a800;
transform: translateY(-2px);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
margin: 10px;
padding: 15px;
}
.button-group {
flex-direction: column;
}
.btn {
width: 100%;
margin-bottom: 10px;
}
.copy-button {
margin-left: 0;
margin-top: 10px;
}
.btn-group {
flex-direction: column;
}
.btn-group .btn {
width: auto;
}
.btn-group .btn:not(:last-child) {
margin-bottom: 10px;
}
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.5em;
}
.primary-result .result-value {
font-size: 1.8em;
}
}
Specific Weight Calculator
Calculation Results
Specific Weight (γ)
—
Density (ρ)
—
Weight (W)
—
Volume (V)
—
Specific Weight (γ) = Density (ρ) × Acceleration due to Gravity (g) = (Mass / Volume) × g
Specific Weight: Understanding the Concept
Specific weight, often denoted by the Greek letter gamma (γ), is a fundamental property of a substance that describes its weight per unit volume. It's a measure of how heavy a material is for the space it occupies, considering the force of gravity. Unlike density, which measures mass per unit volume, specific weight directly incorporates the gravitational pull on that mass.
What is Specific Weight?
In essence, specific weight quantifies the gravitational force exerted on a unit volume of a substance. It's crucial in engineering and physics, particularly in fluid mechanics and structural analysis, where understanding the forces acting on materials is paramount. While density tells you how much "stuff" is packed into a certain space, specific weight tells you how much that packed "stuff" *weighs* under gravity.
Who Should Use This Calculation?
Professionals in various fields rely on specific weight calculations, including:
- Civil Engineers: For designing structures like bridges, dams, and buildings, ensuring they can withstand the weight of materials and loads.
- Mechanical Engineers: When designing components or systems where weight and gravitational forces are critical factors.
- Naval Architects: For calculating buoyancy and stability of ships and other marine vessels.
- Material Scientists: To characterize and compare the properties of different materials.
- Students and Educators: For learning and teaching principles of physics, mechanics, and material science.
Common Misconceptions
- Specific Weight vs. Density: The most common misconception is confusing specific weight with density. Density is mass/volume, while specific weight is weight/volume. They are directly related by gravity (Specific Weight = Density × g).
- Constant Value: Specific weight can vary slightly with temperature and pressure, especially for gases, though it's often treated as constant for many engineering applications, especially for liquids and solids under typical conditions.
- Gravity's Role: Assuming specific weight is independent of gravity. It's inherently tied to gravitational acceleration.
Specific Weight Formula and Mathematical Explanation
The calculation of specific weight is derived from the fundamental definitions of density and weight. It provides a direct measure of a substance's heaviness relative to its volume under a given gravitational field.
The Core Formula
The primary formula for specific weight (γ) is:
γ = ρ × g
Where:
- γ (gamma) is the specific weight
- ρ (rho) is the density of the substance
- g is the acceleration due to gravity
Derivation from Mass and Volume
Since density (ρ) is defined as mass (m) per unit volume (V), we can substitute this into the formula:
ρ = m / V
Substituting this into the specific weight formula gives us:
γ = (m / V) × g
This is the formula directly used in our calculator: Specific Weight = (Mass / Volume) × Gravity.
Explanation of Variables
Variables Used in Specific Weight Calculation
| Variable |
Meaning |
Unit (SI) |
Unit (Imperial) |
Typical Range |
| Mass (m) |
The amount of matter in a substance. |
Kilograms (kg) |
Pounds (lb) |
Varies widely depending on the substance. |
| Volume (V) |
The amount of space occupied by the substance. |
Cubic Meters (m³) |
Cubic Feet (ft³) |
Varies widely depending on the substance. |
| Density (ρ) |
Mass per unit volume. |
kg/m³ |
lb/ft³ |
~1000 kg/m³ (water) to >20000 kg/m³ (osmium) |
| Acceleration due to Gravity (g) |
The acceleration experienced by an object due to gravity. |
m/s² |
ft/s² |
~9.81 m/s² (Earth), ~3.71 m/s² (Mars), ~24.79 m/s² (Jupiter) |
| Specific Weight (γ) |
Weight per unit volume. |
N/m³ (Newtons per cubic meter) |
lbf/ft³ (Pounds-force per cubic foot) |
~9810 N/m³ (water on Earth) to >200000 N/m³ (dense metals on Earth) |
Note: 1 Newton (N) = 1 kg·m/s². Weight (W) = Mass (m) × Gravity (g).
Practical Examples (Real-World Use Cases)
Understanding specific weight is vital for practical applications. Here are a couple of examples:
Example 1: Calculating the Specific Weight of Water
Let's calculate the specific weight of a cubic meter of water on Earth.
- Mass (m): 1000 kg
- Volume (V): 1 m³
- Acceleration due to Gravity (g): 9.81 m/s²
Calculation:
First, find the density (ρ):
ρ = m / V = 1000 kg / 1 m³ = 1000 kg/m³
Now, calculate the specific weight (γ):
γ = ρ × g = 1000 kg/m³ × 9.81 m/s² = 9810 kg·m/(s²·m³) = 9810 N/m³
Result Interpretation: The specific weight of water on Earth is approximately 9810 N/m³. This means that each cubic meter of water weighs 9810 Newtons under Earth's gravity.
Example 2: Specific Weight of Aluminum
Consider a block of aluminum with a known mass and volume.
- Mass (m): 2700 kg
- Volume (V): 1 m³
- Acceleration due to Gravity (g): 9.81 m/s²
Calculation:
Density (ρ):
ρ = m / V = 2700 kg / 1 m³ = 2700 kg/m³
Specific Weight (γ):
γ = ρ × g = 2700 kg/m³ × 9.81 m/s² = 26487 N/m³
Result Interpretation: Aluminum is significantly denser and thus has a higher specific weight than water. Each cubic meter of aluminum weighs approximately 26487 Newtons on Earth. This is why aluminum is preferred for applications where strength-to-weight ratio is important, like in aircraft manufacturing.
How to Use This Specific Weight Calculator
Our calculator simplifies the process of determining specific weight. Follow these simple steps:
Step-by-Step Guide:
- Input Mass: Enter the total mass of the substance into the "Mass of the Substance" field. Ensure you use consistent units (e.g., kilograms).
- Input Volume: Enter the volume that the substance occupies in the "Volume of the Substance" field. Use corresponding units (e.g., cubic meters).
- Input Gravity (Optional): The calculator defaults to Earth's standard gravity (9.81 m/s²). If you are calculating for a different celestial body or a specific scenario, input the relevant acceleration due to gravity value.
- Calculate: Click the "Calculate Specific Weight" button.
Reading the Results:
Upon clicking calculate, the results section will display:
- Specific Weight (γ): The main result, shown in N/m³ (or the equivalent imperial unit if inputs were imperial).
- Density (ρ): The calculated density (mass/volume) in kg/m³ (or lb/ft³).
- Weight (W): The total weight of the substance (Mass × Gravity) in Newtons (or lbf).
- Volume (V): Confirms the input volume.
The primary result for specific weight will be highlighted for easy identification.
Decision-Making Guidance:
Use these results to compare materials, assess structural loads, or understand fluid behavior. For instance, if designing a floatation device, you'd compare the specific weight of the device's material to that of the fluid it displaces.
Use the "Copy Results" button to easily transfer the key figures and assumptions to your reports or analyses. This specific weight calculation tool is designed for accuracy and ease of use.
Key Factors That Affect Specific Weight Results
While the formula itself is straightforward, several factors can influence the actual measured or calculated specific weight of a substance:
- Temperature: For most substances, as temperature increases, volume tends to increase (thermal expansion), and mass remains constant. This leads to a decrease in density and consequently, specific weight. This effect is more pronounced in gases and liquids than in solids.
- Pressure: Changes in pressure significantly affect the volume of gases. Higher pressure compresses the gas, decreasing its volume and increasing its density and specific weight. Liquids and solids are much less compressible, so pressure has a minimal effect on their specific weight under typical conditions.
- Composition and Purity: The specific weight is inherently dependent on the material's composition. Alloys, mixtures, or impure substances will have different specific weights compared to their pure constituents. For example, saltwater has a higher specific weight than freshwater due to dissolved salts.
- Phase of Matter: The state of a substance (solid, liquid, gas) drastically affects its specific weight. Gases are much less dense and have lower specific weights than their liquid or solid forms because their molecules are farther apart.
- Gravitational Field Strength: This is a fundamental factor. The specific weight calculation using γ = ρ × g directly shows its dependence on gravity. A substance will have a lower specific weight on the Moon than on Earth, even though its density remains the same.
- Impurities and Dissolved Substances: As mentioned under composition, even small amounts of impurities or dissolved substances can alter the specific weight. For instance, dissolved minerals in water increase its specific weight.
- Altitude: While gravity slightly decreases with altitude, the primary effect on specific weight for substances like air is the decrease in atmospheric pressure, leading to lower density and specific weight at higher altitudes.
Frequently Asked Questions (FAQ)
-
What is the difference between density and specific weight?
Density is the ratio of mass to volume (ρ = m/V), measuring how much "stuff" is packed into a space. Specific weight is the ratio of weight to volume (γ = W/V), measuring how much that "stuff" *weighs* per unit volume under gravity. They are related by the formula γ = ρ × g.
-
Is specific weight constant for a material?
Specific weight is constant for a given material *under specific conditions* of temperature, pressure, and gravitational field. Changes in these conditions, especially temperature and pressure for gases, can alter the specific weight.
-
What are the standard units for specific weight?
In the International System of Units (SI), specific weight is typically measured in Newtons per cubic meter (N/m³). In the Imperial system, it's often measured in pounds-force per cubic foot (lbf/ft³).
-
Why is specific weight important in engineering?
It's crucial for calculating hydrostatic forces, determining buoyancy, designing structures that support weight, and analyzing fluid behavior. It directly relates material properties to gravitational forces.
-
Does specific weight change on different planets?
Yes, the specific weight (γ) of a substance changes with the acceleration due to gravity (g). If you take a liter of water from Earth to Mars, its density (ρ) remains the same, but its specific weight will be lower because Mars has weaker gravity.
-
How does temperature affect specific weight?
Generally, increasing temperature causes most substances (especially liquids and gases) to expand, increasing their volume and decreasing their density and specific weight. Solids expand less significantly.
-
Can I use this calculator for any material?
Yes, you can use this calculator for any substance for which you know the mass and the volume it occupies. The accuracy depends on the accuracy of your input measurements and the specified gravity value.
-
What if I know the density but not the mass and volume separately?
If you know the density (ρ) and gravity (g), you can directly calculate specific weight using γ = ρ × g. You can also calculate mass (m = ρ × V) or volume (V = m / ρ) if you have two of the three density-related values.
Density vs. Specific Weight Comparison
Density (ρ)
Specific Weight (γ)
Comparison of Density and Specific Weight for common substances under Earth's gravity.
var chartInstance = null; // Global variable to hold the chart instance
function validateInput(value, id, errorId, minValue, maxValue) {
var errorElement = document.getElementById(errorId);
errorElement.classList.remove('visible');
errorElement.textContent = ";
if (value === null || value === undefined || value.trim() === "") {
errorElement.textContent = "This field cannot be empty.";
errorElement.classList.add('visible');
return false;
}
var numberValue = parseFloat(value);
if (isNaN(numberValue)) {
errorElement.textContent = "Please enter a valid number.";
errorElement.classList.add('visible');
return false;
}
if (minValue !== undefined && numberValue maxValue) {
errorElement.textContent = "Value cannot be greater than " + maxValue + ".";
errorElement.classList.add('visible');
return false;
}
return true;
}
function calculateSpecificWeight() {
var massInput = document.getElementById("mass");
var volumeInput = document.getElementById("volume");
var gravityInput = document.getElementById("gravity");
var mass = massInput.value;
var volume = volumeInput.value;
var gravity = gravityInput.value;
var isValid = true;
isValid = validateInput(mass, "mass", "massError", 0.000001) && isValid; // Mass must be positive
isValid = validateInput(volume, "volume", "volumeError", 0.000001) && isValid; // Volume must be positive
isValid = validateInput(gravity, "gravity", "gravityError", 0.001) && isValid; // Gravity must be positive
if (!isValid) {
document.getElementById("results").style.display = "none";
return;
}
var m = parseFloat(mass);
var v = parseFloat(volume);
var g = parseFloat(gravity);
var density = m / v;
var specificWeight = density * g;
var totalWeight = m * g; // Calculate total weight for display
document.getElementById("densityResult").textContent = density.toFixed(4) + " kg/m³";
document.getElementById("specificWeightResult").textContent = specificWeight.toFixed(2) + " N/m³";
document.getElementById("weightResult").textContent = totalWeight.toFixed(2) + " N";
document.getElementById("volumeResultDisplay").textContent = v.toFixed(4) + " m³";
document.getElementById("results").style.display = "block";
updateChart(density, specificWeight, g);
}
function resetCalculator() {
document.getElementById("mass").value = "1000";
document.getElementById("volume").value = "1";
document.getElementById("gravity").value = "9.81";
document.getElementById("massError").textContent = "";
document.getElementById("volumeError").textContent = "";
document.getElementById("gravityError").textContent = "";
document.getElementById("massError").classList.remove('visible');
document.getElementById("volumeError").classList.remove('visible');
document.getElementById("gravityError").classList.remove('visible');
document.getElementById("results").style.display = "none";
if (chartInstance) {
chartInstance.destroy();
chartInstance = null;
}
initializeChart(); // Re-initialize chart with default or empty state
}
function copyResults() {
var specificWeight = document.getElementById("specificWeightResult").textContent;
var density = document.getElementById("densityResult").textContent;
var weight = document.getElementById("weightResult").textContent;
var volume = document.getElementById("volumeResultDisplay").textContent;
var massInput = document.getElementById("mass").value;
var volumeInput = document.getElementById("volume").value;
var gravityInput = document.getElementById("gravity").value;
var textToCopy = "Specific Weight Calculation Results:\n\n";
textToCopy += "Specific Weight (γ): " + specificWeight + "\n";
textToCopy += "Density (ρ): " + density + "\n";
textToCopy += "Weight (W): " + weight + "\n";
textToCopy += "Volume (V): " + volume + "\n\n";
textToCopy += "Assumptions:\n";
textToCopy += "Mass: " + massInput + " kg\n";
textToCopy += "Volume: " + volumeInput + " m³\n";
textToCopy += "Gravity: " + gravityInput + " m/s²\n";
var tempTextArea = document.createElement("textarea");
tempTextArea.value = textToCopy;
document.body.appendChild(tempTextArea);
tempTextArea.select();
try {
document.execCommand("copy");
alert("Results copied to clipboard!");
} catch (err) {
console.error("Failed to copy: ", err);
alert("Failed to copy results.");
}
document.body.removeChild(tempTextArea);
}
function initializeChart() {
var ctx = document.getElementById("specificWeightChart").getContext("2d");
if (chartInstance) {
chartInstance.destroy(); // Destroy previous chart if it exists
}
chartInstance = new Chart(ctx, {
type: 'bar', // Using bar chart for better comparison of values
data: {
labels: ["Substance Properties"],
datasets: [{
label: 'Density (ρ) [kg/m³]',
data: [0], // Initial data
backgroundColor: 'rgba(0, 74, 153, 0.6)', // Primary color
borderColor: 'rgba(0, 74, 153, 1)',
borderWidth: 1
}, {
label: 'Specific Weight (γ) [N/m³]',
data: [0], // Initial data
backgroundColor: 'rgba(40, 167, 69, 0.6)', // Success color
borderColor: 'rgba(40, 167, 69, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: true,
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Value'
}
}
},
plugins: {
title: {
display: true,
text: 'Density vs. Specific Weight Comparison'
},
tooltip: {
callbacks: {
label: function(context) {
var label = context.dataset.label || ";
if (label) {
label += ': ';
}
if (context.parsed.y !== null) {
label += context.parsed.y.toFixed(2);
}
return label;
}
}
}
}
}
});
}
function updateChart(density, specificWeight, gravity) {
if (!chartInstance) {
initializeChart();
}
chartInstance.data.datasets[0].data = [density]; // Update density data
chartInstance.data.datasets[1].data = [specificWeight]; // Update specific weight data
// Adjust scales if necessary, though bar chart with single label is simple
chartInstance.options.scales.y.title.text = `Value (${gravity === 9.81 ? 'SI Units' : 'Units'})`; // Simple unit indicator
chartInstance.update();
}
// Add event listeners for real-time updates on input change
document.getElementById("mass").addEventListener("input", function() {
if (document.getElementById("results").style.display === "block") {
calculateSpecificWeight();
}
});
document.getElementById("volume").addEventListener("input", function() {
if (document.getElementById("results").style.display === "block") {
calculateSpecificWeight();
}
});
document.getElementById("gravity").addEventListener("input", function() {
if (document.getElementById("results").style.display === "block") {
calculateSpecificWeight();
}
});
// Initialize the chart on page load
window.onload = function() {
initializeChart();
// Set default values for inputs
document.getElementById("mass").value = "1000";
document.getElementById("volume").value = "1";
document.getElementById("gravity").value = "9.81";
};
// FAQ Toggle
var faqQuestions = document.querySelectorAll('.faq-question');
faqQuestions.forEach(function(question) {
question.addEventListener('click', function() {
var faqItem = this.closest('.faq-item');
faqItem.classList.toggle('open');
});
});