/* CSS for Features Tab Section */

.features-tabs-section {
    padding: 60px 0;
    background-color: #f0f4f8;
    text-align: center;
}

.features-tabs-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #212529;
}

.tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-container {
    overflow: hidden;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 12px;
    padding: 5px;
}

.tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smoother transition */
}

.tab-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smoother transition */
    z-index: 1;
    pointer-events: none; /* Bug Fix: Prevent slider from capturing clicks */
}

.tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.tab-item.active {
    padding: 12px 15px;
    color: #007bff;
}

.tab-nav-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    color: #6c757d;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.2s ease;
}

.tab-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.tab-nav-btn.prev {
    margin-right: 15px;
}

.tab-nav-btn.next {
    margin-left: 15px;
}

.tab-content-container {
    margin-top: 20px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    /* ORACLE FIX: Prevent text selection on double-tap which causes issues */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
    touch-action: pan-y; /* Allow vertical scroll on mobile without interfering with carousel */
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.tab-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.tab-content-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tab-content-text {
    flex: 1;
}

.tab-content-image {
    flex: 1;
    max-width: 500px;
}

.tab-content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .features-tabs-section .section-title {
        font-size: 2rem;
    }
    .tab-content-inner {
        flex-direction: column;
    }
    .tab-item {
        padding: 10px 20px;
    }
}