/* Bulletproof banner animation fix */
.special-offer-banner {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 0;
    text-align: center;
    font-weight: 700;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2147483646;
    overflow: hidden;
}

/* RESET any previous animations */
.offer-text {
    animation: none;
    width: auto;
    white-space: nowrap;
    display: inline-block;
    transform: none;
    will-change: auto;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* Force icon styling */
.offer-text i.fas {
    margin: 0 10px;
    color: white;
}

/* New wrapper for animation */
.special-offer-banner {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* Apply animation to the offer-text directly */
.offer-text {
    display: inline-block;
    white-space: nowrap;
    animation: banner-move 12s linear infinite;
}

@keyframes banner-move {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header positioned below banner */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    top: 3rem; /* Position below the banner */
    left: 0;
    width: 100%;
    z-index: 2147483645;
    box-shadow: 0 4px 20px rgba(45, 27, 174, 0.08);
    border-bottom: 1px solid rgba(45, 27, 174, 0.05);
    transition: all 0.3s ease;
}

/* Spacing for hero section */
.hero-section,
#hero,
main, 
.main-content, 
#main,
section:first-of-type {
    padding-top: 180px !important;
    margin-top: 0 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .special-offer-banner {
        padding: 0.6rem 0;
        overflow: hidden !important;
    }
    
    /* Fix mobile animation - with !important to override any other styles */
    .offer-text {
        animation: banner-move-mobile 15s linear infinite !important;
        font-size: 0.9rem;
        transform: translateZ(0) !important; /* Hardware acceleration */
        width: auto !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
    
    header {
        top: 2.5rem; /* Slightly less space on mobile */
    }
    
    .hero-section,
    #hero,
    main, 
    .main-content, 
    #main,
    section:first-of-type {
        padding-top: 160px !important;
    }
}

/* Define mobile animation outside media query to ensure it's properly loaded */
@keyframes banner-move-mobile {
    0% { transform: translateX(100vw) !important; }
    100% { transform: translateX(-300%) !important; }
}
