@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-empty-space {
        display: none; 
    }
    .hero-text-box p {
        margin: 0 auto 30px auto;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center; /* در موبایل دکمه ها وسط باشند */
        flex-wrap: wrap; /* اگر فضا کم بود دکمه ها زیر هم بروند */
    }
    .hero-text-box h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    /* تغییر ارتفاع سکشن هیرو به اندازه محتوا */
    .novix-hero-section{
        min-height: 43vh;
    }
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        padding-top: 100px; /* فاصله از هدر - بسته به ارتفاع هدر خود تنظیم کنید */
        padding-bottom: 40px; /* فاصله از پایین */
        position: relative;
    }

    .hero-content-container {
        height: auto !important;
        padding: 0 15px; /* فاصله‌های کناری */
        display: flex;
        align-items: center;
        justify-content: center; /* قرارگیری در مرکز */
    }

    /* استایل شیشه‌ای (Glassmorphism) برای باکس متن */
    .hero-text-box {
        width: 100%;
        background: rgba(20, 20, 25, 0.45) !important; /* پس‌زمینه تیره و نیمه‌شفاف */
        backdrop-filter: blur(5px) !important; /* افکت محو کردن پس‌زمینه (شیشه‌ای) */
        -webkit-backdrop-filter: blur(5px) !important; /* پشتیبانی سافاری */
        border: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important; /* سایه برای عمق دادن */
        padding: 2rem !important;
        border-radius: 20px !important;
        position: relative;
        z-index: 2; /* تا متن حتما روی ذرات باشد */
    }
    
    /* تنظیم بوم (Canvas) ذرات تا فقط پشت همین باکس متنی قرار بگیرد */
    .hero-visual-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
        .tutorials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-post-article { padding: 20px; }
    .entry-meta { flex-wrap: wrap; gap: 10px; }
    
    /* تبدیل گرید به اسلایدر اسکرولی در تبلت و موبایل */
    .related-grid {
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* مخفی کردن اسکرول بار برای زیبایی در موبایل */
    .related-grid::-webkit-scrollbar { display: none; }
    
    .related-card {
        flex: 0 0 275px;
    }
    .entry-title{
        text-align: center;
            padding: 0;
    }
}


/* تنظیمات مخصوص موبایل‌های کوچکتر (مثل اسکرین شات شما) */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
      .product-showcase {
    flex-direction: column;
  }
  .product-info {
    padding: 20px;
  }
      .tabs-header {
        flex-wrap: wrap; /* در موبایل اگر جا نشد بشکند به خط بعد */
        border-bottom: none; /* خط طلایی سراسری را در موبایل برمیداریم یا تغییر میدهیم */
    }
    .tab-link {
        flex: 1 1 45%; /* دو تب در هر ردیف در موبایل */
        margin: 5px;
        border: 1px solid #d4af37; /* در موبایل بهتر است دورشان خط باشد */
    }
       .pricing-container {
        flex-direction: column;
        overflow-x: hidden;
        padding: 10px;
    }
    
    .pricing-card {
        padding: 20px 15px;
    }
