/* =========================================
   CheckerDiscount - Modern 3D Hero Slider
   Clean, Minimalist & Mobile Optimized
   ========================================= */

.cd-hero-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* تصویر کا سائز 16:9 */
    max-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin: 16px 0 24px 0;
    box-shadow: 0 8px 32px rgba(16, 24, 40, 0.12);
    background: #0B1220; /* گہرا بیک گراؤنڈ */
}

.cd-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cd-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* پیڈنگ ہٹا دی تاکہ تصویر پوری نظر آئے */
    background-size: contain; /* cover کی جگہ contain */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0B1220;
}

/* ========== DOTS ========== */
.cd-hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cd-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cd-hero-dot.active {
    width: 26px;
    border-radius: 4px;
    background: linear-gradient(135deg, #70FDA7 0%, #12B76A 100%);
}

.cd-hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ========== ARROWS ========== */
.cd-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.cd-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.cd-hero-arrow-prev { left: 16px; }
.cd-hero-arrow-next { right: 16px; }

.cd-hero-arrow span {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* ========== SLIDE BACKGROUNDS ========== */
.cd-slide-1 { background-image: url('slide-hero.jpg'); }
.cd-slide-2 { background-image: url('slide-family.jpg'); }
.cd-slide-3 { background-image: url('slide-shield.jpg'); }
.cd-slide-4 { background-image: url('slide-apple.jpg'); }
.cd-slide-5 { background-image: url('slide-discounts.jpg'); }

/* ========== MOBILE OPTIMIZATION ========== */
@media (max-width: 640px) {
    .cd-hero-slider {
        border-radius: 0;
        margin: 0 0 16px 0;
        box-shadow: none;
        aspect-ratio: 16 / 9;
        max-height: 300px; /* اونچائی کم کر دی تاکہ اسکرول نہ کرنا پڑے */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .cd-hero-slide {
        padding: 0;
        background-size: contain; /* موبائل پر بھی تصویر کٹے نہ */
    }
    
    .cd-hero-arrow {
        display: none; /* موبائل پر تیر چھپا دیں */
    }
    
    .cd-hero-dot {
        width: 6px;
        height: 6px;
    }
    
    .cd-hero-dot.active {
        width: 20px;
    }
    
    .cd-hero-dots {
        bottom: 12px;
        padding: 6px 12px;
        gap: 6px;
    }
}
