.animated-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--text-link-color-hover);
  position: relative;
  overflow: hidden;
  min-height: 140px; /* Adjust height as needed */
  
  --side-padding: calc( (100vw - var(--container-width)) / 2 );
  padding-inline: var(--side-padding);
}

.animated-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    aspect-ratio: 1;
    background: #DCF5FF;
    border-radius: 50%;
    transition: width 1.5s ease, height 1.5s ease;
    z-index: 0;
    transform: translate(-50%, -65%);
}

.animated-banner:hover::before {
    width: 250%;
}

.animated-banner .banner-text, 
.animated-banner .banner-button {
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.animated-banner .banner-text {
  color: var(--primary-color);
  font-size: 32px;
  max-width: 65%;
}

.animated-banner .banner-button .button {
  background: #F0C864;
  border-radius: 8px;
  color: #000;
  border: 2px solid #F0C864;
  font-size: 30px;
}

.animated-banner .banner-button .button:hover,
.animated-banner .banner-button .button:focus {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #DCF5FF;
}

.mobile-image {
  display: none;
}

@media (max-width: 800px) {
  .animated-banner {
    flex-flow: column;
    justify-content: center;
    gap: 2rem;
    padding-block: var(--gap-md);
  }
  
  .animated-banner:before {
    top: unset;
    bottom: calc(var(--gap-md) + 100px + 6rem);
    left: 50%;
    width: 500% !important;
    transform: translate(-50%, 2rem);
  }
  
  .animated-banner .banner-text {
    text-align: center;
    max-width: 100%;
  }
  
  .mobile-image {
    display: block;
    height: 130px;
    align-self: start;
    margin-left: 4rem;
    margin-top: -3rem;
    z-index: 1;
  }
