.announcement-section {
    max-width: 1000px;
    margin: 40px auto 20px;
    padding: 20px 30px;
    position: relative;
    background-color: #1e1e1e;
    color: #f1f1f1;
    font-family: 'Play', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}

/* Create the animated border using ::before */
.announcement-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px; /* Border thickness */
    background: linear-gradient(90deg,
      #7a00ff,
      #00d0ff,
      #7a00ff,
      #00d0ff,
      #7a00ff);
    background-size: 400% 100%;
    animation: move-border 4s linear infinite;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude; /* to cut out inner content */
    z-index: -1;
}

/* Inner content container to sit above border */
.announcement-section > div {
    position: relative;
    z-index: 1;
}

@keyframes move-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}
