/* ===== Announcement Bar (Marquee) - Fixed Bottom ===== */
.announcement-bar {
    background: linear-gradient(90deg, var(--dark-blue) 0%, #2a2f7a 50%, var(--dark-blue) 100%);
    color: white;
    padding: 14px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    border-top: 3px solid var(--accent);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.announcement-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 25px;
}

.announcement-icon {
    flex-shrink: 0;
    animation: ring 2s ease-in-out infinite;
    font-size: 1.4rem;
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(0, 168, 232, 0.6));
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

.announcement-text {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Add padding to bottom of body to prevent content from being hidden behind fixed bar */
body {
    padding-bottom: 50px !important;
}

.marquee-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    display: inline-block;
    padding-right: 100px;
}

.marquee-text .highlight {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.announcement-btn {
    flex-shrink: 0;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(225, 11, 31, 0.5);
    animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.announcement-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.6);
    color: white;
    animation: none;
}

.announcement-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 12px 0;
    }
    
    body {
        padding-bottom: 85px !important;
    }
    
    .announcement-container {
        gap: 15px;
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .announcement-icon {
        font-size: 1.2rem;
    }
    
    .marquee-text {
        font-size: 0.85rem;
    }
    
    .announcement-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        animation: pulse-button 2s ease-in-out infinite;
    }
    
    .announcement-btn:hover {
        animation: none;
    }
    
    .announcement-btn span.btn-text {
        display: inline;
    }
    
    .announcement-btn span.btn-icon-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .announcement-btn span.btn-icon-only {
        display: none;
    }
}

/* Ensure footer doesn't get hidden behind fixed bar */
footer {
    margin-bottom: 0 !important;
    padding-bottom: 80px !important;
}
