/* Why Us Modern Slider */
.why-us-modern-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.why-us-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

/* Left Tabs */
.why-us-tabs {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-us-tab {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.why-us-tab:hover {
    background: #fff;
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.is-rtl .why-us-tab:hover {
    transform: translateX(-10px);
}

.why-us-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tab-title {
    position: relative;
    z-index: 2;
}

.tab-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    z-index: 1;
    transition: width 0s linear;
}

/* Center Content */
.why-us-content-area {
    flex: 1;
    position: relative;
    min-height: 500px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: visible;
    /* Allow icons to float out */
    display: flex;
    padding: 10px;
    /* Inner spacing */
}

.why-us-slide {
    display: none;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
}

.why-us-slide.active {
    display: flex;
    opacity: 1;
}

.slide-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.is-rtl .slide-image-container {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.why-us-slide.active .slide-image {
    transform: scale(1.15);
}

.slide-text-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.slide-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.slide-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666;
}

/* Floating Icons Container */
.floating-shapes-container {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.15;
    color: var(--primary-color);
    filter: blur(1px);
}

.shape-1 {
    top: 0;
    right: 0;
    font-size: 4rem;
    animation: float 6s infinite ease-in-out;
}

.shape-2 {
    bottom: -20px;
    left: 20px;
    font-size: 3rem;
    animation: float 8s infinite ease-in-out 1s;
}

.shape-3 {
    top: 40%;
    left: -30px;
    font-size: 2rem;
    animation: float 5s infinite ease-in-out 0.5s;
}

.shape-4 {
    bottom: 30%;
    right: -20px;
    font-size: 2.5rem;
    animation: float 7s infinite ease-in-out 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Bottom Thumbnails */
.why-us-thumbnails {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
    .why-us-container {
        flex-direction: column;
    }

    .why-us-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        flex: none;
        width: 100%;
    }

    .why-us-tab {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .why-us-content-area {
        flex-direction: column;
        min-height: auto;
    }

    .slide-image-container {
        height: 300px;
        clip-path: none;
        border-radius: 25px 25px 0 0;
    }

    .is-rtl .slide-image-container {
        clip-path: none;
    }

    .slide-text-content {
        padding: 30px;
    }

    .floating-shapes-container {
        display: none;
        /* Hide on mobile to prevent overflow */
    }
}