/* Start custom CSS *//* استایل‌های اصلی برای همه دستگاه‌ها (دسکتاپ) */
.e-n-tabs-heading {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #006876; /* پس‌زمینه تب‌ها */
    padding-top: 10px;
}

.e-n-tabs-heading::after {
    content: '';
    position: absolute;
    left: 10;
    right: 10;
    bottom: 0;
    height: 2px;
    background-color: #fff; /* دیوایدر سفید */
}

.elementor-tab-content {
    max-height: 500px;
    overflow-y: auto;
}

.elementor-tabs {
    background-color: #006876; /* پس‌زمینه کل ویجت */
}

/* تنظیمات برای تبلت (768px تا 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .e-n-tabs-heading {
        padding-top: 9px;
        background-color: #006876;
    }

    .e-n-tabs-heading::after {
        height: 2px;
        background-color: #fff;
    }

    .elementor-tab-content {
        max-height: 400px;
    }
}

/* تنظیمات برای موبایل (زیر 768px) */
@media (max-width: 767px) {
    .e-n-tabs-heading {
        position: sticky;
        top: 0; /* حداکثر بالای صفحه ثابت بشه */
        bottom: 0; /* چسبیدن به پایین تا وقتی به فوتر برسه */
        background-color: #006876;
        padding-top: 10px; /* پدینگ بیشتر از بالا */
        padding-bottom: 10px; /* پدینگ بیشتر از پایین */
        z-index: 10;
        width: 100%;
    }

    .e-n-tabs-heading::after {
        height: 1px;
        background-color: #fff;
    }

    .e-n-tab-title {
        padding: 20px !important;
        box-sizing: border-box;
    }

    /* تنظیم محتوا برای جلوگیری از تداخل */
    .elementor-tab-content {
        margin-bottom: 80px; /* فضای خالی برای تب‌ها */
    }

    /* اطمینان از اینکه تب‌ها بالای فوتر متوقف بشن */
    .elementor-tabs {
        position: relative;
    }
}/* End custom CSS */