/**
 * Main Slider - 5 Different Styles (Jannah-like)
 * Version: 1.0
 * No Animations
 */

/* COMMON */
.main-slider-wrapper {
    margin: 30px 0;
}

.lazy-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e0e0e0;
}

/* ========================================
   STYLE 1: Big Slider + Side Cards
   سليدر كبير + بطاقات جانبية
   ======================================== */
.jannah-slider-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    min-height: 500px;
}

.big-slider-area {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #e0e0e0;
}

.big-slide-item {
    width: 100%;
    height: 100%;
}

.big-slide-link {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.big-slide-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.big-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.big-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 35px;
    color: #fff;
}

.slide-category {
    display: inline-block;
    background: #00A859;
    color: #fff;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.big-slide-overlay h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
}

.slide-excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #f0f0f0;
}

.side-cards-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card-item {
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
}

.side-card-item:hover {
    border-color: #00A859;
}

.side-card-item a {
    display: flex;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.side-card-img {
    width: 45%;
    flex-shrink: 0;
}

.side-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-card-content {
    width: 55%;
    padding: 15px;
    display: flex;
    align-items: center;
}

.side-card-content h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    color: #1a1a1a;
}

.side-card-item:hover h4 {
    color: #00A859;
}

/* ========================================
   STYLE 2: Auto Carousel
   سليدر تلقائي متحرك
   ======================================== */
.jannah-slider-2 {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #f093fb;
    min-height: 450px;
}

.carousel-main-area {
    position: relative;
    height: 450px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    color: #f5576c;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid #f5576c;
}

.carousel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 30px;
}

.carousel-text h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #1a1a1a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
}

.carousel-nav:hover {
    background: #00A859;
    color: #fff;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ========================================
   STYLE 3: Magazine Grid
   شبكة مجلة - أول مقال كبير
   ======================================== */
.jannah-slider-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    min-height: 500px;
}

.magazine-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #e0e0e0;
}

.magazine-item:hover {
    border-color: #667eea;
}

.magazine-item-1 {
    grid-row: 1 / 3;
}

.magazine-item a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.magazine-img {
    width: 100%;
    height: 100%;
}

.magazine-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: #fff;
}

.magazine-cat {
    display: inline-block;
    background: #667eea;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.magazine-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
}

.magazine-item-1 .magazine-overlay h3 {
    font-size: 26px;
}

/* ========================================
   STYLE 4: Tabs Slider
   تبويبات مع سليدر
   ======================================== */
.jannah-slider-4 {
    border: 3px solid #4facfe;
    border-radius: 15px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 5px;
    background: #f0f8ff;
    padding: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
}

.tab-btn.active {
    background: #4facfe;
    color: #fff;
    border-color: #4facfe;
}

.tab-btn:hover {
    border-color: #4facfe;
}

.tabs-content-area {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: #fff;
}

.tabs-content-area.active {
    display: grid;
}

.tab-slide-item {
    border: 3px solid #e8f4f8;
    border-radius: 10px;
    overflow: hidden;
}

.tab-slide-item:hover {
    border-color: #4facfe;
}

.tab-slide-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tab-slide-img {
    width: 100%;
    height: 160px;
}

.tab-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-slide-content {
    padding: 15px;
    background: #f9f9f9;
}

.tab-slide-content h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    color: #1a1a1a;
}

.tab-slide-item:hover h4 {
    color: #4facfe;
}

/* ========================================
   STYLE 5: Hero Carousel
   كاروسيل بطولي احترافي
   ======================================== */
.jannah-slider-5 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #a8edea;
    min-height: 550px;
}

.hero-carousel-wrapper {
    position: relative;
    height: 550px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

.hero-content a {
    text-decoration: none;
    color: inherit;
}

.hero-category {
    display: inline-block;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #1a1a1a;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 18px;
    border: 3px solid #fff;
}

.hero-content h2 {
    margin: 0 0 18px;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid #fff;
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
    width: 35px;
    border-radius: 10px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Style 1 */
    .jannah-slider-1 {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: auto;
    }
    
    .big-slide-img {
        min-height: 300px;
    }
    
    .big-slide-overlay {
        padding: 20px;
    }
    
    .big-slide-overlay h2 {
        font-size: 22px;
    }
    
    .side-card-item a {
        flex-direction: column;
    }
    
    .side-card-img,
    .side-card-content {
        width: 100%;
    }
    
    .side-card-img {
        height: 150px;
    }
    
    /* Style 2 */
    .carousel-main-area {
        height: 350px;
    }
    
    .carousel-text h3 {
        font-size: 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    /* Style 3 */
    .jannah-slider-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
        min-height: auto;
    }
    
    .magazine-item-1 {
        grid-row: auto;
    }
    
    .magazine-img {
        height: 200px;
    }
    
    /* Style 4 */
    .tabs-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .tabs-content-area {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Style 5 */
    .hero-carousel-wrapper {
        height: 400px;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
}

