/* Marketing Ad Banner Styles */
.ad-banner-container {
    width: 100%;
    overflow: hidden; /* Hides the duplicated track */
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    padding: 10px 0;
}

.ad-banner-track {
    display: inline-block;
    animation: scroll-left 40s linear infinite; /* Adjust time for speed */
}

.ad-card {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 5px 15px;
    margin-right: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    min-width: 300px; /* Ensures visible size for each ad */
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ad-card-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.ad-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0;
}

.ad-card-description {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Keyframe animation for the continuous horizontal scroll */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translate half the total length (original + duplicate) to simulate infinite scroll */
        transform: translateX(-50%); 
    }
}