/* ===== الأنماط العامة ===== */
:root {
    --primary-color: #014cc4;
    /* أزرق داكن أكثر أناقة */
    --primary-color-rgb: 26, 82, 118;
    /* قيم RGB للون الرئيسي */
    --secondary-color: rgb(245 200 22);
    /* برتقالي أكثر دفئًا */
    --secondary-color-rgb: 230, 126, 34;
    /* قيم RGB للون الثانوي */
    --accent-color: #3498db;
    /* أزرق فاتح */
    --accent-color-rgb: 52, 152, 219;
    /* قيم RGB للون المميز */
    --light-color: #f5f5f5;
    /* أبيض مائل للرمادي الفاتح */
    --dark-color: #014cc4;
    /* نفس اللون الرئيسي */
    --text-color: #2c3e50;
    /* لون نص أكثر وضوحًا */
    --gradient-primary: linear-gradient(135deg, #014cc4, #3498db);
    /* تدرج لوني جميل */
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    /* ظل موحد للعناصر */
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.secti.book-card .book-info .book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.load-more-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin: 30px auto 0;
    display: block;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 82, 118, 0.3);
}

.section-padding {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-title h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== الأزرار ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #3a7bd5, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary-custom {
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.categories-filter .category-btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.categories-filter .category-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

/* ===== القائمة العلوية ===== */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 10px 0;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar .nav-item {
    margin: 0 10px;
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--secondary-color);
}

.navbar .nav-link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    right: 0;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

