/* public/css/product-slider.css */
.swiper-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9; /* نسبة العرض إلى الارتفاع الأساسية */
}


.hero-slider .swiper-container {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slider .slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.3s ease;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    margin-left: 10%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}


.hero-slider  .content-wrapper {
    background: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px; /* تحديد عرض ثابت للمحتوى */
    width: fit-content; /* يتناسب مع المحتوى */
}

/* التنسيقات النصية */
.hero-slider .slide-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 4rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: #e91e63;
    color: #fff;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.cta-button:hover {
    background: #263a92;
    transform: translateY(-2px);
}

/* تعديلات الـ Pagination */
.hero-slider .swiper-pagination {
    position: absolute;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    width: auto !important;
    max-width: 90%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* شكل النقاط */
.hero-slider .swiper-pagination-bullet {
    width: 14px !important;
    height: 14px !important;
    background: rgba(255,255,255,0.7) !important;
    opacity: 1 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: rotate(45deg);
    margin: 0 4px !important;
}

/* النقطة النشطة */
.hero-slider .swiper-pagination-bullet-active {
    background: #e91e63 !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50%;
    transform: rotate(0);
}

/* شكل مثلث للخلفية */
.hero-slider .swiper-pagination::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0,0,0,0.4);
}
@media (max-width: 767px) {
    .hero-slider {
        display: none !important;
    }
}
/* الاستجابة للشاشات المختلفة */
@media (max-width: 1200px) {
    .hero-slider {
        aspect-ratio: 18/9;;
    }
}

@media (max-width: 992px) {
    .hero-slider .slide-content {
        padding: 1.5rem;
    }

    .hero-slider .slide-title {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider .hero-slider {
        aspect-ratio: 1/1;
    }

    .hero-slider .swiper-pagination {
        bottom: 10% !important;
    }
}

@media (max-width: 576px) {
    .hero-slider .hero-slider {
        aspect-ratio: 3/4;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
    }
}
