@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Container for the popup */
.announcement-popup {
    position: fixed;
    right: 10px;
    /* Adjust as needed for spacing from the right edge */
    top: 140px;
    /* Adjust based on your navbar's height */
    width: 400px;
    height: auto;
    min-height: 250px;
    background-color: #fff;
    /* Change as needed */
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.15);
    /* Soft shadow for a bit of depth */
    padding: 20px;
    border: 4px solid #FECE00;
    box-sizing: border-box;
    z-index: 1000;
    /* Ensure it's above other content */

    overflow: hidden;
    /* Ensures no content spills out */
    display: block;
    /* Make sure the element is displayed so the animation is visible */
    animation: slideInFromRight 0.8s ease-out forwards;

}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Responsive adjustments */
@media screen and (max-width: 330px) {
    .announcement-popup {
        width: 90%;
        right: 5%;
        /* Center it */
    }
}

/* Content styling */
.announcement-popup h2 {
    font-size: 1.5rem;
    /* Responsive font size */
    margin-top: 0;
    font-family: "Open Sans";
    font-size: 23px;
    color: #2C3377;
}

.announcement-popup p {
    font-size: 1.4rem;
    overflow-wrap: break-word;
    /* Prevents text overflow */
}

/* Button inside the popup */
.announcement-popup .announcement-button {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    border: 3px solid #FECE00;
    font-size: 20px;
    color: #FECE00;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    /* Added this line */
}

.announcement-popup .announcement-button:before {
    content: "";
    position: absolute;
    background: #FECE00;
    bottom: 0;
    left: 0;
    right: 100%;
    top: 0%;
    z-index: -1;
    transition: right 0.3s ease-in;
    /* Adjusted timing for a smoother effect */
    -webkit-transition: right 0.3s ease-in;
    /* Adjusted timing for a smoother effect */
}

.announcement-popup .announcement-button:hover:before {
    right: 0;
}

.announcement-popup .announcement-button:hover {
    color: white;
}

.announcement-popup .announcement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 24px;
    /* Adjust size as needed */
    height: 24px;
    /* Adjust size as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-popup .announcement-close::before,
.announcement-popup .announcement-close::after {
    content: '';
    position: absolute;
    height: 20px;
    /* Adjust length as needed */
    width: 3.5px;
    /* Adjust thickness as needed */
    background-color: #2C3377;
    /* Cross color */
}

.announcement-popup .announcement-close::before {
    transform: rotate(45deg);
}

.announcement-popup .announcement-close::after {
    transform: rotate(-45deg);
}


/* Image styling to ensure responsiveness */
.announcement-popup img {
    max-width: 100%;
    height: auto;
    /* Maintains aspect ratio */
    margin-bottom: 10px;
    /* Spacing below image */
}