/* Reset default margins and paddings for all elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Style for the main FAQ container */
.faq-container {
  max-width: 800px; /* Limit the width for better readability */
  margin: 50px auto; /* Center the container and add vertical spacing */
  padding: 20px;
  font-family: 'Arial, sans-serif';
  color: #333; /* Base text color */
}

/* Style for the main title */
.faq-container h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue color for the title */
}

/* Style for each FAQ item */
.faq-item {
  border-bottom: 1px solid #ddd; /* Light gray border between items */
  overflow: hidden; /* Hide overflowing content */
}

/* Style for the question buttons */
.faq-question {
  background-color: #ecf0f1; /* Light gray background */
  width: 100%;
  padding: 20px;
  text-align: left;
  font-size: 18px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease; /* Smooth background transition on hover */
}
/* Hover effect for question buttons */
.faq-question:hover {
  background-color: #d0d7de; /* Slightly darker gray on hover */
}

/* Style for the arrow icon */
.faq-question .arrow {
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the arrow when the question is active (expanded) */
.faq-question.active .arrow {
  transform: rotate(180deg); /* Rotate arrow 180 degrees */
}

/* Style for the answer sections */
.faq-answer {
  max-height: 0; /* Initially hide the answer */
  overflow: hidden;
  transition: max-height 0.3s ease; /* Smooth transition for expanding */
  background-color: #fff; /* White background for answers */
}

/* Style for the answer text */
.faq-answer p {
  padding: 20px;
  font-size: 16px;
  line-height: 1.5; /* Increase line height for better readability */
  color: #555; /* Slightly lighter text color for answers */
}

/* Harmonious color palette for the body background */
body {
  background-color: #f5f7fa; /* Very light blue-gray background */
}