/* ============================================================
   Akhlaghi Widget Slider - Updated (v6)
   ============================================================ */

.akw-slider-wrapper {
    position: relative;
    width: 100%;
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a2e;
    box-sizing: border-box;
}

.akw-slider-wrapper *,
.akw-slider-wrapper *::before,
.akw-slider-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.akw-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.akw-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============ اسلاید پایه ============ */
.akw-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #000;
}

.akw-slide-img-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.akw-slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.akw-slide-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.akw-slide-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    width: 100%;
    max-width: 800px;
}

.akw-badge {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 16px;
}

.akw-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.akw-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ddd;
    font-size: 14px;
    margin-bottom: 24px;
}

.akw-meta-item {
    display: inline-flex;
    align-items: center;
}

.akw-btn {
    display: inline-block;
    background: #e63946;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.akw-btn:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

/* ============ دکمه‌های ناوبری (اصلاح جهت) ============ */
.akw-slider-wrapper > .akw-prev,
.akw-slider-wrapper > .akw-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.akw-slider-wrapper > .akw-prev:hover,
.akw-slider-wrapper > .akw-next:hover {
    background: #e63946;
    border-color: #e63946;
}

/* قبلی در سمت راست، بعدی در سمت چپ */
.akw-slider-wrapper > .akw-prev { right: 20px; }
.akw-slider-wrapper > .akw-next { left: 20px; }

/* ============ نقطه‌ها ============ */
.akw-slider-wrapper > .akw-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.akw-slider-wrapper > .akw-dots span {
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.akw-slider-wrapper > .akw-dots span.active {
    background: #e63946;
    width: 25px;
    border-radius: 5px;
}

/* ============================================================
   استایل ۳ (رفع مشکل): دو ستونه واقعی
   ============================================================ */
.akw-slider-wrapper.akw-style-3 .akw-slide {
    background: #fff;
    align-items: stretch;
}
.akw-slider-wrapper.akw-style-3 .akw-slide-img-wrap {
    position: relative;
    width: 50%;
    height: 100%;
    z-index: 1;
}
.akw-slider-wrapper.akw-style-3 .akw-slide-gradient {
    display: none;
}
.akw-slider-wrapper.akw-style-3 .akw-slide-content {
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    max-width: none;
    z-index: 2;
}
.akw-slider-wrapper.akw-style-3 .akw-title {
    color: #1a1a2e;
    text-shadow: none;
}
.akw-slider-wrapper.akw-style-3 .akw-meta {
    color: #666;
}

/* ============================================================
   استایل ۲ (جدید): Split-Modern 
   ============================================================ */
.akw-slider-wrapper.akw-style-2 {
    background: #f8f9fa;
    padding: 20px;
}
.akw-slider-wrapper.akw-style-2 .akw-slide {
    height: 480px;
    background: #fff;
    border-radius: 20px;
    align-items: stretch;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: visible; /* اجازه می‌دهیم کارت بیرون بزند */
}
.akw-slider-wrapper.akw-style-2 .akw-slide-img-wrap {
    position: absolute;
    top: 20px; right: 20px; bottom: 20px; left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
}
.akw-slider-wrapper.akw-style-2 .akw-slide-gradient {
    display: none;
}
.akw-slider-wrapper.akw-style-2 .akw-slide-content {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 45%;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 2;
}
.akw-slider-wrapper.akw-style-2 .akw-title {
    color: #1a1a2e;
    text-shadow: none;
}
.akw-slider-wrapper.akw-style-2 .akw-meta {
    color: #666;
}
.akw-slider-wrapper.akw-style-2 .akw-prev { right: auto; left: 5%; }
.akw-slider-wrapper.akw-style-2 .akw-next { left: auto; right: 5%; }
.akw-slider-wrapper.akw-style-2 .akw-dots { left: 27.5%; transform: translateX(-50%); bottom: 35px; }

/* ============================================================
   استایل ۴ (جدید): Cyberpunk/Neon
   ============================================================ */
.akw-slider-wrapper.akw-style-4 {
    background: #09090b;
    border: 1px solid #27272a;
}
.akw-slider-wrapper.akw-style-4 .akw-slide {
    height: 550px;
    align-items: center;
    background: #09090b;
}
.akw-slider-wrapper.akw-style-4 .akw-slide-img-wrap {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}
.akw-slider-wrapper.akw-style-4 .akw-slide-gradient {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.8) 0%, rgba(9, 9, 11, 0.9) 100%);
    mix-blend-mode: multiply;
}
.akw-slider-wrapper.akw-style-4 .akw-slide-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.2);
}
.akw-slider-wrapper.akw-style-4 .akw-badge {
    background: transparent;
    border: 1px solid #e63946;
    color: #e63946;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}
.akw-slider-wrapper.akw-style-4 .akw-meta {
    justify-content: center;
    color: #a1a1aa;
}
.akw-slider-wrapper.akw-style-4 .akw-btn {
    background: transparent;
    border: 2px solid #e63946;
    color: #e63946;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}
.akw-slider-wrapper.akw-style-4 .akw-btn:hover {
    background: #e63946;
    color: #fff;
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.8);
}
.akw-slider-wrapper.akw-style-4 .akw-prev,
.akw-slider-wrapper.akw-style-4 .akw-next {
    background: transparent;
    border-color: #e63946;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

/* ============ ریسپانسیو ============ */
@media (max-width: 768px) {
    .akw-slide { height: 400px; }
    .akw-slide-content { padding: 25px; }
    .akw-title { font-size: 20px; }
    
    .akw-slider-wrapper > .akw-prev,
    .akw-slider-wrapper > .akw-next {
        width: 40px; height: 40px; font-size: 18px;
    }
    
    /* ریسپانسیو استایل ۳ */
    .akw-slider-wrapper.akw-style-3 .akw-slide-img-wrap { width: 100%; height: 40%; top: 0; left: 0; }
    .akw-slider-wrapper.akw-style-3 .akw-slide-content { width: 100%; height: 60%; position: absolute; bottom: 0; right: 0; padding: 20px; }

    /* ریسپانسیو استایل ۲ */
    .akw-slider-wrapper.akw-style-2 .akw-slide-img-wrap { height: 50%; }
    .akw-slider-wrapper.akw-style-2 .akw-slide-content {
        width: 90%;
        right: 5%;
        bottom: 20px;
        top: auto;
        transform: none;
        padding: 20px;
    }
    .akw-slider-wrapper.akw-style-2 .akw-prev { right: auto; left: 20px; top: auto; bottom: 20px; }
    .akw-slider-wrapper.akw-style-2 .akw-next { left: auto; right: 20px; top: auto; bottom: 20px; }
    .akw-slider-wrapper.akw-style-2 .akw-dots { bottom: -10px; left: 50%; }

    /* ریسپانسیو استایل ۴ */
    .akw-slider-wrapper.akw-style-4 .akw-slide-content { padding: 30px 20px; }
}