/* Main Accordion Container */
.et_pb_custom_accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px; /* Adjust as needed */
  margin: 0 auto;
}

/* Accordion Items */
.et_pb_accordion_item {
  width: 100%;
  padding: 20px 0; /* Vertical padding only */
  border-bottom: 1px solid #26265d;
  transition: all 0.3s ease;
}

/* Accordion Titles */
.et_pb_accordion_title {
  font-family: 'Noto Sans', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  color: #060645;
  font-size: 20px;
  line-height: 1.3em;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

/* Title hover/focus states */
.et_pb_accordion_title:hover,
.et_pb_accordion_title:focus {
  color: #1a1a7a;
  outline: none;
}

/* Accordion Content - Base State */
.et_pb_accordion_content {
  padding: 0;
  font-family: 'Noto Sans', Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  color: #26265d;
  line-height: 1.5em;
  overflow: hidden;
  transition: 
    max-height 0.3s ease, 
    padding 0.3s ease,
    opacity 0.2s ease;
  
  /* Initially hidden */
  max-height: 0;
  opacity: 0;
}

/* Expanded State - Controlled by aria-hidden */
.et_pb_accordion_title[aria-expanded="true"] + .et_pb_accordion_content {
  max-height: 1000px; /* Adjust based on your tallest content */
  padding-bottom: 20px;
  padding-top: 15px;
  opacity: 1;
}

/* Paragraphs inside content */
.et_pb_accordion_content p {
  padding-bottom: 1em;
  margin: 0;
}

/* Accordion Icon */
/* Accordion Icon in Circle */
.et_pb_accordion_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  background-color: #d6004e;
  border-radius: 50%;
  margin-left: 15px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Plus/Minus Icon Lines */
.et_pb_accordion_icon::before,
.et_pb_accordion_icon::after {
  content: '';
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

/* Horizontal Line */
.et_pb_accordion_icon::before {
  width: 14px;
  height: 2px;
}

/* Vertical Line */
.et_pb_accordion_icon::after {
  width: 2px;
  height: 14px;
}

/* Active State - Rotate to minus */
.et_pb_accordion_item.active .et_pb_accordion_icon {
  background-color: #060645; /* Darker color when active */
}

.et_pb_accordion_item.active .et_pb_accordion_icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* Hover States */
.et_pb_accordion_title:hover .et_pb_accordion_icon {
  background-color: #b80042; /* Slightly darker pink on hover */
}

.et_pb_accordion_item.active .et_pb_accordion_title:hover .et_pb_accordion_icon {
  background-color: #04042d; /* Darker blue on active hover */
}

/* Active state icon - now controlled by aria-expanded */
.et_pb_accordion_title[aria-expanded="true"] .et_pb_accordion_icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .et_pb_accordion_title {
    font-size: 18px;
  }
  
  .et_pb_accordion_content {
    font-size: 16px;
  }
}