/* ============================================
   Image Gallery Styles با اسلاید وسطی بزرگتر
   ============================================ */

.image-gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
}

.image-gallery-swiper {
    width: 100%;
    padding: 60px 0;
    position: relative;
    overflow: visible;
}

.image-gallery-swiper .swiper-wrapper {
    align-items: center;
}

.image-gallery-swiper .swiper-slide {
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    transform: scale(0.85);
}

/* اسلاید فعال (وسطی) - بزرگتر */
.image-gallery-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1.15);
    z-index: 10;
}

/* اسلایدهای کناری */
.image-gallery-swiper .swiper-slide-prev,
.image-gallery-swiper .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.9);
}

.gallery-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* افکت Overlay */
.gallery-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

.swiper-slide-active .gallery-image-container::before {
    opacity: 0;
}

.gallery-image-container:hover::before {
    opacity: 1;
}

/* Hover فقط روی اسلاید فعال */
.swiper-slide-active .gallery-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .gallery-image-container:hover img {
    transform: scale(1.08);
}

/* Navigation Buttons */
.image-gallery-swiper .swiper-button-next,
.image-gallery-swiper .swiper-button-prev {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.image-gallery-swiper .swiper-button-next:hover,
.image-gallery-swiper .swiper-button-prev:hover {
    background: #fff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.image-gallery-swiper .swiper-button-next::after,
.image-gallery-swiper .swiper-button-prev::after {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

/* Pagination */
.image-gallery-swiper .swiper-pagination {
    bottom: 10px;
}

.image-gallery-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.image-gallery-swiper .swiper-pagination-bullet-active {
    background: #333;
    width: 40px;
    border-radius: 6px;
}

/* ============================================
   Text Gallery Styles
   ============================================ */

.text-gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
}

.text-gallery-swiper {
    width: 100%;
    padding: 40px 0;
}

.text-content-container {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    min-height: 300px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.text-content-container:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.text-content-container h1,
.text-content-container h2,
.text-content-container h3 {
    margin-top: 0;
    color: #222;
    line-height: 1.6;
    font-weight: 700;
}

.text-content-container p {
    color: #555;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 1em;
}

.text-content-container ul,
.text-content-container ol {
    padding-right: 25px;
    color: #555;
    line-height: 1.9;
}

.text-content-container a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-content-container a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Navigation for Text Gallery */
.text-gallery-swiper .swiper-button-next,
.text-gallery-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(51, 51, 51, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.text-gallery-swiper .swiper-button-next:hover,
.text-gallery-swiper .swiper-button-prev:hover {
    background: #222;
    transform: scale(1.1);
}

.text-gallery-swiper .swiper-button-next::after,
.text-gallery-swiper .swiper-button-prev::after {
    font-size: 20px;
    color: #fff;
}

.text-gallery-swiper .swiper-pagination-bullet {
    background: #999;
    width: 10px;
    height: 10px;
}

.text-gallery-swiper .swiper-pagination-bullet-active {
    background: #333;
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .gallery-image-container {
        height: 350px;
    }
    
    .image-gallery-swiper .swiper-slide-active {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .gallery-image-container {
        height: 300px;
        border-radius: 15px;
    }
    
    .image-gallery-swiper .swiper-slide {
        opacity: 1;
        transform: scale(1);
    }
    
    .image-gallery-swiper .swiper-slide-active {
        transform: scale(1);
    }
    
    .text-content-container {
        padding: 30px;
        min-height: 250px;
        border-radius: 15px;
    }
    
    .image-gallery-swiper .swiper-button-next,
    .image-gallery-swiper .swiper-button-prev,
    .text-gallery-swiper .swiper-button-next,
    .text-gallery-swiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .gallery-image-container {
        height: 250px;
        border-radius: 12px;
    }
    
    .text-content-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .text-content-container p {
        font-size: 14px;
    }
    
    .image-gallery-swiper,
    .text-gallery-swiper {
        padding: 30px 0;
    }
}
