/* الصفحة الرئيسية */
.hero {
    padding: 60px 0 30px;
    background: linear-gradient(145deg, var(--primary-soft), var(--card-bg));
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.message-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(1,87,155,0.12);
    margin: 0px 0 20px;
    position: relative;
    border-right: 8px solid var(--primary-dark);
    border-left: 8px solid var(--primary-dark);
}

.message-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-card h2 i {
    font-size: 2rem;
    color: var(--primary);
}

.message-text {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.9;
}

.message-text .ayah {
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
    display: inline-block;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 1.3rem;
}

.message-text .ayah-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 5px;
}

.signature {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed var(--border-light);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.signature i {
    color: var(--primary);
    font-size: 1.8rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 5px 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.extra-content {
    display: none;
}

.extra-content.show {
    display: block;
}

.academy-card {
    background: linear-gradient(145deg, var(--card-bg), #f6fbfe);
    border-radius: var(--radius-lg);
    padding: 45px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-soft);
    margin: 30px 0 50px;
    text-align: center;
}

.academy-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.academy-card h2 i {
    font-size: 2.8rem;
    color: var(--primary);
}

.academy-quote {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 20px;
    line-height: 1.4;
}

.academy-quote small {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.academy-description {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 800px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.academy-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: right;
    margin: 40px 0 30px;
}

.academy-item {
    background: var(--card-bg);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: var(--transition);
    word-break: break-word;
}

.academy-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.academy-item i {
    font-size: 1.8rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.academy-btn {
    margin-top: 30px;
    display: inline-block;
    padding: 16px 50px;
    font-size: 1.2rem;
    background: var(--primary-dark);
    color: white;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(1,87,155,0.3);
    transition: var(--transition);
    border: 2px solid transparent;
}

.academy-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(1,111,174,0.4);
}

.video-slider-section {
    margin: 60px 0;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.slider-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.slider-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 4px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: rgba(1,111,174,0.02);
    border-top: 1px solid rgba(1,87,155,0.1);
    border-bottom: 1px solid rgba(1,87,155,0.1);
}

.track {
    display: flex;
    width: max-content;
    animation: scroll 50s linear infinite;
    will-change: transform;
}

.slider-container.paused .track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.video-card {
    width: 280px;
    margin: 0 15px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(1,87,155,0.1);
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-sm);
}

.video-card:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: var(--shadow-md);
}

.video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.video-card h3 {
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 600;
    word-break: break-word;
}

.slider-hint {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pause-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.pause-btn:hover {
    background: var(--primary);
    color: white;
}

.library-carousel {
    position: relative;
    margin: 30px 0;
}

.carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius-md);
    padding: 10px 0;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.carousel-slide {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
}

.carousel-slide .card {
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
    user-select: none;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
}

.carousel-btn.prev {
    right: -25px;
}

.carousel-btn.next {
    left: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: 0.2s;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.3);
}

.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

/* ===== الشريط الذهبي ===== */
.marquee-container {
    width: 100%;
    background: white;
    padding: 20px 0;
    border-top: 20px solid var(--primary-dark);
    border-bottom: 20px solid var(--primary-dark);
    overflow: hidden;
    position: relative;
    margin: 0px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-smooth 110s linear infinite;
}

.marquee-part {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 100px;
}

.marquee-part span {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.marquee-part img {
    width: 100px;
    height: auto;
    margin: center;
    filter: drop-shadow(0 0 10px #ffaa00);
}

@keyframes scroll-smooth {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* ===== سلايدر البطاقة الواحدة ===== */
.single-card-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    min-height: 380px;
}

.single-card-container {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
}

.single-card-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.card-single {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: 0.3s;
    border: 1px solid var(--border-light);
}

.card-single:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-single img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.card-single h3 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

.slider-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    flex-shrink: 0;
}

.slider-nav:hover {
    background: var(--primary);
    color: white;
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 15px;
}

.book-cover i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.7;
}

.research-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 10px 0;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1.6rem;
    }
    .message-card {
        padding: 30px 20px;
    }
    .message-card h2 {
        font-size: 1.8rem;
    }
    .academy-card {
        padding: 30px 20px;
    }
    .academy-card h2 {
        font-size: 2rem;
    }
    .academy-quote {
        font-size: 1.3rem;
    }
    .academy-list {
        grid-template-columns: 1fr;
    }
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .carousel-btn.prev {
        right: -10px;
    }
    .carousel-btn.next {
        left: -10px;
    }
    .carousel-slide {
        flex: 0 0 calc(100% - 20px);
    }
    .marquee-part span {
        font-size: 1.2rem;
    }
    .marquee-part img {
        width: 35px;
        margin: 0 10px;
    }
    .single-card-slider {
        gap: 10px;
    }
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
/* ===== أنماط بطاقة الكتاب الجديدة (مشتقة من التصميم المطلوب) ===== */
.card-single1 {
    /* نحافظ على الخصائص الأساسية من card-single، ثم نضيف/نعدل */
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.card-single:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10;
}

.book-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #3498db;
}

.book-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.6;
    word-break: break-word;
    min-height: 3.5rem;
}

.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    gap: 0.5rem;
}

.btn1 {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
    color: white;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-view {
    background: #27ae60;
}
.btn-view:hover {
    background: #2ecc71;
}

.btn-download {
    background: #2980b9;
}
.btn-download:hover {
    background: #3498db;
}

/* حركات الانزلاق (إذا أردت إضافتها) */

