.news-ticker-container {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    height: 40px !important; /* Increased height for better visibility */
    line-height: 40px !important;
    max-height: 40px !important;
    display: flex !important; /* Use flexbox for layout */
    align-items: center !important; /* Vertically center items */
    width: 100% !important; /* Ensure full width */
}

.news-ticker-label {
    background-color: #ffffff;
    color: #dc3545;
    padding: 4px 10px;
    margin-right: 15px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    height: 30px;
    line-height: 22px;
    flex-shrink: 0; /* Prevent label from shrinking */
}

.ticker-scroll-area {
    display: inline-block;
    height: 40px !important;
    line-height: 40px !important;
    overflow: hidden;
    vertical-align: middle;
    flex-grow: 1; /* Allow scroll area to take remaining space */
    position: relative; /* For absolute positioning of scrolling list */
}

.scrolling-list {
    display: inline-block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 40px;
    line-height: 40px;
}

.scrolling-list li {
    display: inline-block;
    margin-right: 50px;
    height: 40px;
    line-height: 40px;
}

.scrolling-list a {
    color: var(--aptia-green-dark);
    text-decoration: none;
    height: 40px;
    line-height: 40px;
}

.scrolling-list a:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ensure news ticker is visible and properly positioned on all devices */
@media (max-width: 768px) {
    .news-ticker-container {
        display: flex !important;
        height: 40px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .ticker-scroll-area {
        display: inline-block !important;
        height: 40px !important;
        flex-grow: 1 !important;
        width: auto !important; /* Let flexbox handle width */
    }
}

/* Aptia Footer - Fixed Layout with Bold White Title and Equal Spacing */
.aptia-footer-fixed {
    background: white !important;
    border-top: 3px solid var(--aptia-green) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    min-height: 50px !important;
}

.quick-links-title {
    color: white !important;
    background: var(--aptia-green) !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.quick-links-nav {
    display: flex !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

.quick-links-nav a {
    color: var(--aptia-green) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.quick-links-nav a:hover {
    color: white !important;
    background: var(--aptia-green) !important;
    border-color: var(--aptia-green) !important;
    transform: translateY(-2px) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column !important;
        padding: 10px !important;
    }
    
    .quick-links-title {
        margin-bottom: 10px !important;
    }
    
    .quick-links-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    
    .quick-links-nav a {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}

/* Fix for dynamic ticker items */
.breaking-news .ticker-item {
    color: #333 !important;
    display: inline-block;
    margin-right: 30px;
}
.breaking-news .ticker-link {
    color: #0d6efd !important; /* Bootstrap primary blue */
    text-decoration: none;
    font-weight: 600;
}
.breaking-news .ticker-link:hover {
    text-decoration: underline;
}
.breaking-news .ticker-source {
    color: #666 !important;
    font-weight: bold;
}
.breaking-news .ticker-time {
    color: #888 !important;
    font-size: 0.9em;
}
.breaking-news .ticker-separator {
    color: #ccc !important;
    margin: 0 10px;
}

/* Fix for Chatbot Z-Index */
#chatbotToggle {
    z-index: 2147483647 !important; /* Max z-index */
    position: fixed !important;
}
#chatbot-container {
    z-index: 2147483647 !important; /* Max z-index */
}