.product-hero-section{
    min-height: 77vh;
}
    .pricing-header {
        align-items: center;
        gap: 10px;
        flex-direction: column;
        min-height: auto;
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .package-title { margin-bottom: 0; grid-column: 2; text-align: left; }
    .package-price-box { grid-column: 1; grid-row: 1; text-align: right; }
    
    .old-price-box {margin-bottom: 10px; }
    
    .order-btn {padding: 8px 25px; }

    /* دکمه آکاردئون موبایل */
    .mobile-details-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        grid-column: 2;
        justify-content: flex-end;
        color: #e5b869;
        font-size: 12px;
        cursor: pointer;
    }

    .mobile-details-toggle svg { transition: transform 0.3s; }

    /* ویژگی‌ها در موبایل: ردیفی و به صورت پیش‌فرض مخفی */
    .pricing-features {
        display: none;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .pricing-card.active .pricing-features {
        display: flex;
    }

    .pricing-card.active .mobile-details-toggle svg {
        transform: rotate(180deg);
    }

    .feature-item {
        flex-direction: row;
        justify-content: space-between;
        border-bottom: none;
        padding: 5px 0;
    }
    
    .feature-name { margin-bottom: 0; }
    header {
        padding: 15px 20px;
    }
   .Logo span {
        font-size: 1.4rem;
    }
    .BtnProject button {
        padding: 6px 14px;
        font-size: 12px;
    }

    .hamburger-icon {
        display: flex; 
    }
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        visibility: hidden;
        z-index: 99;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        transition: visibility 0.01s linear 1.1s, opacity 0.01s linear 1.1s; 
    }
    #mobile-menu.show {
        visibility: visible;
        opacity: 1;
        transition: visibility 0.01s linear 0s, opacity 0.01s linear 0s; 
    }
        .menu-box {
        display: grid;
        grid-template-rows: 0fr; 
        background: rgba(10, 10, 10, 0.95); /* بک‌گراند تیره شیشه‌ای */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(232, 186, 93, 0.1);
        transition: grid-template-rows 0.4s ease 0s;
    }

    #mobile-menu.show .menu-box {
        grid-template-rows: 1fr;
        transition: grid-template-rows 0.4s ease 0.7s;
    }

    .menu-inner {
        overflow: hidden; 
        min-height: 0;
    }

    /* عمودی کردن لیست منوها در موبایل */
    .menu-content {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        opacity: 0;
        transform: translateY(-10px);
        /* زمان بسته شدن: متن ها فورا مخفی میشوند */
        transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
    }

    #mobile-menu.show .menu-content {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease 0.8s, transform 0.3s ease 0.8s;
    }

    .menu-content li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .menu-content li:last-child {
        border-bottom: none;
    }

    .menu-content li.active::after {
        bottom: 5px;
        width: 40px; 
    }

    .glow-line-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .glow-line {
        height: 3px;
        width: 6px; 
        border-radius: 50%;
        background: #e8ba5d;
        box-shadow: 0 0 10px #e8ba5d, 0 0 20px #e8ba5d;
        opacity: 0; 
        /* زمان بسته شدن: صبر، تبدیل به نقطه، محو شدن */
        transition: width 0.4s ease 0.4s, border-radius 0.4s ease 0.4s, opacity 0.3s ease 0.8s;
    }

    #mobile-menu.show .glow-line {
        opacity: 1;
        width: 100%;
        border-radius: 0;
        /* زمان باز شدن: ظاهر شدن آنی، صبر، تبدیل به خط */
        transition: opacity 0.3s ease 0s, width 0.4s ease 0.3s, border-radius 0.4s ease 0.3s;
    }

    /* استایل‌دهی منو به عنوان یک کشوی پایین‌رونده */
    .menu {
        position: absolute;
        top: 100%; /* دقیقاً زیر خط هدر قرار میگیرد */
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95); /* بک‌گراند تیره شیشه‌ای */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(232, 186, 93, 0.1); /* خط ظریف طلایی پایین منو */
        
        /* تنظیمات انیمیشن */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        z-index: 100;
        
        /* در حالت پیش‌فرض ارتفاع صفر است تا افکت باز شدن زیباتر شود */
        max-height: 0;
        overflow: hidden;
    }

    /* کلاسی که با جاوااسکریپت اضافه می‌شود تا منو نمایش داده شود */
    .menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 400px; /* یک ارتفاع معقول برای نمایش کامل آیتم‌ها */
    }

    /* عمودی کردن لیست منوها در موبایل */
    .menu nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .menu nav ul li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03); /* خط جداکننده محو */
    }

    .menu nav ul li:last-child {
        border-bottom: none;
    }

    /* اصلاح خط زیرین آیتم فعال در حالت موبایل (کوچک و وسط‌چین) */
    .menu nav ul li.active::after {
        bottom: 5px;
        width: 40px; /* در موبایل خط طلایی کوچکتر می‌شود */
    }
        .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap:30px;
    }
    
    .animated-logo {
        font-size: 1.8rem;
    }
    .download-list{
        gap: 25px;
    }
    .download-header h3{
        margin-bottom: 32px;
        border-bottom: 2px solid #e8ba5d;
    }
    .download-list li{
        flex-direction: column;
    }
    .dl-content-right{
        flex-direction: column;
        margin-bottom: 10px;
    }
    .dl-bullet{
        transform: translatey(-81%);
        box-shadow: rgb(255 255 255 / 36%) 0px 1px 0px 1px;
    }
    .dl-info{
        align-items: center;
    }
    .dl-btn{
        width: 100%;
        text-align: center;
    }
        .entry-content table, 
    .entry-content tbody, 
    .entry-content tr, 
    .entry-content td {
        display: block;
        width: 100%;
    }

    /* مخفی کردن سطر اول (هدرهای دسکتاپ) در موبایل */
    .entry-content table tr:first-child {
        display: none;
    }

    /* استایل هر ردیف به عنوان یک کارت یا باکس مستقل */
    .entry-content table tr {
        border-radius: 0px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border-bottom: 3px solid #e8ba5d;
    }
    .entry-content table tr:last-child{
        border-bottom:none;
    }
    /* استایل هر سلول و تنظیم فلکس برای نمایش دو ستونه */
    .entry-content table td {
        padding: 0 !important; /* حذف پدینگ پیش‌فرض دسکتاپ */
        border: none !important; 
        border-bottom: 2px solid #ffffff !important; /* خط جداکننده سفید بین آیتم‌ها مثل عکس */
        display: flex;
        align-items: stretch; /* هم ارتفاع شدن ستون راست و چپ */
        direction: rtl; /* اطمینان از راست‌چین بودن */
    }

    .entry-content table tr td:last-child {
        border-bottom: none !important;
    }

    /* -------------------------------------
       ستون سمت راست: عنوان داینامیک (رنگ تیره)
    -------------------------------------- */
    .entry-content table td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        background-color: #ecf0f117;
        color: #fff;
        padding: 12px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        font-weight: bold;
        box-sizing: border-box;
        border-left: 1px solid #e8ba5d;
    }

    /* -------------------------------------
       ستون سمت چپ: مقدار متنی (رنگ روشن)
    -------------------------------------- */
    .entry-content table td .cell-content {
        flex: 1; /* اشغال فضای باقی مانده - ۶۰ درصد تصویر */
        background-color: #000; /* رنگ خاکستری بسیار روشن مثل عکس سمت راست */
        color: #fff;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.95rem;
        font-weight: 500;
        box-sizing: border-box;
    }
}
@media (max-width: 600px) {
    .services-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .deco-line {
        width: 40px;
    }
    .entry-header span{
        display: none;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .tools-container{
        flex-direction: column;
    }
    .tools-container ul{
            width: 100%;
    display: block;
    }
}
@media (max-width: 576px) {
    .tutorials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tutorial-title {
        font-size: 1rem;
    }
        .comment-form-flex-row {
        flex-direction: column; /* زیر هم رفتن فیلدهای نام و موبایل در گوشی */
        gap: 15px;
    }
    .custom-comment-form .submit {
        width: 100%;
        text-align: center;
    }
    .custom-comment-list .bypostauthor .admin-badge{
        display: flex;
        position: inherit;
        top: 0;
        right: 0;
        width: 100%;
        background: #000;
        color: #e8ba5d;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-family: Arial, Helvetica, sans-serif;
        letter-spacing: 4px;
        font-size: 1.5rem;
        border-bottom: 1px solid #e8ba5d;
        writing-mode: inherit;
        bottom: inherit;
        border-radius: 20px 20px 0 0;
        border-left:none;
    }
    .custom-comment-list .comment-body{
        padding: 0;
    }
    .custom-comment-list .comment-meta{
        padding: 10px;
        margin-bottom:0;
    }
    .comment-content{
       padding: 0 10px 10px 10px;
    }
    .custom-comment-list .bypostauthor .comment-body {
        padding: 0;
    }
    .custom-comment-form .comment-reply-title{
        text-align: center;
        border-bottom: 1px solid #e8ba5d;
    }
    .custom-comment-form label{
        text-align: center;
    }
}
@media (max-width: 400px) {
    .projects-grid {
        /* در گوشی‌های خیلی کوچک، به جای حداقل 300 پیکسل، کارت هم‌عرض صفحه می‌شود تا بیرون نزند */
        grid-template-columns: 1fr; 
        gap: 15px; /* فاصله بین کارت‌ها در موبایل کمی کمتر شود تا زیباتر باشد */
    }
    
    .projects-section {
        padding: 20px 15px 40px 15px; /* پدینگ موبایل کمی جمع‌وجورتر */
    }
    .Bg-Title span:last-child{
    display: flex;

    }
    .section-header{
        flex-direction: column;
    }
    .Bg-Title{
        margin-bottom: 10px;
    }
    .btn svg{
        display: none;
    }
}