/* AFB News Ticker - Main Styles */
.afb-news-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    position: relative;
    box-sizing: border-box;
}

.afb-news-ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
	font-family: inherit !important;
}

.afb-news-ticker-items {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

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

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

.afb-news-ticker-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 15px;
}

.afb-news-ticker-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
    transition: color 0.3s ease;
}

.afb-news-ticker-image {
    width: 25px;
    height: 25px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.afb-news-ticker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afb-news-ticker-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.afb-news-ticker-title {
    font-weight: 500;
}

.afb-news-ticker-excerpt {
    font-size: 0.9em;
    opacity: 0.9;
}

.afb-news-ticker-date {
    font-size: 0.9em;
    opacity: 0.8;
}

.afb-news-ticker-separator {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 5px;
}

.afb-separator-image {
    width: 20px;
    height: auto;
    max-height: 20px;
    object-fit: contain;
}

/* Label */
.afb-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: #E2A232 !important; 
    z-index: 10;
    display: flex;
    align-items: center;
    font-weight: bold;
}

/* Controls */
.afb-ticker-controls {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    gap: 5px;
}

.afb-ticker-pause,
.afb-ticker-play {
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 3px 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.afb-ticker-pause:hover,
.afb-ticker-play:hover {
    background: #fff;
}

/* RTL */
.afb-news-ticker-wrapper[data-direction="rtl"] {
    direction: rtl;
}

.afb-news-ticker-wrapper[data-direction="rtl"] .afb-ticker-label {
    left: auto;
    right: 0;
}

.afb-news-ticker-wrapper[data-direction="rtl"] .afb-ticker-controls {
    right: auto;
    left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .afb-news-ticker-item {
        padding: 0 10px;
    }
    
    .afb-ticker-label {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .afb-ticker-label {
        display: none;
    }
    
    .afb-news-ticker-image {
        width: 20px;
        height: 20px;
    }
}