/* Base Styles */
.company-as-now-tabs .nav-link {
    background-color: #F7F7F7;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0 !important;
    color: #5D0E8B !important;
    border-bottom: 1px solid #E2E2E2;
    border-right: 1px solid #E2E2E2;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.875rem;
}

.company-as-now-tabs .nav-link:hover {
    background-color: #5D0E8B;
    color: #fff !important;
}

.company-as-now-tabs .nav-link.active {
    background-color: #5D0E8B;
    color: #fff !important;
    border: none !important;
}

.company-as-now-content .tab-pane {
    padding: 15px;
    background-color: #F7F7F7;
}

.company-as-now-tabs {
    background-color: #fff;
    box-shadow: 0px 4px 9.8px -2px rgba(0, 0, 0, 0.1);
    border: none !important;
    border-radius: 8px 8px 0px 0px !important;
    margin-bottom: 0 !important;
    flex-wrap: nowrap;
}

.nav-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    display: block;
    margin-bottom: -1px;
    scrollbar-width: none; 
}

.nav-scroll-wrapper::-webkit-scrollbar {
    display: none; 
}

h1.company-as-now {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
}

.company-as-now-section .card {
    height: 100%;
    justify-content: center;
    border: none;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    min-height: 170px;
    border-radius: 10px;
    width: 100%;
}

.company-as-now-section .card-number {
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.company-as-now-section .card-descrption {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

.company-as-now-section .card-descrption p {
    margin-bottom: 0 !important;
}

.company-card-image {
    max-width: 40px;
    height: auto;
    flex-shrink: 0;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .company-card-image {
        max-width: 60px;
    }
    
    h1.company-as-now {
        font-size: 2rem !important;
    }
    
    .company-as-now-section .card-number {
        font-size: 1.5rem;
    }
    
    .company-as-now-section .card-descrption {
        font-size: 0.8125rem;
    }
    
    .company-as-now-content .tab-pane {
        padding: 20px;
    }
    
    .company-as-now-tabs .nav-link {
        padding: 14px 20px;
        min-width: 180px;
        font-size: 1rem;
    }
    
    .company-as-now-section .card {
        padding: 1rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .company-card-image {
        max-width: 80px;
    }
    
    .company-as-now-tabs .nav-link {
        padding: 14px 25px !important;
    }
    
    .company-as-now-section .card-number {
        font-size: 1.75rem;
    }
    
    .company-as-now-section .card-descrption {
        font-size: 0.875rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .nav-scroll-wrapper {
        overflow-x: visible;
    }
    
    .company-as-now-tabs {
        display: flex;
        flex-wrap: wrap;
    }
    
    .company-as-now-tabs .nav-link {
        width: 206px;
    }
    
    h1.company-as-now {
        font-size: 2.25rem !important;
    }
    
    .company-as-now-section .card-number {
        font-size: 2rem;
    }
    .company-as-now-section .card {
        padding: 12px !important;
        width: 100% !important;
        text-align: center;
        justify-content: center;
        justify-self: center;
        justify-content: center;
        justify-items: center;
        align-self: center;
        align-items: center;
        height: 90px !important;
    }
    
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .company-as-now-content .tab-pane {
        padding: 30px;
    }
    
    .company-card-image {
        max-width: 100px;
    }
}

/* Extra small adjustments */
@media (max-width: 400px) {
    .company-as-now-tabs .nav-link {
        padding: 10px 12px !important;
        min-width: 140px;
        font-size: 0.8125rem;
    }
    
    .company-as-now-section .card {
        padding: 12px !important;
        width: 70%;
        text-align: center;
        justify-content: center;
        justify-self: center;
        justify-content: center;
        justify-items: center;
        align-self: center;
        align-items: center;
        height: auto;
    }
    
    .d-flex.align-items-start.gap-2 {
        gap: 12px !important;
    }
    
    .company-card-image {
        max-width: 35px;
    }
    
    .company-as-now-section .card-number {
        font-size: 1.1rem;
    }
    
    .company-as-now-section .card-descrption {
        font-size: 0.6875rem;
    }
}