.announcement-bar {
    background-color: #003257;
    color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    
    /* Animation on load */
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-bar.hidden {
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        margin-top: 0;
        opacity: 1;
        transform: translateY(0);
    }
    to {
        margin-top: -80px; /* Collapse space */
        opacity: 0;
        transform: translateY(-20px);
    }
}

.announcement-text {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
}

.apply-now-btn {
    background-color: #00d2ff;
    color: #001f42;
    padding: 8px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 2; /* Ensures it sits above the background overlay */
}

.apply-now-btn:hover {
    background-color: #ffffff;
    color: #001f42;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.close-announcement {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 10px;
    position: absolute;
    right: 15px;
    z-index: 2; /* Ensures it sits above the background overlay */
}

.close-announcement:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .announcement-bar {
        flex-direction: column;
        gap: 8px;
        padding: 15px 45px 15px 15px; /* Added right padding for close button */
    }

    .announcement-text {
        font-size: 16px;
    }

    .close-announcement {
        top: 50%;
        transform: translateY(-50%);
    }
}