/* slideshow.css - استایل‌های اسلایدشو */
@font-face {
    font-family: vazir;
    src: url('../music/font/Vazir.eot');
    src: url('../music/font/Vazir.eot?#iefix') format('FontName-opentype'),
         url('../music/font/Vazir.woff') format('woff'),
         url('../music/font/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ========== استایل اسلایدشو ========== */
.slideshow-container {
    position: relative;
    max-width: 770px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    //background-color: #fff;
    min-height: 400px;
    height: 600px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    padding: 20px;
    box-sizing: border-box;
}

.slide-image {
    max-width: 100%;
    max-height: 105%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: auto;
    margin-top: 80px;

}

.slide-image:hover {
    transform: scale(1.02);
}

.slide-title {
    margin-top: 20px;
    font-size: 1.4rem;
    color: #2c3e50;
    padding: 2px 25px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    width: auto;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border: 1px solid #e0e0e0;
    margin-left: auto;

}

/* فلش‌های ناوبری */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(52, 152, 219, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 16px;
    font-size: 24px;
    //border-radius: 50%;
    transition: all 0.3s;
    z-index: 100;
    width: 50px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.arrow:hover {
    background-color: rgba(41, 128, 185, 1);
    transform: translateY(-50%) scale(1.1);
}

.arrow-left {
    right: 20px;
}

.arrow-right {
    left: 20px;
}

/* نقاط ناوبری */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.dot {
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: #3498db;
    border-color: #3498db;
    transform: scale(1.2);
}

/* ========== استایل مودال ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 25px;
    left: 35px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-title {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.6rem;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    margin-bottom: -55px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .slideshow-container {
        max-width: 80%;
        height: 535px;
    }
    
    .slides {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .slides {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .arrow {
        padding: 12px;
        font-size: 20px;
        width: 45px;
        height: 45px;
    }
    
    .arrow-left {
        right: 15px;
    }
    
    .arrow-right {
        left: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }
    
    .slides {
        height: 350px;
    }
    
    .slide-title {
        font-size: 1.1rem;
        max-width: 90%;
        padding: 10px 15px;
    }
}