/* ============================================
   طراحی مدرن ویجت - 2 ستونی
   ============================================ */

/* ===== کانتینر اصلی ===== */
.modern-widget {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.modern-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== ستون تصویر ===== */
.modern-image-col {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modern-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.modern-image-wrapper img {
    margin: 0 auto;
}
.modern-image-wrapper:hover {
    transform: scale(1.02);
}

.modern-image-wrapper img,
.modern-image-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.modern-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ===== تصویر بج (نشان) ===== */
.modern-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 2;
    animation: floatBadge 3s ease-in-out infinite;
}

.modern-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* انیمیشن شناور بج */
@keyframes floatBadge {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
    }
}

/* ===== ستون محتوا ===== */
.modern-content-col {
    flex: 1;
    padding: 10px 0;
}

.modern-content > *:not(:last-child) {
    margin-bottom: 20px;
}

/* ===== زیرنویس ===== */
.modern-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #6c63ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-right: 25px;
    display: inline-block;
}

.modern-subtitle::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 18px;
    height: 3px;
    background: #6c63ff;
    transform: translateY(-50%);
    border-radius: 2px;
}

/* ===== عنوان ===== */
.modern-title {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0;
}

.modern-title .highlight {
    color: #6c63ff;
    position: relative;
    display: inline-block;
}

.modern-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6c63ff, transparent);
    border-radius: 2px;
    opacity: 0.3;
}

/* ===== توضیح ===== */
.modern-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

/* ===== دکمه‌ها ===== */
.modern-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.modern-btn:hover i {
    transform: translateX(4px);
}

/* ===== دکمه اول ===== */
.btn-primary {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: #ffffff !important;
    border-color: #6c63ff;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.30);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.45);
    background: linear-gradient(135deg, #5a52d5, #4a42c5);
    color: #ffffff !important;
}

/* ===== دکمه دوم ===== */
.btn-secondary {
    background: transparent;
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    border-color: #6c63ff;
    color: #6c63ff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.12);
    background: rgba(108, 99, 255, 0.05);
}

/* ============================================
   واکنش‌گرایی
   ============================================ */

/* تبلت */
@media (max-width: 992px) {
    .modern-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    
    .modern-image-col {
        flex: 0 0 100%;
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    
    .modern-content-col {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .modern-subtitle {
        padding-right: 0;
        padding-left: 0;
    }
    
    .modern-subtitle::before {
        display: none;
    }
    
    .modern-buttons {
        justify-content: center;
    }
    
    .modern-title {
        font-size: 32px;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .modern-container {
        padding: 0 10px;
        gap: 20px;
    }
    
    .modern-image-col {
        max-width: 100%;
    }
    
    .modern-badge {
        width: 60px;
        height: 60px;
        bottom: -10px;
        right: -10px;
        padding: 8px;
    }
    
    .modern-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .modern-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .modern-title {
        font-size: 26px;
    }
    
    .modern-description {
        font-size: 14px;
    }
    
    .modern-subtitle {
        font-size: 13px;
    }
}

/* صفحه‌های بزرگ */
@media (min-width: 1400px) {
    .modern-container {
        max-width: 1320px;
    }
    
    .modern-title {
        font-size: 44px;
    }
    
    .modern-description {
        font-size: 18px;
    }
}
.t1-c {
    display: grid;
    gap: 12px;
}

.custom-widget.rio-asg-content.riocode-te {

        box-shadow: 0px 20px 12px -10px rgb(227 227 227 / 50%);
    border-radius: 50px;
}
.rio-title-new-two {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.line-red {
    height: 2px;
    border-radius: 30px;
}
a.custom-button.asg-rioobtn {
    display: flex;
    align-items: center;
    gap: 16px;
}
span.discount-badge.rioshop {
    color: #fff;
    z-index: 15;
    background-color: #e80645;
    border-radius: 0 25px 25px;
    padding: 2px 6px;
    font-size: 13px;
    font-weight: 800;
    position: absolute;
    bottom: 12px;
    left: -9px;
    box-shadow: 2px 3px 4px #e806452e;
}
.discount-product-item img {
    border-radius: 10px !important;
}

.swiper.swiper-initialized.swiper-horizontal.swiper-rtl.swiper-backface-hidden swiper {
    padding: 0px !important;
}
















