
/* News Ticker Styles - Modern & Sticky */
.announcement-box {
    background: #ffffff;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    height: 50px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    font-family: 'Jost', sans-serif;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.announcement-box.static-position {
    position: relative !important;
    top: auto;
    bottom: auto;
    left: auto;
    z-index: 10;
    margin-top: 0;
    box-shadow: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: none;
}

.announcement-box .container {
    height: 100%;
}

.inner-announcement-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding-left: 40px;
}

.announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    height: 36px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    min-width: 40px;
    margin-left: 20px;
}

.announcement-icon i {
    color: #fff;
    font-size: 18px;
}

.announcement-icon::before {
    display: none;
}

/* Removed orphaned h6/a styles */

.annoucement-caption {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    /* Ensure content is visible */
    visibility: visible;
    opacity: 1;
}

.marquee-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.marquee-block {
    display: flex;
    align-items: center;
    animation: marquee-news 60s linear infinite;
    white-space: nowrap;
    /* Ensure block has width */
    min-width: 100%;
    flex-shrink: 0;
}

.newsTickerItem {
    color: #144273;
    font-size: 14px; /* Increased slightly */
    padding: 0 50px; /* More spacing */
    white-space: nowrap;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.newsTickerItem::after {
    content: '•';
    position: absolute;
    right: 0;
    color: #fd7b21;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.newsTickerItem:hover {
    color: #fd7b21;
}

.announcement-box:hover .marquee-block {
    animation-play-state: paused;
}

@keyframes marquee-news {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .announcement-box {
        bottom: 0; 
        height: 40px; /* Smaller height on mobile */
    }
    .announcement-box.static-position {
        display: none;
    }
    .announcement-icon {
        padding: 0 15px;
        height: 28px;
        margin-left: 10px;
    }
    .announcement-icon h6 {
        font-size: 11px;
    }
    .newsTickerItem {
        font-size: 11px;
        padding: 0 15px;
    }
    .newsTickerItem::after {
        font-size: 12px;
    }
}

/* Close Button */
.announcement-close {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #878C9F;
    background: #f5f7fb;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.announcement-close:hover {
    background: #fd7b21;
    color: #fff;
    box-shadow: 0 4px 10px rgba(60, 106, 253, 0.3);
}

.announcement-close i {
    font-size: 14px;
}


