/* Arabic-specific fixes for product page */
[dir="rtl"] body {
    font-family: "Cairo", sans-serif;
  }
  
  /* ===== RTL Text Alignment ===== */
  [dir="rtl"] .Unique-title,
  [dir="rtl"] .Unique-p,
  [dir="rtl"] .Sawti-preview-title,
  [dir="rtl"] .Sawti-preview-p,
  [dir="rtl"] .Sawti-Story-title,
  [dir="rtl"] .Sawti-Story-p {
    text-align: right;
    padding-right: 41px;
    padding-left: 0;
  }
   
  [dir="rtl"] .padding-right {
    padding-right: 40px;
  }
  
  h1 {
          font-size: 90px !important;
   
    font-weight:bolder !important;
  }
  .section-body button {
      background: #16256f;
    border: none;
    border-radius: 24px;
    color: #fff;
    width: 250px;
    height: 64px;
    font-weight: 500;
    font-size: 18px;
    margin-top:30px !important;
    border: none;
  }
  /* ===== Hero Section RTL ===== */
  [dir="rtl"] .image-home {
      top:unset !important;
      left:0 !important;
      right: unset !important;
      bottom:0 !important;
  }
  
  [dir="rtl"] .image-home img {
    transform: scaleX(-1);
      max-width: 100%;
      height: auto;
      max-height: calc(100vh - 120px);
  }
  .section-box
  {
      margin-top:50px
  }
  [dir="rtl"] .text-home {
    text-align: right;
  }
  
  /* ===== Box Section RTL ===== */
  [dir="rtl"] .box {
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .text-box {
    text-align: right;
  }
  
  [dir="rtl"] .text-box h2 {
    text-align: right;
  }
  
  [dir="rtl"] .text-box p {
    text-align: right;
  }
  
  [dir="rtl"] .buttons {
    justify-content: flex-start !important;
  }
  
  /* ===== Book Controls RTL ===== */
  [dir="rtl"] .book-prev {
    left: auto;
    left: -100px;
  }
  
  [dir="rtl"] .book-next {
    right: auto;
    right: -100px;
  }
  
  /* ===== Navigation RTL ===== */
  [dir="rtl"] .navbar-nav {
    margin-left: auto;
    margin-right: 0 !important;
  }
  
  /* ===== Mobile Responsive RTL ===== */
  
  @media (max-width: 776px) {
    [dir="rtl"] .Unique-title,
    [dir="rtl"] .Unique-p,
    [dir="rtl"] .Sawti-preview-title,
    [dir="rtl"] .Sawti-preview-p,
    [dir="rtl"] .Sawti-Story-title,
    [dir="rtl"] .Sawti-Story-p {
      text-align: center;
      padding-right: 20px;
      padding-left: 20px;
    }
    
    [dir="rtl"] .text-home {
      text-align: center;
    }
    
    [dir="rtl"] .text-box h2,
    [dir="rtl"] .text-box p {
      text-align: center;
    }
  }
  
  @media (max-width: 557px) {
    [dir="rtl"] .box {
      flex-direction: column;
      text-align: center;
    }
    
    [dir="rtl"] .buttons {
      justify-content: center !important;
    }
  }
  
  [dir="rtl"] .lang-wrapper {
    flex-direction: row-reverse;
  }
  
  /* ===== Story Book RTL Cover Padding ===== */
  [dir="rtl"] .book-stage.is-cover .page-left {
    padding-left: 0;
    padding-right: 0;
  }
  
  @media (max-width: 575px) {
    [dir="rtl"] .book-stage.is-cover .page-left {
      padding-left: 0;
      padding-right: 0;
    }
    .story-book .btn-icon img
    {
        width:40px;
        height:40px;
    }
  }
  
  /* ===== Fix for Bootstrap RTL utilities ===== */
  [dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  [dir="rtl"] .justify-content-end {
    justify-content: flex-start !important;
  }
  
 
  /* Fix RTL Navbar Layout */
  [dir="rtl"] .navbar {
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .navbar-brand {
    order: 2; /* Logo goes to the right */
    margin-left: auto;
    margin-right: 0;
  }
  
  [dir="rtl"] .navbar-toggler {
    order: 1; /* Burger menu goes to the left */
    margin-right: auto;
    margin-left: 0;
  }
  
  [dir="rtl"] .navbar-collapse {
    order: 3;
  }
  
  [dir="rtl"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  /* Alternative approach - force positioning */
  [dir="rtl"] .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  [dir="rtl"] .navbar-brand {
    position: absolute;
    right: 83px;
  }
  
  [dir="rtl"] .navbar-toggler {
    position: absolute;
    left: 15px;
  }
    .pricing-wrapper {
            background: linear-gradient(135deg, #e91e63 0%, #9c27b0 35%, #673ab7 70%, #3f51b5 100%);
            min-height: 100vh;
            position: relative;
            padding: 0;
        }

        /* التدرج الأبيض المنحني في الأعلى */
        .pricing-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
  
    
    z-index: 1;
}

        /* التدرج الأبيض المنحني في الأسفل */
        .pricing-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 150px;
            background: rgba(255, 255, 255, 0.1);
           
            z-index: 1;
        }

        .content-container {
            position: relative;
            z-index: 2;
            padding: 80px 0 60px;
        }

        /* العنوان الرئيسي */
        .pricing-wrapper .main-title {
            color: #ffffff;
            font-size: 3.2rem;
            font-weight: 700;
            text-align: center !important;
            margin-bottom: 20px;
            letter-spacing: -0.5px;
        
        }

        /* الوصف */
        .main-description {
            color: rgba(255, 255, 255, 0.95);
            font-size: 1.25rem;
            font-weight: 400;
            text-align: center;
            margin-bottom: 60px;
            max-width: 650px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
            padding: 0 20px;
        }

        /* بطاقات التسعير */
        .pricing-card {
          
            border-radius: 20px;
            padding: 45px 35px;
            margin: 0 15px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            transition: all 0.4s ease;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            position: relative;
            overflow: hidden;
            background: linear-gradient(2.56deg, rgba(129, 30, 130, 0.45) 31.07%, rgba(22, 37, 111, 0.45) 98.08%);

        }

        .pricing-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            z-index: -1;
        }

        .pricing-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
            background: rgba(139, 69, 189, 0.9);
        }

        /* عنوان الخطة */
        .plan-title {
            color: #ffffff;
            font-size: 1.75rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 35px;
            letter-spacing: -0.3px;
        }

        /* قائمة الميزات */
        .features-list {
            list-style: none;
            padding: 0;
            margin: 0 0 40px 0;
        }

        .features-list li {
            color: rgba(255, 255, 255, 0.95);
            font-size: 1rem;
            font-weight: 400;
            margin-bottom: 18px;
            padding-right: 30px;
            position: relative;
            line-height: 1.5;
        }

        .features-list li::before {
            content: '✓';
            position: absolute;
            right: 0;
            top: 0;
            color: #4caf50;
            font-weight: 700;
            font-size: 1.2rem;
        }

        /* السعر */
        .price-section {
            text-align: center;
            margin-bottom: 35px;
        }

        .price-amount {
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 5px;
        }

        .price-period {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.2rem;
            font-weight: 400;
        }

        /* زر التحميل */
        .download-button {
            background: rgba(0, 0, 0, 0.7);
            border: none;
            border-radius: 12px;
            padding: 12px 20px;
            width: 100%;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .download-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            z-index: 1;
        }

        .download-button:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .download-button * {
            position: relative;
            z-index: 2;
        }

        .apple-icon {
            width: 28px;
            height: 28px;
            filter: brightness(0) invert(1);
        }

        .download-text {
            color: #ffffff;
            font-size: 0.95rem;
            font-weight: 500;
            margin: 0;
        }

        .store-text {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.85rem;
            font-weight: 400;
            margin: 0;
        }

        /* الاستجابة للشاشات الصغيرة */
        @media (max-width: 992px) {
            .main-title {
                font-size: 2.5rem;
            }
            
          
            
            .main-description {
                font-size: 1.1rem;
                margin-bottom: 50px;
            }
            
            .pricing-card {
                margin: 15px 0;
                padding: 35px 25px;
            }
        }

        @media (max-width: 768px) {
            .content-container {
                padding: 60px 0 40px;
            }
            
             .pricing-wrapper .main-title
            {
                padding-top:40%;
            }
            
            .main-title {
                font-size: 2.2rem;
                margin-bottom: 15px;
            }
            
            .main-description {
                font-size: 1rem;
                margin-bottom: 40px;
                padding: 0 15px;
            }
            
            .pricing-card {
                margin: 20px 0;
                padding: 30px 20px;
            }
            
            .price-amount {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 576px) {
            .main-title {
                font-size: 1.9rem !important;
            }
            
            .plan-title {
                font-size: 1.5rem;
            }
            
            .price-amount {
                font-size: 2.5rem;
            }
            
            .features-list li {
                font-size: 0.95rem;
                margin-bottom: 15px;
            }
        }
