/* Reset */
.noure-sc-widget * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.noure-sc-widget {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
.noure-sc-widget-tab-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
}

/* Wrapper for tab triggers – NO overflow:hidden here! */
.noure-sc-widget-tab-triggers-wrapper {
    width: 60%;
    max-width: 1000px;
    margin: 0 auto 1px auto;
    height: fit-content;
    background-color: white;
    border-radius: 35px;
    /* overflow: hidden; ← ❌ حذف شد */
}

/* Apply border-radius and overflow to Swiper itself */
.noure-sc-widget-tab-swiper {
    border-radius: 24px;
    overflow: hidden; /* ✅ safe here */
}

.noure-sc-widget-tab-triggers {
    display: flex;
}

/* Swiper slides for tabs – let Swiper control width */
.noure-sc-widget-tab-swiper .swiper-slide {
    width: auto !important; /* Allow Swiper to calculate */
    flex-shrink: 0;
    height: 100%;
}

.noure-sc-widget-tab-trigger {
    text-align: center;
    padding: 8px 20px;
    background: white;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 120px; /* Prevent too narrow on mobile */
}

.noure-sc-widget-tab-trigger.active,
.noure-sc-widget-tab-trigger:hover {
    background: #F4F4F4 !important;
}

.noure-sc-widget-tab-trigger svg {
    width: 55px !important;
    height: 44px !important;
    fill: #333;
    margin-right: 6px;
}
.noure-sc-widget-tab-trigger img {
    max-width: 20px;
    height: auto;
    margin-right: 6px;
}
.noure-sc-widget-tab-trigger span {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.noure-sc-widget-tab-content {
    padding: 20px 0 !important;
    margin-top: 50px;
}
.noure-sc-widget-tab-pane {
    display: none;
}
.noure-sc-widget-tab-pane.active {
    display: block;
}
.noure-sc-widget .swiper {
    width: 100%;
}
.noure-sc-widget .swiper-slide {
    min-height: 100px;
}
.noure-sc-widget .noure-sc-widget-tab-content .swiper-slide {
    padding-bottom: 70px !important;
}

/* Grid */
.noure-sc-widget-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.noure-sc-widget-grid-item {
    position: relative;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.noure-sc-widget-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.noure-sc-widget-grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 2;
}
.noure-sc-widget-grid-item h3 {
    position: relative;
    z-index: 3;
    margin: 0;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 15px;
    font-family: Inter;
    font-weight: 600;
    line-height: 1.5em;
    font-size: 2.5rem;
}
/* Text alignment */
.noure-sc-widget-grid-item.txt-pos-left { justify-content: flex-start; text-align: left; }
.noure-sc-widget-grid-item.txt-pos-center { justify-content: center; text-align: center; }
.noure-sc-widget-grid-item.txt-pos-right { justify-content: flex-end; text-align: right; }

/* Pagination */
.noure-sc-widget .swiper-pagination {
    bottom: 10px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.noure-sc-widget .swiper-pagination-bullet {
    opacity: 1;
    background: rgba(0,0,0,.2);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    margin: unset !important;
}
.noure-sc-widget .swiper-pagination-bullet .noure-sc-widget-pagination-icon {
    display: none;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
.noure-sc-widget .swiper-pagination-bullet-active {
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    transform: none;
}
.noure-sc-widget .swiper-pagination-bullet-active .noure-sc-widget-pagination-icon {
    display: block;
}

.noure-sc-widget .swiper-button-next:after,
.noure-sc-widget .swiper-button-prev:after,
.noure-sc-widget-tab-swiper-button-next:before,
.noure-sc-widget-tab-swiper-button-prev:before,
.noure-sc-widget-tab-swiper-button-next,
.noure-sc-widget-tab-swiper-button-prev {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .noure-sc-widget-tab-trigger span { font-size: 13px; }
    .noure-sc-widget-tab-trigger svg { width: 40px; height: 32px; }
    .noure-sc-widget-grid-item { height: 220px; }
    .noure-sc-widget-grid-item h3 { font-size: 2rem; }
}

@media (max-width: 768px) {

    .noure-sc-widget .swiper-button-next:after,
    .noure-sc-widget .swiper-button-prev:after,
    .noure-sc-widget-tab-swiper-button-next:before,
    .noure-sc-widget-tab-swiper-button-prev:before { display: block !important; font-size: 14px !important; font-weight: bold !important; }

    .noure-sc-widget-tab-swiper-button-next,
    .noure-sc-widget-tab-swiper-button-prev {
        display: block;
        z-index: 10;
        background-color: #f9f9f9;
        width: 28px !important;
        height: 28px !important;
        border-radius: 100% !important;
        color: black !important;
        border: 1px solid #eeeeee;
    }

    .noure-sc-widget-tab-triggers-wrapper {
        width: 100%;
    }
    .noure-sc-widget-tab-trigger {
        padding: 10px 12px;
        min-width: 100px;
    }
    .noure-sc-widget-tab-trigger span {
        font-size: 12px;
    }
    .noure-sc-widget-tab-trigger svg,
    .noure-sc-widget-tab-trigger img {
        width: 24px !important;
        height: 24px !important;
        margin-right: 4px;
    }

    /* ✅ نمایش همه آیتم‌ها در یک ستون */
    .noure-sc-widget-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .noure-sc-widget-grid-item {
        height: 120px;
    }
    .noure-sc-widget-grid-item h3 {
        font-size: 13px;
        white-space: normal; /* Allow wrapping on small screens */
    }

    .noure-sc-widget-tab-content {
        padding: 15px 0 !important;
        margin-top: 30px;
    }

    .noure-sc-widget-tab-triggers-wrapper { border-radius: 24px !important; }

}

.noure-sc-widget .jet-slick-dots {
    width: 22px !important;
    height: 22px !important;
}


