﻿.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: auto;
    direction: rtl;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    direction: ltr;
}

.slider-slide {
    width: 100%;
    flex-shrink: 0;
    cursor: pointer;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
    color: #333;
}

    .slider-btn.prev {
        right: 10px;
    }

    .slider-btn.next {
        left: 10px;
    }

.slider-dots {
    text-align: center;
    margin-top: 1rem;
    direction: ltr;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

    .slider-dot.active {
        background: #333;
    }

/* مودال اصلی */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

    /* تصویر درون مودال */
    .image-modal img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

/* دکمه بستن */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

    .close-modal:hover {
        color: #ccc;
    }

/* در صورتی که بخوای با انیمیشن باز بشه */
.image-modal.show {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.ad-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(to left, #f8f9fa, #ffffff);
    padding: 1rem 1.5rem;
    border-right: 5px solid #dc3545;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-title i {
    color: #dc3545;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .ad-title {
        font-size: 1.4rem;
        padding: 0.8rem 1rem;
    }

        .ad-title i {
            font-size: 1.2rem;
        }
}


.ad-description {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    line-height: 2;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
}

.ad-description span {
    font-size: 20px;
    margin-bottom: 1rem;
    color: #0d6efd;
    display: flex;
    align-items: center;
}

.ad-description p {
    color:rgba(0, 0, 0, 0.9) !important;
    margin: 0;
    white-space: pre-wrap;
    font-size:14px;
}

@media (max-width: 768px) {
    .ad-description {
        font-size: 1rem;
        padding: 1rem;
    }

        .ad-description h2 {
            font-size: 1.2rem;
        }
}
