/*
 * Visual Composer Mobile Compatibility
 * 
 * @package MobileApp_Pro
 */

/* Reset VC default styles that conflict with mobile design */
.vc_row[data-vc-full-width] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vc_row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.vc_column_container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile-first VC columns */
.vc_col-xs-12,
.vc_col-sm-12,
.vc_col-md-12,
.vc_col-lg-12 {
    width: 100%;
    padding: 0.5rem;
}

/* VC Elements - Mobile App Style */
.vc_btn3-container .vc_btn3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-height: 48px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.vc_btn3-container .vc_btn3:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* VC Text Blocks */
.wpb_text_column {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* VC Images */
.wpb_single_image .vc_single_image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wpb_single_image img {
    width: 100%;
    height: auto;
}

/* VC Progress Bars */
.vc_progress_bar {
    margin-bottom: 1rem;
}

.vc_single_bar {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.vc_bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    height: 12px !important;
    border-radius: 12px !important;
}

/* VC Tabs - Mobile Style */
.wpb_tabs .wpb_tabs_nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
}

.wpb_tabs .wpb_tabs_nav::-webkit-scrollbar {
    display: none;
}

.wpb_tabs .wpb_tabs_nav li {
    flex: 0 0 auto;
    margin: 0 2px;
}

.wpb_tabs .wpb_tabs_nav li a {
    display: block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.wpb_tabs .wpb_tabs_nav li.ui-tabs-active a {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpb_tab {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* VC Accordion - Mobile Style */
.wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header {
    background: #f8f9fa;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
    position: relative;
}

.wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header.ui-state-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header:after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header.ui-state-active:after {
    content: '−';
    transform: rotate(180deg);
}

.wpb_accordion .wpb_accordion_wrapper .wpb_accordion_content {
    background: #fff;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

/* VC Icon Box */
.vc_icon_element-outer .vc_icon_element-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.vc_icon_element-outer .vc_icon_element-inner:hover {
    transform: translateY(-5px);
}

.vc_icon_element-outer .vc_icon_element-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* VC Counter */
.vc_counter {
    text-align: center;
    background: #fff;
    padding: 2rem 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vc_counter-value {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #667eea !important;
    display: block;
    margin-bottom: 0.5rem;
}

.vc_counter-title {
    font-size: 1rem !important;
    color: #666 !important;
    font-weight: 500;
}

/* VC Testimonials */
.vc_testimonial {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    position: relative;
}

.vc_testimonial:before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: serif;
}

.vc_testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: #667eea;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .vc_col-sm-6 {
        width: 50%;
        float: left;
    }
    
    .vc_col-sm-4 {
        width: 33.333%;
        float: left;
    }
    
    .vc_col-sm-3 {
        width: 25%;
        float: left;
    }
}

@media (min-width: 1024px) {
    .vc_col-md-6 {
        width: 50%;
        float: left;
    }
    
    .vc_col-md-4 {
        width: 33.333%;
        float: left;
    }
    
    .vc_col-md-3 {
        width: 25%;
        float: left;
    }
}

/* Clear floats */
.vc_row:after {
    content: "";
    display: table;
    clear: both;
}