/* ========================================
   INDUSTRIES WE SERVE - MOBILE RESPONSIVE FIX
   Fix heading responsiveness and card layout on mobile
   ======================================== */

/* Section Container */
.features-carousel-section {
    padding: 4rem 0 !important;
}

@media (max-width: 991.98px) {
    .features-carousel-section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 767.98px) {
    .features-carousel-section {
        padding: 2.5rem 0 !important;
    }
}

@media (max-width: 575.98px) {
    .features-carousel-section {
        padding: 2rem 0 !important;
    }
}

/* Container Padding */
.features-carousel-section .container,
.features-carousel-section .container-fluid.container-md {
    padding-left: clamp(1rem, 4vw, 2rem) !important;
    padding-right: clamp(1rem, 4vw, 2rem) !important;
}

/* Heading - Make it fully responsive */
.features-carousel-heading {
    font-family: 'Inter', 'Montserrat', sans-serif !important;
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    text-align: center !important;
}

/* Subtitle - Make it responsive */
.features-carousel-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.9375rem, 2.5vw, 1.125rem) !important;
    color: #64748b !important;
    max-width: 700px !important;
    margin: 0 auto 2rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    padding: 0 1rem !important;
}

@media (max-width: 575.98px) {
    .features-carousel-subtitle {
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
}

/* Carousel Wrapper */
.products-carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-top: 2rem !important;
    padding: 0 !important;
}

@media (max-width: 767.98px) {
    .products-carousel-wrapper {
        margin-top: 1.5rem !important;
    }
}

/* Carousel Track */
.products-carousel-track {
    display: flex !important;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform !important;
}

/* Product Cards - Responsive widths */
.products-carousel-track .product-card {
    flex: 0 0 25% !important;
    padding: 0 0.75rem !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* Tablet: 2 cards per view */
@media (max-width: 1023.98px) and (min-width: 768px) {
    .products-carousel-track .product-card {
        flex: 0 0 50% !important;
        padding: 0 0.5rem !important;
    }
}

/* Mobile: 1 card per view */
@media (max-width: 767.98px) {
    .products-carousel-track .product-card {
        flex: 0 0 100% !important;
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }
}

/* Industry Card Inner - Mobile Optimized */
.industry-card-inner {
    position: relative !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 1.25rem !important;
    padding: 2.5rem 2rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    height: 100% !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

@media (max-width: 991.98px) {
    .industry-card-inner {
        padding: 2rem 1.5rem !important;
        border-radius: 1rem !important;
    }
}

@media (max-width: 767.98px) {
    .industry-card-inner {
        padding: 1.75rem 1.5rem !important;
        border-radius: 1rem !important;
        min-height: auto !important;
    }
}

@media (max-width: 575.98px) {
    .industry-card-inner {
        padding: 1.5rem 1.25rem !important;
    }
}

/* Industry Icon Wrapper */
.industry-icon-wrapper {
    width: 4rem !important;
    height: 4rem !important;
    border-radius: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

@media (max-width: 767.98px) {
    .industry-icon-wrapper {
        width: 3.5rem !important;
        height: 3.5rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 0.875rem !important;
    }
}

@media (max-width: 575.98px) {
    .industry-icon-wrapper {
        width: 3rem !important;
        height: 3rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Industry Icon SVG */
.industry-icon-wrapper svg {
    width: 2rem !important;
    height: 2rem !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (max-width: 767.98px) {
    .industry-icon-wrapper svg {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .industry-icon-wrapper svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* Industry Card Title */
.industry-card-title {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-size: clamp(1.125rem, 3vw, 1.5rem) !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 767.98px) {
    .industry-card-title {
        font-size: clamp(1.0625rem, 3.5vw, 1.25rem) !important;
        margin-bottom: 0.875rem !important;
    }
}

/* Industry Card Description */
.industry-card-description {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.875rem, 2.5vw, 1rem) !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    flex: 1 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 767.98px) {
    .industry-card-description {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem) !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.65 !important;
    }
}

/* Industry Card Link */
.industry-card-link {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
    font-weight: 600 !important;
    color: #1E5CAA !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
}

.industry-card-link:hover {
    color: #174a85 !important;
    gap: 0.75rem !important;
}

.industry-card-link svg {
    width: 1rem !important;
    height: 1rem !important;
    transition: transform 0.3s ease !important;
}

.industry-card-link:hover svg {
    transform: translateX(4px) !important;
}

/* Pagination Dots */
.carousel-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 2rem !important;
    padding: 0 1rem !important;
}

@media (max-width: 767.98px) {
    .carousel-pagination {
        margin-top: 1.5rem !important;
    }
}

.pagination-dot {
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 50% !important;
    background-color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
}

.pagination-dot.active {
    width: 2rem !important;
    background-color: #1E5CAA !important;
    border-radius: 0.25rem !important;
}

@media (max-width: 575.98px) {
    .pagination-dot {
        width: 0.375rem !important;
        height: 0.375rem !important;
    }
    
    .pagination-dot.active {
        width: 1.5rem !important;
    }
}

/* Text Center Wrapper */
.features-carousel-section .text-center {
    padding: 0 !important;
}

/* Ensure proper spacing on mobile */
@media (max-width: 767.98px) {
    .features-carousel-section .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .features-carousel-section .text-center.mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/* Fix for premium underline */
.features-carousel-heading .premium-underline {
    color: #1E5CAA !important;
    position: relative !important;
}

/* Hover effects - Disable on mobile for better touch experience */
@media (hover: hover) and (pointer: fine) {
    .industry-card-inner:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15) !important;
        border-color: #93c5fd !important;
    }
}

/* Touch-friendly on mobile */
@media (max-width: 767.98px) {
    .industry-card-inner:active {
        transform: scale(0.98) !important;
    }
}

