﻿.featured-slider-container {
    width: 100%;
    height: 380px; /* ارتفاع الإعلان */
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomSlow 6s ease-in-out infinite alternate;
    transition: transform 0.5s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.05);
}

.ad-overlay {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    color: #fff;
}

.ad-title,
.ad-price,
.ad-btn {
    opacity: 0;
    transform: translateY(30px);
}

.swiper-slide-active .ad-title {
    animation: textIn 0.8s ease forwards;
}

.swiper-slide-active .ad-price {
    animation: textIn 1s ease forwards;
}

.swiper-slide-active .ad-btn {
    animation: textIn 1.2s ease forwards;
}

.ad-btn {
    margin-top: 10px;
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    width: fit-content;
    text-decoration: none;
}

/* Animations */
@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes textIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .featured-slider-container {
        height: 300px;
    }

    .ad-title {
        font-size: 1.2rem;
    }

    .ad-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-slider-container {
        height: 220px;
    }

    .ad-title {
        font-size: 1rem;
    }

    .ad-price {
        font-size: 0.9rem;
    }
}
