/* ========================================
   CUSTOM CAROUSEL SLIDERS - NO SWIPER
   Inprotech Custom Carousels
   ======================================== */

/* Industries Carousel */
.inpro-carousel-industries {
    position: relative;
    width: 100%;
    padding: 0 60px;
}

.inpro-carousel-industries-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.inpro-carousel-industries-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inpro-carousel-industries-slide {
    flex: 0 0 auto;
    min-height: 250px;
    box-sizing: border-box;
}

.inpro-carousel-industries-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

.inpro-industry-card {
    height: 100%;
    width: 100%;
    min-height: 250px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
    display: flex;
    align-items: flex-end;
    background: #f3f4f6;
}

.inpro-industry-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.inpro-industry-card:hover {
    transform: scale(1.02);
}

.inpro-industry-label {
    background: #ffffffed !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #000 !important;
    line-height: 1.2 !important;
    width: calc(100% - 40px) !important;
    max-width: 200px !important;
    text-align: left !important;
    position: absolute !important;
    bottom: 20px !important;
    left: 0px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 2 !important;
}

.inpro-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #eee;
    /* Synchronized with Brand slider */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.inpro-carousel-nav:hover {
    background: #014E91;
    /* Synchronized blue hover */
    border-color: #014E91;
    color: white;
    box-shadow: 0 6px 15px rgba(1, 78, 145, 0.2);
}

.inpro-carousel-nav-prev {
    left: 0px;
    margin-left: 0;
}

.inpro-carousel-nav-next {
    right: 0px;
    margin-right: 0;
}

.inpro-carousel-nav i {
    font-size: 12px;
}

/* Brands Slider Redesign */
.brandslider-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f8ff 0%, #e8effa 100%);
    overflow: hidden;
}

.brandslider-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.brandslider-header {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.brandslider-title {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #014E91 !important;
    white-space: nowrap;
    margin-right: 40px;
    font-family: 'Montserrat', sans-serif !important;
}

.brandslider-title .text-orange {
    color: #FF6600 !important;
}

.brandslider-subtitle-wrap {
    max-width: 600px;
    padding-left: 0;
    border-left: none;
}

.brandslider-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.brandslider-wrapper {
    position: relative;
    z-index: 3;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 0;
    margin-top: 20px;
}

.brandslider-container {
    padding: 10px 0px;
    overflow: hidden;
}

.brandslider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
}

.brandslider-slide {
    flex: 0 0 20% !important;
    width: 20% !important;
    min-width: 20% !important;
    /* Exactly 5 items on desktop */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 25px !important;
    border-right: 1px solid #f0f0f0 !important;
    min-height: 150px !important;
}

.brandslider-slide:last-child {
    border-right: none;
}

.brandslider-logo {
    max-height: 90px;
    max-width: 85%;
    width: auto;
    transition: all 0.3s ease;
    filter: none;
    opacity: 1;
}

.brandslider-slide:hover .brandslider-logo {
    transform: scale(1.08);
}

/* Nav Buttons - Circular Edge Style */
.brandslider-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.brandslider-nav:hover {
    background: #014E91 !important;
    color: #fff !important;
    border-color: #014E91 !important;
    box-shadow: 0 6px 18px rgba(1, 78, 145, 0.25) !important;
}

.brandslider-nav i {
    font-size: 14px !important;
}

.brandslider-nav-prev {
    left: -15px !important; 
}

.brandslider-nav-next {
    right: -15px !important; 
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .brandslider-nav-prev { left: 5px !important; }
    .brandslider-nav-next { right: 5px !important; }
}

@media (min-width: 769px) {
    .inpro-carousel-industries-slide {
        flex: 0 0 calc((100% - 72px) / 4);
    }
}

@media (max-width: 991px) {
    .brandslider-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .brandslider-subtitle-wrap {
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
    }

    .brandslider-title {
        font-size: 28px !important;
    }
}

@media (max-width: 767px) {
    .inpro-carousel-industries {
        padding: 0;
    }

    .inpro-carousel-industries-container {
        overflow: hidden;
    }

    .inpro-carousel-industries-track {
        gap: 12px;
        transform: translateX(0);
        touch-action: pan-y;
        will-change: transform;
    }

    .inpro-carousel-industries-slide {
        flex: 0 0 74%;
        width: 74%;
        min-width: 74%;
        max-width: 74%;
        min-height: 180px;
    }

    .brandslider-section {
        padding: 50px 0;
    }

    .brandslider-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .brandslider-subtitle-wrap {
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
    }

    .brandslider-slide {
        flex: 0 0 calc(50%);
        /* 2 items */
        min-height: 120px;
    }
}

@media (max-width: 576px) {
    .inpro-carousel-nav {
        width: 26px;
        height: 26px;
    }

    .inpro-carousel-nav i {
        font-size: 10px;
    }

    .brandslider-section {
        padding: 5px 0 !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    .brandslider-wrapper {
        margin-top: 4px;
        margin-bottom: 4px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }

    .brandslider-container {
        padding: 0;
    }

    .brandslider-track {
        gap: 0 !important;
    }

    .brandslider-slide {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 50% !important;
        box-sizing: border-box !important;
        min-height: 82px !important;
        padding: 14px 50px !important;
        border-right: 1px solid #e5e7eb !important;
    }

    .brandslider-logo {
        max-width: 100%;
        max-height: 48px;
    }

    .brandslider-nav {
        width: 26px !important;
        height: 26px !important;
        color: #111 !important;
        box-shadow: none !important;
    }

    .brandslider-nav-prev {
        left: 6px !important;
    }

    .brandslider-nav-next {
        right: 6px !important;
    }

    .brandslider-nav i {
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    .brandslider-slide {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 50% !important;
    }

    .brandslider-container {
        padding: 0;
    }

    .brandslider-nav {
        width: 26px !important;
        height: 26px !important;
    }
}
