.listing_tab-template-2 .modtitle.modtitle-2 {
    justify-content: flex-start; /* Changed from start */
}

.listing_tab-template-2 .module_heading {
    position: relative;
}

.listing_tab-template-2 .module_header {
    line-height: 40px;
    z-index: 100;
    font-weight: bold;
}

.listing_tab-template-2 .nav_wrapper {
    position: absolute;
    width: 100px;
    display: flex;
    flex-direction: row-reverse;
    gap: var(--margin-2);
    right: 35px; /* Changed from left */
    top: 90px;
}

.listing_tab-template-2.reverse .nav_wrapper {
    right: unset;
    left: 35px; /* Changed from right */
}

.listing_tab-template-2 .nav_wrapper .swiper-button-next,
.listing_tab-template-2 .nav_wrapper .swiper-button-prev {
    position: relative;
    padding: 0;
    background: unset;
}

.listing_tab-template-2 .nav_wrapper .swiper-button-next {
    border-radius: 0 1.4rem 1.4rem 0; /* Changed for LTR */
    right: unset;
    left: 0;
    border-left: 0; /* Changed from border-right */
}

.listing_tab-template-2 .nav_wrapper .swiper-button-prev {
    border-radius: 1.4rem 0 0 1.4rem;
    left: 0; /* Changed from right */
    right: unset;
    border-right: 0;
}

.listing_tab-template-2 .nav_wrapper .swiper-button-next svg,
.listing_tab-template-2 .nav_wrapper .swiper-button-prev svg {
    border-radius: var(--border-radius_2);
    color: var(--primary_1);
    width: 40px;
    height: 45px;
}

.listing_tab-template-2 .module_description {
    margin: 0;
    text-align: left; /* Changed from right */
}

.listing_tab-template-2 .module_heading .btn_show_more {
    z-index: 200;
    font-size: 16px;
    color: var(--text-color-light-1);
    margin-top: var(--margin);
}

.listing_tab-template-2 .nav-pills {
    display: flex;
    align-items: end;
    justify-content: flex-end; /* Changed from end */
    gap: var(--margin);
    border-radius: var(--border-radius_1);
    padding-bottom: 0;
    width: fit-content;
}

.listing_tab-template-2 li.nav-item {
    width: 150px;
    height: 150px;
}

.listing_tab-template-2 li.nav-item:first-child {
    width: 230px;
    height: 305px;
    position: relative;
    margin-bottom: 2rem;
}

.listing_tab-template-2 li.nav-item:first-child .nav-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-color-dark-2);
    font-size: 30px;
    overflow: hidden;
    background-color: #353f44;
    border-radius: var(--border-radius_3_r);
    padding: var(--margin-2);
    position: relative;
    z-index: 200;
}

.listing_tab-template-2.reverse li.nav-item:first-child .nav-item-content {
    border-radius: var(--border-radius_3_r);
}

.listing_tab-template-2 li.nav-item:first-child .nav-item-content:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary_1);
    opacity: 0.8;
    z-index: 99;
}

.listing_tab-template-2 li.nav-item:first-child:after {
    content: '';
    position: absolute;
    width: 90%;
    height: 100%;
    border: 4px solid var(--box_bg_2);
    left: -2rem; /* Changed from right */
    top: 2rem;
    border-radius: var(--border-radius_2_r);
}

.listing_tab-template-2.reverse li.nav-item:first-child:after {
    left: unset;
    right: -2rem; /* Changed from left */
    border-radius: var(--border-radius_2_r);
}

.listing_tab-template-2 li.nav-item:first-child img {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: loop 10s infinite;
}

@keyframes loop {
    0% {
        scale: 100%;
        transform: rotate(0deg);
    }
    25% {
        scale: 130%;
        transform: rotate(15deg);
    }
    50% {
        scale: 160%;
        transform: rotate(30deg);
    }
    75% {
        scale: 130%;
        transform: rotate(15deg);
    }
    100% {
        scale: 100%;
        transform: rotate(0deg);
    }
}

.listing_tab-template-2 li.nav-item:nth-child(3) .nav-link {
    border-radius: var(--border-radius_6);
}

.listing_tab-template-2 .nav-pills .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--margin-2);
    width: 150px;
    height: 150px;
    padding: var(--margin-2);
    border-radius: var(--border-radius_6_r);
    background-color: var(--box_bg_1);
    border: var(--border-1);
}

.listing_tab-template-2 .nav-pills .nav-link.active {
    background-color: unset;
    color: var(--text-color-dark-1);
    border: var(--border_size-1) solid var(--border_color_3);
    font-weight: bold;
}

.listing_tab-template-2 .nav-pills .nav-link span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    font-size: 14px;
    color: var(--text-color-dark-1);
}

.listing_tab-template-2 .swiper {
    height: 100%;
}

.listing_tab-template-2 .swiper-wrapper {
}

.listing_tab-template-2 .swiper-pagination {
    position: absolute;
    width: unset;
    flex-direction: column;
    gap: 1rem;
    bottom: 20px;
    left: 50px; /* Changed from right */
}

.listing_tab-template-2 .swiper-pagination-bullet-active {
    height: 25px;
    width: 8px;
}

.listing_tab-template-2.reverse li.nav-item:first-child {
    border-radius: var(--border-radius_3);
}

.listing_tab-template-2.reverse .nav-pills {
    flex-direction: row-reverse;
    justify-content: flex-end; /* Changed from start to flex-end */
}

.listing_tab-template-2.reverse .swiper-pagination {
    right: 50px; /* Changed from left */
    left: unset;
}

.listing_tab-template-2.reverse .nav-pills .nav-link {
    border-radius: var(--border-radius_6_r);
}

.listing_tab-template-2.reverse li.nav-item:nth-child(3) .nav-link {
    border-radius: var(--border-radius_6);
}

@media (min-width: 992px) {
    .listing_tab-template-2.reverse {
        flex-direction: row-reverse;
    }
    
    .listing_tab-template-2 .products-list {
        
    }

    .listing_tab-template-2 .nav-pills .nav-link img {
        width: 8.4rem;
        height: 8.4rem;
    }
}

@media (max-width: 991px) {
    .listing_tab-template-2.reverse li.nav-item:first-child {
        left: 2rem;
    }
    
    .listing_tab-template-2.reverse li.nav-item:first-child:after {
        left: unset;
        right: -1.5rem; /* Changed from left */
        top: 1rem;
        border-radius: var(--border-radius_3_r);
    }

    .listing_tab-template-2 .module_heading {
        flex-direction : column;
    }
    
    .listing_tab-template-2 .nav-pills{
        max-width: 100%;
        justify-content: center;
    }
    
    .listing_tab-template-2 .nav-pills .nav-link {
    
    }
    
    .listing_tab-template-2 .nav-pills .nav-link img {
    
    }
    
    .listing_tab-template-2 .module_header {
        max-width: 100% !important;
    }
    
    .listing_tab-template-2 .module_description {
        margin: 3rem 0;
    }
    
    .listing_tab-template-2 .module_heading .btn_show_more {
        font-size: 13px;
    }
}