/* Accordion Container */
.accordion {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  width: 100%;
}

/* Accordion Item */
.accordion-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 5px;
}

/* Remove bottom border for last item */
.accordion-item:last-child {
  border-bottom: none;
}

/* Accordion Header */
.accordion-header {
  background-color: #f9f9f9;
  cursor: pointer;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.accordion-header:hover {
  background-color: #eaeaea;
}

/* Arrow Indicator for Accordion (Optional) */
.accordion-header::after {
  content: "\25B6"; /* Right arrow */
  font-size: 16px;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  transform: rotate(90deg); /* Downward arrow */
}

/* Accordion Content (Hidden by Default) */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

/* Accordion Content when Active */
.accordion-content.active {
  max-height: 500px; /* Adjust according to your content length */
  padding: 15px;
}

/* Styling Inside Accordion Content */
.accordion-content p,
.accordion-content h4,
.accordion-content ul {
  margin: 10px 0;
}

.accordion-content ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Responsive Styles for Mobile Devices */
@media only screen and (max-width: 767px) {
  .accordion-header {
    font-size: 14px;
    padding: 10px;
  }

  .accordion-content {
    padding: 10px;
  }

  .accordion-content.active {
    max-height: 300px; /* Adjust as per mobile content length */
  }
}

/* Responsive Styles for Tablets */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .accordion-header {
    font-size: 16px;
    padding: 12px;
  }

  .accordion-content {
    padding: 12px;
  }
}

/* Desktop Styles */
@media only screen and (min-width: 1025px) {
  .accordion-header {
    font-size: 18px;
    padding: 15px;
  }

  .accordion-content {
    padding: 15px;
  }
}

/* Custom Styling for an Active Accordion Header */
.accordion-header.active {
  background-color: #e0f7fa; /* Change background color for open accordion */
  border-color: #007bff;
}
