 .dropdown:hover .dropdown-menu {
            display: block;
        }
        .dropdown-submenu:hover .dropdown-submenu-content {
            display: block;
        }
          .hero-section {
        /* گرادینت و تصویر اولیه در جاوا اسکریپت تنظیم می‌شود */
        background-size: cover;
        background-position: center;
        /* مهم: این خط انیمیشن نرم را اضافه می‌کند */
        transition: opacity 1s ease-in-out; 
        }

        /* این کلاس به صورت موقت برای محو شدن استفاده می‌شود */
        .hero-fade {
            opacity: 0;
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        .mobile-menu {
            transition: all 0.3s ease;
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        /* --- Page Flip Animation Styles (نسخه اصلاح‌شده) --- */
        .book-container {
            width: 100%;
            /* اندازه کتاب را کوچکتر و مناسب برای حالت عمودی کنید */
            max-width: 300px; 
            /* تغییر اصلی: نسبت ابعاد را برای تصاویر عمودی (مانند موبایل) تنظیم کنید */
            aspect-ratio: 9 / 16; 
            perspective: 1200px;
        }

        .book {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 1s;
        }

        .page {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            transform-origin: left;
            transform: rotateY(0deg);
            transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
            backface-visibility: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
            border-radius: 0.5rem;
            overflow: hidden;
            /* یک پس‌زمینه تیره اضافه می‌کنیم تا اگر فضای خالی بود، زشت به نظر نرسد */
            background-color: #1f2937; /* معادل bg-gray-800 */
        }
        
        .page img {
        width: 100%;
        height: 100%;
        /* تغییر اصلی: برای اطمینان از نمایش کامل تصویر، از contain استفاده کنید */
        object-fit: contain;
        border-radius: 0.5rem;
        }

        /* استایل صفحه‌ای که ورق خورده است */
        .flipped {
            transform: rotateY(-180deg);
        }
        
        /* تنظیم z-index برای ترتیب صحیح لایه‌ها */
        .page.cover {
            z-index: 10;
        }
    .container {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
      max-width: 1300px;
      margin: auto;
      padding: 40px 20px;
    }

    .features-column {
      flex: 1 1 300px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center; /* ⬅️ وسط‌چینی آیکون و متن */
      text-align: center;
    }

    .center-image {
      flex: 1 1 400px;
      text-align: center;
      margin: 20px;
    }

    .center-image img {
      max-width: 100%;
      height: auto;
    }

    .feature {
      background-color: #1f2937;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 10px;
      max-width: 250px;
    }

    .feature:hover {
      background: #428d94;
      border-radius: 10px;
      transform: translateY(-3px);
    }

    .feature-icon {
      width: 60px;
      height: 60px;
      background: #0f5a61;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      margin: 0 auto 12px;
    }

    .feature-title {
      font-weight: bold;
      font-size: 18px;
      margin-bottom: 6px;
    }

    .feature-desc {
      font-size: 14px;
      color: rgb(117, 117, 117);
    }

    @media (max-width: 992px) {
      .container {
        flex-direction: column;
        align-items: center;
      }

      .features-column, .center-image {
        flex: 1 1 100%;
        margin-bottom: 20px;
      }
    }