/* Advertisement Slider Styles for Shamba Direct */
.ads-marquee-section {
    padding: 80px 0;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
}

.ads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.ads-slider {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.ad-slide {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateX(50px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.ad-card-banner {
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    height: 400px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ad-image-container {
    flex: 1.2;
    height: 100%;
    overflow: hidden;
}

.ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ad-image-container.full-width {
    flex: 1;
    width: 100%;
}

.poster-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-slide.active .ad-image-container img {
    transform: scale(1.05);
}

.ad-content-container {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to right, #ffffff, #fdfdfd);
}

.ad-tag {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    display: inline-block;
}

.ad-title {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.ad-description {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ad-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.ad-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 8px;
}

.ad-contact-item i {
    color: #16a34a;
}

.ad-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: white !important;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.15);
}

.ad-cta-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.ad-cta-btn:hover {
    background: #15803d;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(22, 163, 74, 0.25);
}

.ad-cta-btn:hover i {
    transform: translateX(4px);
}

.ad-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.ad-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

.ad-slider-dot.active {
    background: #16a34a;
    width: 35px;
    border-radius: 100px;
}

/* Progress Bar Styles */
.ad-progress-bar-container {
    width: 100%;
    max-width: 1160px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ad-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 0.1s linear;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ads-marquee-section {
    animation: slideIn 1s ease-out;
}

/* Responsive adjustments */
/* Dashboards specific adjustments */
.ads-marquee-section.dashboard-ads {
    padding: 30px 0;
    background-color: transparent;
    animation: none;
}

.dashboard-ads .ad-card-banner {
    height: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.dashboard-ads .ad-image-container {
    flex: 0.8;
}

.dashboard-ads .ad-content-container {
    padding: 30px;
}

.dashboard-ads .ad-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.dashboard-ads .ad-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-ads .ad-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dashboard-ads .ad-tag {
    margin-bottom: 10px;
    font-size: 0.7rem;
}

.dashboard-ads .ads-slider {
    min-height: 250px;
}

/* Page specific adjustments */
.homepage-ads {
    margin: 40px 0;
}

@media (max-width: 1024px) {
    .ad-title {
        font-size: 2rem;
    }

    .ad-content-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .ads-marquee-section {
        padding: 50px 0;
    }

    .ad-card-banner {
        flex-direction: column;
        height: auto;
    }

    .ad-image-container {
        width: 100%;
        height: 250px;
    }

    .ad-content-container {
        width: 100%;
        padding: 40px 30px;
    }

    .ad-title {
        font-size: 1.75rem;
    }

    .ads-slider {
        min-height: auto;
        display: block;
    }

    .ad-slide {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: none;
        width: 100%;
    }

    .ad-slide.active {
        display: block;
        transform: none;
    }

    .dashboard-ads .ad-card-banner {
        height: auto;
    }

    .dashboard-ads .ad-image-container {
        height: 180px;
    }
}

.ads-section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 25px;
    text-align: left;
}

/* Full width on smaller sections */
.container-fluid .ads-container {
    max-width: 100%;
}