/* Tab Slider Widget Styles */
.ew-tab-slider-outer {
	position: relative;
	width: 100%;
	overflow-x: visible;
}

.ew-tab-slider-wrapper{
    position: relative;
    padding:60px 0;
	overflow: visible;
}

/* Header Section */
.ew-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
	padding: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.ew-tab-title-wrapper {
    flex: 0 0 auto;
}

.ew-tab-slider-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
}

.ew-tabs-wrapper {
	flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}
.ew-tabs-container {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    overflow-x: auto;
    margin-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;

    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ew-tabs-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}
.ew-tabs-container::-webkit-scrollbar {
    display: none;
}

.ew-tab-item {
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

.ew-tab-item span {
	font-size: 16px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
	transition: all 0.3s ease;
    z-index: 1;
    white-space: nowrap;
}

.ew-tab-item span::before {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 15px;
    height: 0;
    background: #d49c7f;
    z-index: -1;
    transition: height 0.35s ease;
}

.ew-tab-item span:hover::before,
.ew-tab-item.active > span::before{
    height: 8px;
}

.ew-tabs-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

/* فلش‌های ناوبری نوار تب‌ها - فقط موبایل */
.ew-tab-mobile-arrows {
    display: none;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.ew-tab-mobile-arrow {
    background: none !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    color: #333333;
	background: #d49c7f !important;
	border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.ew-tab-mobile-arrow svg {
    width: 14px;
    height: 14px;
}

.ew-tab-mobile-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Content Section */
.ew-tab-content-wrapper {
    position: relative;
    padding: 0;
}

.ew-tab-slider-container {
    position: relative;
    overflow: hidden;
    min-height: 0;
    cursor: grab;
}

.ew-tab-slider-container.is-dragging {
    cursor: grabbing;
    user-select: none;
}
 
.ew-tab-slider-container.is-dragging * {
    pointer-events: none;
}

.ew-tab-slide {
    display: none;
}

.ew-tab-slide.active {
    display: block;
}

.ew-tab-content-inner {
    display: flex;
    flex-direction: column;
	align-items: flex-start;
    gap: 12px;
    padding: 20px 0;
}

.ew-tab-content-heading {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 !important;
    padding: 0;
    flex-shrink: 0;
}

.ew-tab-main-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex: 1;
    align-items: stretch;
    min-height: 300px;
}

.ew-tab-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.ew-tab-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ew-tab-content-text p {
    margin: 0;
	height: 100%;
	text-align: justify;
}

.ew-tab-content-text p:last-child {
    margin-bottom: 0;
}

.ew-tab-image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ew-tab-image-content img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.ew-tab-mobile-image-content {
    display: none;
}

/* Button Styles */
.ew-tab-button-wrapper {
    flex-shrink: 0;
    padding-top: 20px;
}

.ew-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #363633;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.ew-tab-button span{
	font-weight: 600;
    font-size: 18px;
	position: relative;
}

.ew-tab-button span::before {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: 10px;
    height: 7px;
    background: #d49c7f;
    z-index: -1;
}

.ew-tab-button svg {
    transition: transform 0.3s ease;
}

.ew-tab-button:hover {
    color: #b8846a;
}

.ew-tab-button:hover svg {
    transform: translateX(5px);
}

/* Arrow Styles */
.ew-tab-arrows {
    position: absolute;
    top: 50%;
	left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.ew-tab-arrow {
    pointer-events: auto;
    width: 120px !important;
    height: 120px !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
    color: #363633;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.ew-tab-arrow:hover{
	color: #363633;
}

.ew-tab-arrow svg {
    width: 60px !important;
    height: 60px !important;
}

.ew-tab-arrow:active {
    transform: scale(0.9);
}

.ew-tab-arrow.ew-tab-prev {
    right: -130px;
}

.ew-tab-arrow.ew-tab-next {
    left: -130px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ew-tab-header {
        align-items: center;
        gap: 15px;
    }

    .ew-tabs-container {
        justify-content: flex-start;
        width: 100%;
    }

    .ew-tab-content-inner {
        flex-direction: column;
        gap: 24px;
    }
    
    .ew-tab-main-content {
        flex-direction: column-reverse;
        gap: 24px;
        min-height: auto;
    }

    .ew-tab-text-content {
        flex: 1;
        width: 100%;
    }
    
    .ew-tab-image-content {
        display: none;
    }
	
	.ew-tab-mobile-image-content {
        display: block;
        width: 100%;
        max-height: 300px;
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .ew-tab-mobile-image-content img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .ew-tab-slider-title {
        font-size: 28px;
    }

    .ew-tab-content-heading {
        font-size: 24px;
    }

    .ew-tab-arrows {
        position: relative;
        top: auto;
        transform: none;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .ew-tab-arrow {
        width: 50px;
        height: 50px;
        margin: 0 !important;
    }

    .ew-tab-arrow svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .ew-tab-mobile-arrows {
        display: flex;
    }
}

@media (max-width: 576px) {
    .ew-tab-slider-wrapper {
        padding: 40px 0;
		overflow-x: hidden !important;
    }
	
	.ew-tab-header{
		padding: 10px;
		margin-bottom: 0;
	}

    .ew-tab-slider-title {
        font-size: 24px;
    }

    .ew-tabs-container {
        gap: 15px;
    }

    .ew-tab-item span {
        font-size: 14px;
        padding: 6px 0;
    }
	
	.ew-tab-main-content {
        flex-direction: column-reverse;
        gap: 16px;
    }
    
    .ew-tab-text-content {
        width: 100%;
    }
    
    .ew-tab-mobile-image-content {
        max-height: 220px;
    }
	
	.ew-tab-mobile-image-content img {
        max-height: 220px;
    }

    .ew-tab-content-heading {
        font-size: 20px;
    }
	
	.ew-tab-item span::before{
		bottom: 11px;
	}

    .ew-tab-content-text {
        font-size: 14px;
    }
	
	.ew-tab-arrows{
		display: none;
	}
}