﻿body 
{
/* تنسيقات المكتبة الحديثة - تصميم كحلي وأزرق */
.library-section {
    direction: rtl;
    background: linear-gradient(135deg, #1a2b4c 0%, #2c3e50 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.library-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%231a2b4c" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.library-modern-header {
    text-align: center;
    margin-bottom: 60px;
}

.library-modern-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: black;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.library-modern-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #1a5276);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

.library-modern-subtitle {
    color: black;
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 25px;
}

.library-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-feature {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 15px 35px rgba(26, 43, 76, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.modern-feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #1a5276);
}

.modern-feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(26, 43, 76, 0.3),
        0 0 0 1px rgba(255,255,255,0.4);
}

/* الكاروسيل المعدل */
.modern-carousel {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.carousel-header {
    text-align: center;
    margin-bottom: 25px;
}

.carousel-header i {
    font-size: 3rem;
    color: #4fc3f7;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.book-slide {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.book-slide:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-10px);
    border-color: rgba(79, 195, 247, 0.4);
}

.book-info {
    list-style: none;
    font-size: 0.95rem;
}

.book-info li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ecf0f1;
}

.book-info li:last-child {
    border-bottom: none;
}

/* أقسام الوسائط */
.media-section {
    background: linear-gradient(135deg, #1a5276, #2c3e50);
    color: white;
    text-align: center;
}

.instructions-section {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: white;
}

.facebook-section {
    background: linear-gradient(135deg, #4267B2, #365899);
    color: white;
    text-align: center;
}

.media-icon, .instructions-icon, .facebook-icon {
    font-size: 3.2rem;
    margin-bottom: 20px;
    display: block;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.media-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.media-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* الأقسام الكبيرة */
.large-section {
    grid-column: span 2;
    background: linear-gradient(135deg, #1a2b4c, #2c3e50);
    color: white;
    display: flex;
    flex-direction: column;
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
   
  
   
    width: 180px;
    height: 3px;
    background: linear-gradient(120deg, #3498db, #4fc3f7);
    border-radius: 12px;
}

.section-description {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* البانر */
.promo-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    padding: 0 !important;
}

.promo-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-banner:hover img {
    transform: scale(1.05);
}

/* الأزرار */
.modern-link {
    display: inline-block;
    padding: 14px 35px;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    text-align: center;
}

.modern-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
    border-color: rgba(255,255,255,0.5);
}

/* تأثيرات الحركة */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .library-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .large-section {
        grid-column: 1;
    }
    
    .library-modern-title {
        font-size: 2.5rem;
    }
    
    .modern-feature {
        padding: 25px;
    }
    
    .section-image {
        height: 200px;
    }
}

/* الفيسبوك */
.fb-page {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
/* تنسيقات قسم أقسام المكتبة - تصميم كحلي وأزرق مع خلفية بيضاء */
.featured-area {
    direction: rtl;
    background: #ffffff !important;
    padding: 60px 0;
    position: relative;
}

.featured-area .title-default-textPrimary-right {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a2b4c !important;
    position: relative;
    padding-bottom: 20px;
}

.featured-area .title-default-textPrimary-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #1a5276);
    border-radius: 2px;
}

/* التصميم الحديث للكتب مع الصور */
.modern-feature {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(26, 43, 76, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
}

.modern-feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 43, 76, 0.15);
}

.modern-feature:hover::before {
    transform: scaleX(1);
}

.modern-carousel {
    padding: 25px;
}

.carousel-header {
    text-align: center;
    margin-bottom: 25px;
}

.carousel-header i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.carousel-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2b4c;
}

.book-slide {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-slide:hover {
    background: rgba(52, 152, 219, 0.08);
    transform: translateX(-5px);
    border-color: rgba(52, 152, 219, 0.2);
}

.book-image {
    flex-shrink: 0;
    position: relative;
}

.book-image img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.book-slide:hover .book-image img {
    transform: scale(1.05);
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.book-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
}

.book-info li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    color: #2c3e50;
    line-height: 1.5;
}

.book-info li:last-child {
    border-bottom: none;
}

.book-info strong {
    color: #1a5276;
    font-weight: 700;
}

.modern-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
}

.modern-link:hover {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* الحفاظ على التصميم الأصلي للـ Repeater في أماكنه الأخرى */
.courses-box1 {
    padding: 0;
    background: transparent !important;
}

.single-item-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.15);
    box-shadow: 0 4px 15px rgba(26, 43, 76, 0.1) !important;
    margin-bottom: 15px;
}

.single-item-wrapper:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 43, 76, 0.15) !important;
}

.courses-info {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 !important;
    text-align: right !important;
    background: rgba(26, 43, 76, 0.05);
    border-radius: 8px;
    padding: 15px !important;
    border-right: 4px solid #3498db;
}

.courses-info li {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2) !important;
    color: #2c3e50 !important;
    font-size: 14px !important;
    line-height: 1.5;
    font-weight: 500;
}

.courses-info li:last-child {
    border-bottom: none !important;
}

.courses-img-wrapper {
    position: relative;
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.courses-img-wrapper:hover {
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 8px 20px rgba(26, 43, 76, 0.2);
}

.courses-img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px !important;
    transition: transform 0.4s ease;
}

.courses-img-wrapper:hover img {
    transform: scale(1.08);
}

.courses-img-wrapper a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.courses-img-wrapper:hover a {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.courses-img-wrapper a i {
    color: white;
    font-size: 1.4em;
}

/* تأثيرات الحركة */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .featured-area {
        padding: 40px 0;
    }
    
    .featured-area .title-default-textPrimary-right {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .modern-feature {
        padding: 20px;
    }
    
    .book-slide {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .book-image img {
        width: 120px;
        height: 160px;
    }
    
    .single-item-wrapper {
        padding: 15px !important;
    }
}

@media (max-width: 576px) {
    .modern-feature {
        margin-bottom: 20px;
    }
    
    .courses-info li {
        font-size: 13px !important;
    }
    
    .book-info {
        font-size: 0.9rem;
    }
}
}
