.custom-title {
  /*display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;*/
}

.custom-title span.highlight {
  display: inline-block;
  transform: rotate(var(--highlight-rotation));
  padding: 0rem 1rem;
  width: auto;
  text-align: center; /* Center text */
  position: relative; /* Position text */
  z-index: 1;
}

.custom-title span.highlight:before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  width: 0;
  left: 0;
  right: 100%;
  bottom: 0;
  background-color : var(--highlight-bg-color);
  z-index: -1;
  transition: .5s width ease;
  transition-delay: var(--animation-delay);
}

.custom-title span.highlight.active:before {
  width: 100%;
}

.custom-title span.svg svg {
  width: 50px;
  height: auto;
  stroke-width: 2;
  fill: none;
  animation: dash 2s linear forwards;
}

.dashed-title .custom-title{
  position: relative;
  padding-left: 0rem;
  transition: .3s padding-left ease;
}

.dashed-title .custom-title:before{
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: .5rem;
  background-color: var(--e-global-color-accent);
  transition: .3s width ease;
}

@media screen and (min-width:768px){
  .dashed-title .custom-title:before{
    height: .5rem;
    top: 1rem;
  }

  .dashed-title.center .custom-title:before{
    top : 50%;
    transform: translateY(-50%);
  }
}

@media screen and (max-width:767px){
  .dashed-title .custom-title:before{
    height: .4rem;
    top: 0.65rem;
  }

  .dashed-title.center .custom-title:before{
    top : 50%;
    transform: translateY(-50%);
  }
}


@media screen and (min-width:768px){
  .dashed-title .custom-title.active:before{
    width: 2.5rem;
  }
}

@media screen and (max-width:767px){
  .dashed-title .custom-title.active:before{
    width: 1.25rem;
  }
}

@media screen and (min-width:768px){
  .dashed-title .custom-title.active{
    padding-left: 4rem;
  }
}

@media screen and (max-width:767px){
  .dashed-title .custom-title.active{
    padding-left: 2rem;
  }
}

@keyframes dash {
  from {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
  }
  to {
    stroke-dasharray: 500;
    stroke-dashoffset: 0;
  }
}