/* ===== القسم الرئيسي (Hero) ===== */
.hero {
    background: linear-gradient(rgba(26, 82, 118, 0.85), rgba(26, 82, 118, 0.85)), url('https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 180px 0 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== قسم الميزات ===== */
.features .feature-box {
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    background-color: #fff;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.features .feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--accent-color);
}

.features .feature-icon {
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.features-img {
    text-align: center;
}

.features-img img {
    width: 50%;

}

.features .feature-box:hover .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    transform: rotateY(360deg);
    transition: transform 0.8s;
}

/* ===== قسم الكتب ===== */
.books {
    background-color: var(--light-color);
    padding: 80px 0;
}

/* عرض خاص */
.special-offer {
    margin-bottom: 40px;
}

.offer-banner {
    background: linear-gradient(135deg, #014cc4, #3a7bd5);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3);
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.offer-banner h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.countdown {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
}

.offer-banner .btn {
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.offer-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== قسم الكتب والكورسات ===== */
.books {
    background-color: #f9f9f9;
    position: relative;
}

.books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.book-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.book-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.book-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.book-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.book-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.book-card:hover .book-img::before {
    opacity: 1;
}

.book-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
}

.book-card:hover .book-img img {
    transform: scale(1.1) rotate(1deg);
}

.book-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    color: #fff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.book-card:hover .book-tag {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.book-card .book-img .special-tag {
    background: linear-gradient(135deg, var(--secondary-color), #ff9966);
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.book-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.book-info h4 {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 20px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.book-card:hover .book-info h4 {
    color: var(--primary-color);
}

.book-info p {
    margin-bottom: 18px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.book-price {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 22px;
    transition: all 0.3s ease;
}

.book-card:hover .book-price {
    transform: scale(1.05);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
    position: relative;
}

.old-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff5252;
    transform: rotate(-10deg);
}

.book-card .btn {
    transform: translateY(0);
    transition: all 0.4s ease;
}

.book-card:hover .btn {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* تنسيق الشارات والعلامات الإضافية */
.book-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.book-badges .badge {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-card:hover .book-badges .badge {
    transform: translateY(-3px);
}

/* تنسيق معلومات الكتاب الإضافية */
.book-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.book-features span {
    font-size: 13px;
    color: #666;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.book-features span i {
    margin-left: 5px;
    color: var(--primary-color);
}

.book-card:hover .book-features span {
    background-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* تنسيق طبقة التراكب عند التحويم */
.book-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    justify-content: space-between;
}

.overlay-content span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.overlay-content span i {
    margin-left: 5px;
    color: #ffcc00;
}

/* تنسيق شارة الخصم */
.discount-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.3);
    transform: rotate(0);
    z-index: 3;
    transition: all 0.3s ease;
}

.book-card:hover .discount-badge {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(255, 23, 68, 0.4);
}

/* تنسيق العداد التنازلي */
.countdown-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.countdown-text {
    font-size: 11px;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-timer {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
}

.countdown-timer span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    margin: 0 2px;
}

/* تنسيق زر النبض */
.pulse-btn {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

/* ===== قسم الاشتراك ===== */
.subscribe {
    background: linear-gradient(rgb(245 200 22), rgba(245, 200, 22, 0.596)), url('https://images.unsplash.com/photo-1513542789411-b6a5d4f31634?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.subscribe h2 {
    color: #fff;
}

.subscribe h2::after {
    background-color: #fff;
}

.subscribe-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.subscribe-form input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
}

.subscribe-form button {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background-color: var(--dark-color);
}

/* ===== قسم التواصل ===== */
.contact-info {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    margin-bottom: 30px;
}

.contact-info i {
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-form {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.contact-form .form-control {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* أزرار التواصل العائمة */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-contact .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    transition: all 0.3s ease;
}

.floating-contact .whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.floating-contact .phone-btn {
    background: linear-gradient(135deg, #4481eb, #04befe);
    color: white;
}

.floating-contact .btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.floating-contact .tooltip {
    position: absolute;
    right: 70px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.floating-contact .btn:hover .tooltip {
    opacity: 1;
    transform: translateX(-5px);
}

/* ===== قسم المميزات ===== */
.features {
    background-color: #fff;
}

/* بطاقات العروض الخاصة */
.special-deals-banner {
    margin-top: 50px;
}

.deal-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.deal-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.deal-card p {
    margin-bottom: 20px;
    color: #666;
}

.deal-card .btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.premium-deal {
    background: linear-gradient(135deg, #f6f9ff, #f0f4ff);
    border: none;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--secondary-color), #ff9966);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== قسم التذييل ===== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    right: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    text-align: center;
}

/* ===== الاستجابة للأجهزة المختلفة ===== */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .feature-box {
        margin-bottom: 30px;
    }

    .special-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .book-card .book-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-card .old-price {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .category-buttons .btn {
        margin-bottom: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .deal-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 20px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .book-card {
        margin-bottom: 30px;
    }

    .footer {
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        margin-top: 30px;
    }

    .floating-contact {
        bottom: 20px;
        left: 20px;
    }

    .floating-contact .btn {
        width: 50px;
        height: 50px;
    }

    .floating-contact .btn i {
        font-size: 20px;
    }

    .special-offer-banner {
        padding: 15px;
    }

    .special-offer-banner h3 {
        font-size: 18px;
    }

    .countdown-timer .countdown-box {
        padding: 5px;
        margin: 0 3px;
        min-width: 40px;
    }

    .countdown-timer .countdown-box span {
        font-size: 16px;
    }

    .countdown-timer .countdown-box p {
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 14px;
    }

    .book-card h3 {
        font-size: 18px;
    }

    .book-card .book-price .price {
        font-size: 18px;
    }

    .deal-card h4 {
        font-size: 18px;
    }

    .ribbon {
        font-size: 12px;
        padding: 4px 25px;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 80px 0;
    }

    .hero .hero-content h1 {
        font-size: 28px;
    }

    .hero .hero-content p {
        font-size: 15px;
    }

    .section-padding {
        padding: 20px 0;
    }

    .feature-box {
        margin-bottom: 30px;
    }

    .book-card {
        margin-bottom: 20px;
    }

    .book-card .book-info h4 {
        font-size: 18px;
    }

    .book-card .book-info p {
        font-size: 14px;
    }

    .book-card .book-info .book-price {
        font-size: 18px;
    }

    .offer-banner {
        padding: 20px;
    }

    .offer-banner h3 {
        font-size: 20px;
    }

    .countdown {
        font-size: 14px;
        padding: 5px 10px;
    }

    .subscribe-form input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .subscribe-form button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .floating-contact {
        bottom: 20px;
        left: 20px;
    }

    .floating-contact .btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .hero .hero-content h1 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .book-card .book-img .book-tag {
        font-size: 12px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .load-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .floating-contact {
        bottom: 15px;
        left: 15px;
    }

    .floating-contact .btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ===== زر واتساب الثابت ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 65px;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== تأثيرات التحميل ===== */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* ===== تحسينات للأجهزة المحمولة ===== */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar .nav-item {
        margin: 5px 0;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 20px 0;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Hero Slider Styles - Modern eCommerce Version */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(1, 76, 196, 0.03), rgba(245, 200, 22, 0.03));
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 2000px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(100%) scale(0.9);
    padding: 0 5%;
}

.slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    filter: brightness(1.05);
}

.slide.prev,
.slide.next {
    opacity: 0.5;
    z-index: 5;
}

.slide.prev {
    transform: translateX(-30%) scale(0.85);
    filter: blur(2px) brightness(0.9);
    left: 0;
}

.slide.next {
    transform: translateX(30%) scale(0.85);
    filter: blur(2px) brightness(0.9);
    right: 0;
    left: auto;
}

.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    filter: blur(0) brightness(1);
}

.slide.active img {
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
    animation: float-subtle 6s ease-in-out infinite;
}

@keyframes float-subtle {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.slider-indicators .indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-indicators .indicator:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.9);
}

.slider-indicators .indicator.active {
    background: white;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

/* Marketing overlay for slides - eCommerce style */
.marketing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 60px 20px 30px;
    text-align: center;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.slide.active .marketing-overlay {
    opacity: 1;
    animation: fade-up 0.8s forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marketing-overlay h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.marketing-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 15px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.marketing-overlay .cta-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff9966);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    margin-top: 10px;
    animation: pulse-light 2s infinite;
}

.marketing-overlay .cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Category tag on slides */
.slide .category-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 16;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Price tag on slides */
.slide .price-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 16;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.slide .price-tag .old-price {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}

/* Responsive styles for the slider */
@media (min-width: 768px) {
    .hero-slider {
        height: 70vh;
        margin-top: 70px;
    }

    .marketing-overlay h2 {
        font-size: 2rem;
    }

    .marketing-overlay p {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .hero-slider {
        height: 80vh;
    }

    .slide img {
        max-width: 85%;
        max-height: 85%;
    }

    .marketing-overlay {
        padding: 80px 20px 40px;
    }

    .marketing-overlay h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 50vh;
    }

    .slide img {
        max-width: 95%;
        border-radius: 10px;
    }

    .slide.prev {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.3;
    }

    .slide.next {
        transform: translateX(50%) scale(0.8);
        opacity: 0.3;
    }

    .marketing-overlay {
        padding: 40px 15px 25px;
    }

    .marketing-overlay h2 {
        font-size: 1.5rem;
    }

    .marketing-overlay p {
        font-size: 0.9rem;
        max-width: 95%;
    }

    .marketing-overlay .cta-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .slide .category-tag {
        top: 15px;
        right: 15px;
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .slide .price-tag {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .hero-slider {
        height: 45vh;
        margin-top: 55px;
    }

    .slide.prev,
    .slide.next {
        opacity: 0.2;
    }

    .slider-indicators {
        bottom: 10px;
        padding: 5px 10px;
        display: none;
    }

    .marketing-overlay {
        display: none;
    }

    .slider-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    .slider-indicators .indicator.active {
        width: 12px;
        height: 12px;
    }

    @keyframes float-subtle {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }

        100% {
            transform: translateY(0px);
        }
    }
}

/* Features Mobile Slider */
.features-mobile-slider {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    direction: rtl;
}

.features-slider-container {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
    direction: rtl;
}

.feature-slide {
    flex: 0 0 100%;
    padding: 0 15px;
    box-sizing: border-box;
    direction: rtl;
}

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

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 5;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

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

/* Conversion-focused elements */
.availability-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.available-now {
    background-color: #2ecc71;
    color: white;
}

.coming-soon {
    background-color: #f39c12;
    color: white;
}

.scarcity-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    animation: pulse-light 2s infinite;
}

.countdown-small {
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: normal;
}

.waitlist-section {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
    padding: 40px 0;
    text-align: center;
    border-radius: 10px;
    margin: 30px 0;
}

.waitlist-form {
    max-width: 500px;
    margin: 20px auto 0;
    display: flex;
    direction: rtl;
}

.waitlist-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 30px 30px 0;
    font-size: 0.9rem;
    text-align: right;
}

.waitlist-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.waitlist-form button:hover {
    background: var(--dark-color);
}

.testimonials-section {
    padding: 40px 0;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    color: rgba(var(--primary-color-rgb), 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h5 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-info p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: #777;
}

.featured-banner {
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.featured-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.featured-banner h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.featured-banner p {
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Responsive improvements */
@media (max-width: 991px) {
    .features .row {
        display: none;
    }

    .features-mobile-slider {
        display: block;
    }

    .book-card .book-img {
        height: 200px;
    }

    .waitlist-section {
        padding: 30px 15px;
    }

    .waitlist-form {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 45vh;
    }

    .book-card .book-img {
        height: 180px;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    .featured-banner {
        padding: 15px;
    }

    .featured-banner h3 {
        font-size: 1.3rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .waitlist-form button {
        border-radius: 30px;
    }
}

/* Mobile-optimized animations and effects */
@keyframes pulse-light {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.success-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000;
    animation: slideUp 0.5s ease forwards;
}

.success-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Enhanced mobile styles */
@media (max-width: 767px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    .hero-slider {
        margin-top: 60px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .book-card {
        margin-bottom: 25px;
    }

    .book-card .book-info h4 {
        font-size: 1.1rem;
    }

    .book-card .book-info p {
        font-size: 0.9rem;
    }

    .book-features span {
        font-size: 0.8rem;
        margin-right: 8px;
    }

    .book-price {
        font-size: 1rem;
    }

    .old-price {
        font-size: 0.9rem;
    }

    .footer {
        padding-top: 40px;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        margin-top: 30px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
        right: 15px;
        bottom: 15px;
    }

    /* Enhanced mobile slider */
    .features-mobile-slider {
        margin: 0;
        padding: 15px 0;
    }

    .feature-slide {
        padding: 5px;
    }

    .slider-arrows {
        padding: 0 5px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* Enhanced availability tags */
    .availability-tag {
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .scarcity-badge {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Floating animation for CTA buttons on mobile */
    .pulse-btn {
        animation: float 3s ease-in-out infinite;
    }
}

/* Featured banner position adjustment */
.featured-section {
    margin-top: 30px;
    z-index: 10;
    position: relative;
}

@media (max-width: 767px) {
    .marketing-overlay {
        display: none;
    }

    .countdown-badge {
        display: none;
    }

    /* Fix for mobile slider */
    .features-mobile-slider {
        margin: 0;
        padding: 15px 0;
    }

    .feature-slide {
        padding: 5px;
    }

    /* Fix for waitlist form on mobile */
    .waitlist-form {
        max-width: 100%;
        padding: 0;
    }

    .waitlist-form input {
        border-radius: 0 15px 15px 0;
    }

    .waitlist-form button {
        border-radius: 15px 0 0 15px;
    }

    /* Featured banner position on mobile */
    .featured-section {
        margin-top: -20px;
    }
}