﻿
.crslxs-container * {
    direction: rtl;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.crslxs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.crslx-module {
    width: 100%;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
}

.module-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

    .module-header h2 {
        color: #2c3e50;
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

.crslx-wrapper {
    direction: rtl;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    padding: 20px 50px;
}

.crslx-container {
    overflow: hidden;
    width: 100%;
}

.crslx {
    display: flex;
    transition: transform 0.5s ease;
}

.crslx-item {
    flex: 0 0 calc(25% - 20px);
    margin: 10px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
    display: flex;
    flex-direction: column;
    opacity: 0.9;
    transition: transform 0.3s, opacity 0.3s;
}

    .crslx-item:hover {
        transform: translateY(-5px);
        opacity: 1;
        /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);*/
    }

    .crslx-item.even {
        /*background: linear-gradient(145deg, #e3f2fd, #bbdefb);*/
    }

.item-content {
    padding: 15px;
    text-align: center;
}

    .item-content h3 {
        color: #2c3e50;
        font-size: 1.1rem;
        margin-bottom: 8px;
        border-bottom: 2px solid #3498db;
        padding-bottom: 6px;
    }

    .item-content p {
        color: #7f8c8d;
        line-height: 1.5;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

.read-more {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 0.85rem;
}

    .read-more:hover {
        background: #2980b9;
    }

.crslx-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    /* background: #3498db; */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: gray;
    font-size: 50px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
}

    .crslx-nav:hover {
        /*background: #2980b9;*/
        transform: translateY(-50%) scale(1.1);
    }

    .crslx-nav.prev {
        right: 5px;
    }

    .crslx-nav.next {
        left: 5px;
    }

.crslx-dots {
    display: flex;
    /*display: none;*/
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #bdc3c7;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .dot.active {
        background: #3498db;
    }

.auto-play-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

    .auto-play-indicator .status {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #2ecc71;
        margin-left: 8px;
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
    background: white;
    border-radius: 15px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
}

/* رسپانسیو برای دستگاه‌های مختلف */
@media (max-width: 1200px) {
    .crslx-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .crslx-item {
        flex: 0 0 calc(50% - 20px);
    }

    .crslx-wrapper {
        padding: 20px 45px;
    }
}

@media (max-width: 768px) {
    .crslx-item {
        flex: 0 0 calc(100% - 20px);
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .module-header h2 {
        font-size: 1.4rem;
    }

    .crslx-wrapper {
        padding: 15px 40px;
    }

    .crslx-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 15px;
    }

        .page-header h1 {
            font-size: 1.5rem;
        }

    .module-header {
        padding: 10px;
    }

        .module-header h2 {
            font-size: 1.2rem;
        }

    .crslx-wrapper {
        padding: 15px 35px;
    }

    .crslx-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .item-content {
        padding: 12px;
    }

        .item-content h3 {
            font-size: 1rem;
        }
}
