.accordion-wrapper {
  &.accordion {
    .accordion-element {
      background-color: $fifth-bg;
      .card-header {
        background-color: $primary-bg;
        &:has(a[aria-expanded="true"]) {
          background-color: $color_red;
          h4 {
            a {
              color:$white !important;
            }
          }
        }

        h4.card-title,
        .card-title.h4 {
          font-family: $font-family-secondary;
          font-weight: 600;
          text-shadow: 0.25em 0.25em 0 $text-color;
          padding-left: 15px;
          color: $text-color;

          a {
            font-size: 26px;

            &:hover {
              display: contents;
            }

            &[aria-expanded="true"] {
              color: $secondary-color;
            }

            &.accordion-toggle {
              color: $white;

              &.collapsed {
                color: $white;
              }
            }

            @media only screen and (max-width: 767.95px) {
              font-size: 1.125rem !important;
            }
          }
        }
      }
      .card-body {
        padding: 30px !important;
        .frame-type-text p {
          color: $text-color;
          font-weight: 300;
        }
        ol {
          li {
            color: $text-color !important;
            font-weight: 300 !important;
            font-size: 1.125rem !important;
          }
        }
      }
      .collapse {
        background-color: $fifth-bg;
        .card-body {
          color: $text-color;
          padding: 30px 30px;
          font-size: 1.125rem !important;

          ul,
          ol {
            li {
              color: $text-color !important;
              font-size: 1.125rem !important;
              font-weight: 300 !important;

              &::marker {
                font-weight: 600;
                color: $color_red !important;
              }
            }
          }
          p {
            color: $text-color;
            font-size: 1.125rem !important;
            strong {
              font-weight: 600 !important;
            }
          }
        }
      }
    }
  }
}

.accordion {
  .card-header {
    .card-title {
      .accordion-toggle:after{
        right: 10px!important;
      }
    }
  }
}
