Estimate calories burned during your runs and understand your weight loss potential.
Weight Loss Running Calculator
Enter your current weight.
Enter the total distance you ran.
Kilometers (km)
Miles (mi)
Select the unit for your run distance.
Enter the total time you ran.
Minutes
Hours
Select the unit for your run duration.
7.0 min/mile (approx)Adjust to reflect your average pace (lower is faster).
None (Flat, no wind)
Slightly Challenging (Gentle hills or light wind)
Moderately Challenging (Hilly terrain or moderate wind)
Very Challenging (Steep hills or strong wind)
Factors that can increase calorie burn.
A running calculator for weight loss is a specialized tool designed to estimate the number of calories a person burns during a running session. It takes into account various factors like your body weight, the distance you cover, the duration of your run, and even the intensity of your effort and environmental conditions. The primary goal of such a calculator is to provide runners with a quantitative understanding of their energy expenditure, which is a crucial component in any weight loss strategy. By knowing how many calories they burn, individuals can better manage their caloric intake and expenditure, aligning their running activities with their weight management goals.
Who should use it? Anyone engaged in running for weight loss, from beginners to experienced marathoners, can benefit from this tool. It's particularly useful for individuals who are tracking their macronutrients, calories consumed, and calories burned to achieve a specific caloric deficit. Athletes looking to optimize their training for fat loss will also find it valuable.
Common misconceptions include believing that simply running guarantees weight loss without considering diet, or assuming that all running sessions burn the same amount of calories regardless of pace or conditions. This calculator helps clarify that multiple variables influence calorie expenditure.
Running Calculator for Weight Loss: Formula and Mathematical Explanation
The core of our running calculator for weight loss relies on established physiological principles for estimating energy expenditure during physical activity. The most common formula used is based on the concept of Metabolic Equivalents (METs).
MET (Metabolic Equivalent of Task): This represents the ratio of the energy expended by an individual during physical activity compared to the energy expended during rest. A MET value of 1 is equivalent to resting metabolism. Running typically has MET values ranging from 7 to 12, depending on the pace.
Weight (kg): Your body weight in kilograms is a primary determinant of calorie expenditure. A heavier individual will generally burn more calories than a lighter individual performing the same activity for the same duration.
Duration (hours): The total time spent running. The longer you run, the more calories you burn. This is converted to hours for the formula.
Environmental Factor: This multiplier accounts for external conditions that can affect the energy cost of running. Running uphill, against wind, or in extreme temperatures can increase calorie expenditure beyond what the basic MET formula suggests.
Calculating MET from Pace: While MET values are often looked up in tables, a rough estimation based on running pace (minutes per mile) can be incorporated. Faster paces generally correspond to higher MET values. For instance:
4 min/mile (very fast): ~12.0 METs
6 min/mile (fast): ~10.0 METs
8 min/mile (moderate): ~8.0 METs
10 min/mile (slower): ~7.0 METs
12 min/mile (very slow): ~6.0 METs
Our calculator estimates MET based on the input pace. The Environmental Factors are applied as a multiplier to fine-tune the estimate.
Variable Breakdown for Running Calorie Calculation
Variable
Meaning
Unit
Typical Range/Notes
Weight
Body mass of the individual
Kilograms (kg)
e.g., 50 – 120 kg
Distance
Length covered during the run
Kilometers (km) or Miles (mi)
Variable, e.g., 1 – 42 km
Duration
Time spent running
Minutes or Hours
Variable, e.g., 10 – 180 minutes
Pace
Average speed of the run
Minutes per Mile (min/mile) or Minutes per Kilometer (min/km)
e.g., 4 – 12 min/mile
MET
Metabolic Equivalent of Task
Unitless
Estimated based on pace, typically 6.0 – 12.0 for running
Environmental Factor
Multiplier for external conditions
Unitless
1.0 (ideal) to ~1.15 (challenging)
Calories Burned
Total estimated energy expenditure
Kilocalories (kcal)
Result of the calculation
Practical Examples of Using the Running Calculator for Weight Loss
Understanding the practical application of the running calculator for weight loss is key to leveraging its benefits. Here are a couple of real-world scenarios:
Example 1: Weekend Long Run for Fat Burning
Scenario: Sarah weighs 68 kg and is training for a half-marathon. She completes a 10 km run at a pace of 5:30 min/km (approx. 8:51 min/mile). The weather is pleasant with no significant wind or hills.
Inputs for Calculator:
Weight: 68 kg
Distance: 10 km
Distance Unit: km
Duration: 55 minutes (10 km * 5.5 min/km)
Duration Unit: minutes
Running Intensity (Pace): ~8.8 min/mile (estimated from 5:30 min/km)
Environmental Factors: None (1.0)
Estimated Output:
Calories Burned: ~620 kcal
Calories Burned per Minute: ~11.3 kcal/min
Estimated MET Value: ~8.0
Financial Interpretation: Sarah burned approximately 620 kcal during her run. If her goal is to lose 0.5 kg per week (roughly 3500 kcal deficit), this run contributes about 17.7% of that weekly goal. She can use this information to adjust her daily caloric intake accordingly, ensuring she maintains a deficit without overcompensating.
Example 2: High-Intensity Interval Training (HIIT) Run
Scenario: Mark weighs 82 kg and incorporates running intervals into his routine. He runs a total of 5 km over 30 minutes, with a very fast pace during intervals (around 4:00 min/km or 6:26 min/mile) interspersed with jogging recovery. The run involves some moderate inclines.
Inputs for Calculator:
Weight: 82 kg
Distance: 5 km
Distance Unit: km
Duration: 30 minutes
Duration Unit: minutes
Running Intensity (Pace): ~6.5 min/mile (averaged over the session)
Financial Interpretation: Despite the shorter duration compared to Sarah's run, Mark's higher intensity and the challenging terrain resulted in a significant calorie burn per minute. The ~485 kcal burned contribute substantially to his daily energy deficit. This highlights how intensity and environmental conditions play a major role in the efficiency of a running calculator for weight loss.
How to Use This Running Calculator for Weight Loss
Using our running calculator for weight loss is straightforward and designed to provide quick, actionable insights. Follow these simple steps:
Step-by-Step Instructions:
Enter Your Weight: Input your current body weight in kilograms (kg) or pounds (lbs). The calculator will convert lbs to kg internally for accuracy.
Input Run Distance: Enter the total distance you covered during your run. Select the appropriate unit (Kilometers or Miles).
Input Run Duration: Enter the total time your run took. Choose between Minutes or Hours.
Select Pace/Intensity: Use the slider to indicate your average running pace. A lower number (e.g., 5 min/mile) signifies a faster pace and higher intensity, while a higher number (e.g., 10 min/mile) indicates a slower pace. The calculator estimates MET values based on this input.
Adjust Environmental Factors: Choose the option that best describes the conditions of your run (flat, hills, wind, etc.). This adjusts the calorie burn estimate.
Click 'Calculate Calories': Once all fields are populated, click the button to see your results.
How to Read Results:
Primary Result (Total Calories Burned): This is the main output, shown prominently in large font. It represents the estimated total kilocalories (kcal) burned during your run.
Intermediate Values: You'll see 'Calories Burned per Minute', 'Estimated MET Value', and 'Total Energy Expenditure'. These provide a more granular breakdown of your run's impact.
Key Assumptions: This section summarizes the inputs used for the calculation, allowing you to quickly verify the data.
Formula Used: A brief explanation of the underlying formula is provided for transparency.
Decision-Making Guidance:
The primary use of this calculator is to inform your weight loss strategy. Aim for a consistent caloric deficit over time. For example, to lose approximately 1 pound (0.45 kg) of fat per week, you need a deficit of about 3500 kcal. If a typical run burns 500 kcal, you need to create an additional 3000 kcal deficit through diet or exercise over the week. Use the 'Calories Burned per Minute' to compare the efficiency of different runs and adjust your training intensity or duration. Remember that diet is equally, if not more, important than exercise for weight loss. Ensure your nutritional intake supports your activity level and caloric goals.
Key Factors That Affect Running Calculator for Weight Loss Results
While a running calculator for weight loss provides valuable estimates, several key factors can influence the actual calorie expenditure. Understanding these nuances helps in interpreting the results and refining your approach:
Body Composition (Muscle vs. Fat): The calculator typically uses total body weight. However, muscle tissue is more metabolically active than fat tissue. An individual with higher muscle mass may burn more calories at rest and during exercise than someone of the same weight but with lower muscle mass. Our calculator assumes an average body composition.
Running Economy: This refers to the efficiency of your running form. More efficient runners use less oxygen (and thus fewer calories) to maintain a given pace. Factors like stride length, cadence, and posture play a role. Elite runners often have better running economy.
Fitness Level: As your cardiovascular fitness improves, your body becomes more efficient at utilizing oxygen and energy. This means that over time, you might burn slightly fewer calories running the same pace and distance compared to when you first started.
Terrain and Incline: Running uphill requires significantly more energy than running on a flat surface. Even seemingly small inclines can increase calorie burn substantially. Our environmental factor attempts to account for this, but precise adjustments are difficult.
Environmental Conditions: Extreme temperatures (hot or cold) and wind resistance can also affect calorie expenditure. Your body works harder to regulate temperature in heat or cold. Running into a strong headwind requires more effort.
Hydration and Nutrition Status: Dehydration can impair performance and potentially affect metabolic rate. Glycogen stores (carbohydrates) also play a role; running on depleted fuel might feel harder and could alter energy substrate utilization, though the net calorie burn impact is complex.
Individual Metabolism: Basal Metabolic Rate (BMR) varies significantly between individuals due to genetics, age, sex, and hormonal factors. While MET values are standardized, your personal metabolic response to exercise can differ.
Post-Exercise Oxygen Consumption (EPOC): High-intensity exercise, including running, can lead to an elevated metabolic rate for a period after the workout (the "afterburn effect"). Standard calculators often don't fully capture this prolonged calorie expenditure.
By considering these factors, you can gain a more realistic perspective on your energy expenditure and optimize your training and nutrition plans for effective running for weight loss.
Frequently Asked Questions (FAQ) about Running for Weight Loss
Is calorie counting from running calculators accurate enough for weight loss?
Running calculators provide estimates, not exact figures. Accuracy depends on the sophistication of the formula and the quality of your input data. For weight loss, consistency is key. Use the calculator's output as a guide to achieve a caloric deficit rather than a precise daily target. Diet remains the most significant factor.
How many calories should I aim to burn per run for weight loss?
This depends on your overall caloric deficit goal. To lose 1 lb (0.45 kg) of fat per week, you need a deficit of 3500 kcal. If your diet provides a 2500 kcal weekly deficit, you'd aim to burn an additional 1000 kcal through exercise, perhaps spread across several runs. Use the calculator to understand how different runs contribute.
Does running uphill burn significantly more calories?
Yes, significantly. Running uphill increases the workload on your muscles and requires overcoming gravity, leading to a higher energy demand. Our calculator's 'Environmental Factors' option accounts for this, but the exact increase can vary.
Is it better to run longer at a slower pace or shorter at a faster pace for weight loss?
Both approaches burn calories. Longer, slower runs might burn more total calories during the session itself and can improve endurance. Shorter, faster runs (like intervals) can burn a high number of calories in less time and potentially lead to a greater EPOC (afterburn effect). A balanced approach incorporating both is often most effective for overall fitness and weight management.
Should I use my weight in pounds or kilograms for the calculator?
The calculator accepts both. If you input pounds, it will automatically convert to kilograms for the calculation, as most scientific formulas use metric units. Ensure you select the correct unit upon entry.
What is a typical MET value for running?
MET values for running vary greatly with pace. Resting metabolism is 1 MET. Running at a slow pace (e.g., 10 min/mile) is around 6-7 METs, while running at a fast pace (e.g., 6 min/mile) can be 10 METs or higher. Our calculator estimates MET based on your entered pace.
Can I use this calculator for jogging or walking?
While designed for running, you can adapt it for brisk walking or jogging by selecting a slower pace (higher min/mile value) and potentially a lower MET value if you have external data. For true walking, a dedicated walking calorie calculator might be more precise.
How does wind affect calorie burn during running?
Running into a headwind increases resistance, requiring more effort and thus burning more calories. Running with a tailwind can slightly decrease the effort needed. Our 'Environmental Factors' account for this generally, categorizing it as slightly, moderately, or very challenging.
Related Tools and Internal Resources
BMI CalculatorUnderstand your Body Mass Index and its relation to healthy weight ranges.
Calorie Deficit CalculatorCalculate your daily calorie needs and determine the deficit required for weight loss.
Macronutrient CalculatorDetermine the optimal breakdown of protein, carbs, and fats for your goals.
Running Pace CalculatorConvert between different pace units and calculate race finish times.
Heart Rate Zone CalculatorFind your target heart rate zones for training intensity and calorie burn optimization.
Hydration Needs CalculatorEstimate your daily water intake based on activity level and environmental factors.
var weightInput = document.getElementById('userWeight');
var distanceInput = document.getElementById('runDistance');
var distanceUnitSelect = document.getElementById('distanceUnit');
var durationInput = document.getElementById('runDuration');
var durationUnitSelect = document.getElementById('durationUnit');
var intensityInput = document.getElementById('runningIntensity');
var intensityValueSpan = document.getElementById('runningIntensityValue');
var envFactorSelect = document.getElementById('environmentalFactors');
var weightError = document.getElementById('userWeightError');
var distanceError = document.getElementById('runDistanceError');
var durationError = document.getElementById('runDurationError');
var primaryResultSpan = document.getElementById('primaryResult');
var caloriesPerMinuteSpan = document.getElementById('caloriesPerMinute');
var estimatedMetSpan = document.getElementById('estimatedMet');
var totalEnergyExpendedSpan = document.getElementById('totalEnergyExpended');
var assumptionWeightSpan = document.getElementById('assumptionWeight');
var assumptionDistanceSpan = document.getElementById('assumptionDistance');
var assumptionDurationSpan = document.getElementById('assumptionDuration');
var assumptionPaceSpan = document.getElementById('assumptionPace');
var assumptionEnvironmentSpan = document.getElementById('assumptionEnvironment');
var chart;
var runChartCanvas = document.getElementById('runChart').getContext('2d');
var MET_VALUES = {
'6.0': 6.0, // 12 min/mile
'6.5': 6.5, // 11.5 min/mile
'7.0': 7.0, // 10 min/mile
'7.5': 7.5, // 9.5 min/mile
'8.0': 8.0, // 8 min/mile
'8.5': 8.5, // 7.5 min/mile
'9.0': 9.0, // 7 min/mile
'9.5': 9.5, // 6.5 min/mile
'10.0': 10.0, // 6 min/mile
'10.5': 10.5, // 5.7 min/mile
'11.0': 11.0, // 5.5 min/mile
'11.5': 11.5, // 5.2 min/mile
'12.0': 12.0 // 5 min/mile
};
function initializeChart() {
chart = new Chart(runChartCanvas, {
type: 'line',
data: {
labels: [],
datasets: [{
label: 'Calories Burned (kcal)',
data: [],
borderColor: 'var(–primary-color)',
fill: false,
tension: 0.1
}, {
label: 'MET Value',
data: [],
borderColor: 'var(–success-color)',
fill: false,
tension: 0.1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true
}
},
plugins: {
legend: {
position: 'top',
},
title: {
display: true,
text: 'Calorie Burn and MET Progression Over Run Duration'
}
}
}
});
}
function updateChart(durationMinutes, currentCalories, currentMET) {
if (!chart) {
initializeChart();
}
var currentLabels = chart.data.labels;
var caloriesData = chart.data.datasets[0].data;
var metData = chart.data.datasets[1].data;
currentLabels.push(durationMinutes.toFixed(1) + ' min');
caloriesData.push(currentCalories);
metData.push(currentMET);
// Limit data points to prevent excessive slowdown/clutter
var maxDataPoints = 20;
if (currentLabels.length > maxDataPoints) {
currentLabels.shift();
caloriesData.shift();
metData.shift();
}
chart.update();
}
function validateInput(value, inputElement, errorElement, min = null, max = null) {
var errorMsg = "";
if (value === "") {
errorMsg = "This field cannot be empty.";
} else {
var numValue = parseFloat(value);
if (isNaN(numValue)) {
errorMsg = "Please enter a valid number.";
} else if (numValue < 0) {
errorMsg = "Value cannot be negative.";
} else if (min !== null && numValue max) {
errorMsg = "Value is too high.";
}
}
errorElement.textContent = errorMsg;
return errorMsg === "";
}
function calculateCalories() {
var isValid = true;
var weight = parseFloat(weightInput.value);
isValid = validateInput(weightInput.value, weightInput, weightError, 1) && isValid;
var distance = parseFloat(distanceInput.value);
isValid = validateInput(distanceInput.value, distanceInput, distanceError, 0.1) && isValid;
var duration = parseFloat(durationInput.value);
isValid = validateInput(durationInput.value, durationInput, durationError, 1) && isValid;
if (!isValid) {
resetResults();
return;
}
var distanceUnit = distanceUnitSelect.value;
var durationUnit = durationUnitSelect.value;
var envFactor = parseFloat(envFactorSelect.value);
var intensityValue = parseFloat(intensityInput.value); // This is pace in min/mile
// Convert inputs to standard units (kg, km, hours)
var weightKg = (distanceUnit === 'miles' && weightInput.getAttribute('data-unit') === 'lbs') ? weight * 0.453592 : weight; // Assuming input is kg by default unless specified
if (weightInput.value && !weightInput.value.includes('.')) { // Simple check if it might be lbs
weightKg = parseFloat(weightInput.value) * 0.453592;
} else {
weightKg = parseFloat(weightInput.value);
}
if(isNaN(weightKg) || weightKg <= 0) weightKg = 70; // Default if invalid
var distanceKm = distance;
if (distanceUnit === 'miles') {
distanceKm = distance * 1.60934;
}
var durationHours = duration;
if (durationUnit === 'minutes') {
durationHours = duration / 60;
}
if(isNaN(durationHours) || durationHours <= 0) durationHours = 1; // Default if invalid
// Estimate MET based on pace (min/mile)
// We need to map the slider value to a MET value.
// Slider range 4-12 maps roughly to METs 12.0 – 6.0
var estimatedMET = MET_VALUES[intensityValue.toFixed(1)] || 7.0; // Default MET if value not found
// Calculate Calories Burned
var caloriesBurned = (estimatedMET * weightKg * durationHours) * envFactor;
var caloriesPerMinute = caloriesBurned / durationHours / 60;
var totalEnergyExpended = caloriesBurned; // This is the same as caloriesBurned in this context
// Update Results Display
primaryResultSpan.textContent = Math.round(caloriesBurned) + ' kcal';
caloriesPerMinuteSpan.textContent = Math.round(caloriesPerMinute) + ' kcal/min';
estimatedMetSpan.textContent = estimatedMET.toFixed(1);
totalEnergyExpendedSpan.textContent = Math.round(totalEnergyExpended) + ' kcal';
// Update Assumptions Display
assumptionWeightSpan.textContent = weightKg.toFixed(1) + ' kg';
var displayDistance = distance.toFixed(2) + ' ' + distanceUnit;
assumptionDistanceSpan.textContent = displayDistance;
var displayDuration = duration.toFixed(0) + ' ' + durationUnit;
assumptionDurationSpan.textContent = displayDuration;
assumptionPaceSpan.textContent = intensityValue.toFixed(1) + ' min/mile';
assumptionEnvironmentSpan.textContent = envFactorSelect.options[envFactorSelect.selectedIndex].text;
// Update Table
document.getElementById('tableWeight').textContent = weightKg.toFixed(1) + ' kg';
document.getElementById('tableDistance').textContent = displayDistance;
document.getElementById('tableDuration').textContent = displayDuration;
document.getElementById('tablePace').textContent = intensityValue.toFixed(1) + ' min/mile';
document.getElementById('tableMet').textContent = estimatedMET.toFixed(1);
document.getElementById('tableEnvironment').textContent = envFactorSelect.options[envFactorSelect.selectedIndex].text;
document.getElementById('tableCaloriesTotal').textContent = Math.round(caloriesBurned) + ' kcal';
document.getElementById('tableCaloriesPerMinute').textContent = Math.round(caloriesPerMinute) + ' kcal/min';
// Update Chart
// For simplicity, let's update the chart with the final values.
// A more complex chart could show progression over time.
// For this example, we'll just add the final point.
updateChart(durationHours * 60, caloriesBurned, estimatedMET);
}
function resetCalculator() {
weightInput.value = '70';
distanceInput.value = '5';
distanceUnitSelect.value = 'km';
durationInput.value = '30';
durationUnitSelect.value = 'minutes';
intensityInput.value = '8.0'; // Corresponds to ~8 min/mile pace
intensityValueSpan.textContent = '8.0 min/mile (approx)';
envFactorSelect.value = '1';
// Clear errors
weightError.textContent = '';
distanceError.textContent = '';
durationError.textContent = '';
// Reset results display
resetResults();
if(chart) {
chart.data.labels = [];
chart.data.datasets[0].data = [];
chart.data.datasets[1].data = [];
chart.update();
}
}
function resetResults() {
primaryResultSpan.textContent = '0 kcal';
caloriesPerMinuteSpan.textContent = '0 kcal/min';
estimatedMetSpan.textContent = '0';
totalEnergyExpendedSpan.textContent = '0 kcal';
assumptionWeightSpan.textContent = '–';
assumptionDistanceSpan.textContent = '–';
assumptionDurationSpan.textContent = '–';
assumptionPaceSpan.textContent = '–';
assumptionEnvironmentSpan.textContent = '–';
document.getElementById('tableWeight').textContent = '–';
document.getElementById('tableDistance').textContent = '–';
document.getElementById('tableDuration').textContent = '–';
document.getElementById('tablePace').textContent = '–';
document.getElementById('tableMet').textContent = '–';
document.getElementById('tableEnvironment').textContent = '–';
document.getElementById('tableCaloriesTotal').textContent = '–';
document.getElementById('tableCaloriesPerMinute').textContent = '–';
}
function copyResults() {
var resultsText = "— Running Calorie Calculation Results —\n\n";
resultsText += "Primary Result: " + primaryResultSpan.textContent + "\n";
resultsText += "Calories Burned per Minute: " + caloriesPerMinuteSpan.textContent + "\n";
resultsText += "Estimated MET Value: " + estimatedMetSpan.textContent + "\n";
resultsText += "Total Energy Expended: " + totalEnergyExpendedSpan.textContent + "\n\n";
resultsText += "Key Assumptions:\n";
resultsText += "Weight: " + assumptionWeightSpan.textContent + "\n";
resultsText += "Distance: " + assumptionDistanceSpan.textContent + "\n";
resultsText += "Duration: " + assumptionDurationSpan.textContent + "\n";
resultsText += "Pace: " + assumptionPaceSpan.textContent + "\n";
resultsText += "Environment: " + assumptionEnvironmentSpan.textContent + "\n\n";
resultsText += "Formula Used: Calories Burned = (MET * Weight_kg * Duration_hours) * Environmental_Factor\n";
// Use a temporary textarea to copy text
var textArea = document.createElement("textarea");
textArea.value = resultsText;
textArea.style.position = "fixed"; // Avoid scrolling to bottom of page
textArea.style.top = 0;
textArea.style.left = 0;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'Results copied to clipboard!' : 'Failed to copy results.';
console.log(msg);
// Optionally, show a temporary message to the user
var copyButton = document.getElementById('copyBtn');
var originalText = copyButton.textContent;
copyButton.textContent = 'Copied!';
setTimeout(function() {
copyButton.textContent = originalText;
}, 2000);
} catch (err) {
console.error('Unable to copy.', err);
alert('Failed to copy results. Please copy manually.');
} finally {
document.body.removeChild(textArea);
}
}
// Update intensity display when slider changes
intensityInput.addEventListener('input', function() {
intensityValueSpan.textContent = this.value + ' min/mile (approx)';
});
// Initial calculation and chart setup
document.addEventListener('DOMContentLoaded', function() {
// Set current year in footer
document.getElementById('currentYear').textContent = new Date().getFullYear();
// Initial setup and calculation
resetCalculator(); // Set default values
calculateCalories(); // Perform initial calculation
// Add event listeners for real-time updates
weightInput.addEventListener('input', calculateCalories);
distanceInput.addEventListener('input', calculateCalories);
distanceUnitSelect.addEventListener('change', calculateCalories);
durationInput.addEventListener('input', calculateCalories);
durationUnitSelect.addEventListener('change', calculateCalories);
intensityInput.addEventListener('input', calculateCalories);
envFactorSelect.addEventListener('change', calculateCalories);
// Initialize chart after initial calculation
initializeChart();
// Update chart with initial data (this will be empty until first calculation)
// calculateCalories() will call updateChart implicitly if logic is there
});
// FAQ functionality
var faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(function(item) {
var question = item.querySelector('.question');
question.addEventListener('click', function() {
item.classList.toggle('open');
var answer = item.querySelector('.answer');
if (item.classList.contains('open')) {
answer.style.display = 'block';
} else {
answer.style.display = 'none';
}
});
});