/* App Screenshots Section */
.app-screenshots-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 100px 0;
    direction: rtl;
}

.app-screenshots-section .main-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a2b5f;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.app-screenshots-section .main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a6cb5 0%, #5a7cc5 100%);
    border-radius: 2px;
}

/* Swiper Container */
.screenshots-swiper {
    padding: 20px 10px 60px 10px !important;
    position: relative;
}

/* Swiper Slide */
.screenshots-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Screenshot Item */
.screenshot-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
    width: 100%;
}

.screenshot-item:hover {
    transform: translateY(-10px);
}

/* Phone Mockup */
.phone-mockup {
    width: 180px;
    height: 380px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    padding: 13px 8px 13px 8px; /* Perfectly aligns screenshot inside realistic iPhone frame */
    transition: all 0.3s ease;
}

.screenshot-item:hover .phone-mockup {
    transform: scale(1.05);
}

.phone-mockup a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.phone-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/iphone-mockup-transparent.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10;
}

/* Screenshot Title */
.screenshot-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 15px !important;
    display: block;
    text-align: center;
}

/* Custom Arrows */
.screenshots-prev,
.screenshots-next {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    border: 2px solid #e2e8f0 !important;
    color: #4a6cb5 !important;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; */
    transition: all 0.3s ease !important;
    top: 42% !important;
}

.screenshots-prev:hover,
.screenshots-next:hover {
    background: #4a6cb5 !important;
    border-color: #4a6cb5 !important;
    color: #fff !important;
}

.screenshots-prev::after,
.screenshots-next::after {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.swiper {
    padding-left: 45px !important;
    padding-right: 45px !important;
}

.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: 0;
}

.swiper-button-next, .swiper-rtl .swiper-button-next {
    left: 0;
}

.screenshots-prev, .screenshots-next {
    width: 35px !important;
    height: 35px !important;
    border-radius: 4px !important;
    border-color: #6076A9 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .phone-mockup { width: 160px; height: 340px; padding: 11px 7px 11px 7px; }
    .phone-mockup a, .screenshot-img { border-radius: 20px; }
}

@media (max-width: 991px) {
    .phone-mockup { width: 150px; height: 310px; padding: 10px 6px 10px 6px; }
    .phone-mockup a, .screenshot-img { border-radius: 18px; }
}

@media (max-width: 767px) {

    .phone-mockup { width: 130px; height: 270px; padding: 9px 6px 9px 6px; }
    .screenshot-img, .phone-mockup a { border-radius: 15px; }

    /* مهم - يخلي الـ slides الجانبية تظهر */
    .screenshots-swiper {
        overflow: visible !important;
    }

    /* بس نخبي اللي بره الـ section */
    .app-screenshots-section {
        overflow: hidden;
    }
}

@media (max-width: 480px) {

    .phone-mockup { width: 120px; height: 245px; padding: 8px 5px 8px 5px; }
    .screenshot-img, .phone-mockup a { border-radius: 12px; }

    .app-screenshots-section .section-title {
        margin-bottom: 30px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .screenshots-prev {
        right: 10px !important;
        left: auto !important;
        top: 42% !important;
    }

    .screenshots-next {
        left: 10px !important;
        right: auto !important;
        top: 42% !important;
    }
}