/* Our Expertise Carousel Styles */
.our-expertise-section {
    padding: 0 0 30px;
    background: #fff;
    overflow: hidden;
}


.expertise-container {
    padding: 0 20px;
    max-width: 94%;
    margin: 0 0 0 auto;
}

.expertise-header {
    text-align: center;
    margin-bottom: 50px;
}

.expertise-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Carousel Container */
.our-expertise-carousel {
    position: relative;
    padding-left: 50px; /* Add 50px gap from left edge */
    overflow: hidden; /* Ensure no slides show outside container */
    width: 100%; /* Full width of container */
}

/* Slick Track - Fix height issues */
.our-expertise-carousel .slick-track {
    display: flex;
    align-items: stretch;
    margin-left: 0; /* Reset any negative margins */
}

/* Slick List - Control visible area */
.our-expertise-carousel .slick-list {
    overflow: hidden;
    margin: 0 -25px; /* Negative margin to show multiple slides */
}

/* Individual Slide */
.expertise-slide {
    outline: none; /* Remove slick focus outline */
    border-radius: 10px;
    margin-right: 50px; /* 50px gap between slides */
    height: auto;
    width: 320px !important; /* Force 320px width */
    flex-shrink: 0; /* Prevent shrinking */
}

.expertise-slide-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border: 1px solid #abe1fa;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    width: 100%; /* Take full width of the slide container */
}

/* Image Styles */
.expertise-image {
    max-width: 100px;
    margin-bottom: 15px;
    text-align: center;
}

.expertise-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Content Styles */
.expertise-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expertise-title {
    font-size: 25px!important;
    font-weight: bold!important;
    color: #255398!important;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    line-height: 30px;
}

.expertise-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #255398;
    margin-bottom: 20px;
    flex: 1;
}

.expertise-actions {
    margin-top: auto;
}

.expertise-link {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.expertise-link:hover {
    background: #005a87;
    color: white;
}

/* Slick Dots/Pager Styles */
.our-expertise-carousel .slick-dots {
    position: relative;
    bottom: auto;
    text-align: center;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.our-expertise-carousel .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.our-expertise-carousel .slick-dots li button {
    border: none;
    background: #bcbec0;
    color: transparent;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-indent: -9999px;
    overflow: hidden;
}

.our-expertise-carousel .slick-dots li.slick-active button {
    background: #27aae1;
}

.our-expertise-carousel .slick-dots li button:hover {
    background: #27aae1;
}

.our-expertise-carousel .slick-dots li.slick-active button:hover {
    background: #27aae1;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .our-expertise-carousel {
        padding-left: 30px; /* Smaller gap on tablets */
    }
    
    .expertise-slide {
        margin-right: 30px; /* Smaller gap between slides */
        width: 280px !important; /* Smaller width on tablets */
    }
    
    .expertise-title {
        font-size: 1.1rem;
    }
    
    .expertise-description {
        font-size: 0.9rem;
    }
    .our-expertise__title.et_pb_row{
       padding-bottom:0;
    }
}

@media (max-width: 768px) {
    
    .expertise-slide {
        margin-right: 20px; /* Smaller gap between slides */
        width: 250px !important; /* Smaller width on mobile */
    }
    
    .expertise-title {
        font-size: 1rem;
    }
    
    .expertise-description {
        font-size: 0.85rem;
    }
    
    .our-expertise-carousel .slick-dots {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .our-expertise-section {
        padding: 40px 0;
    }
    
    .expertise-container {
        padding: 0 15px;
    }
    
    .our-expertise-carousel {
        padding-left: 15px; /* Minimal gap on small mobile */
    }
    
    .expertise-slide {
        margin-right: 15px; /* Minimal gap between slides */
        width: 280px !important; /* Full width minus margins on small mobile */
    }
    
    .expertise-slide-inner {
        padding: 15px;
    }
    
    .expertise-header .section-title {
        font-size: 2rem;
    }
    
    .expertise-title {
        font-size: 1.2rem;
    }
    
    .expertise-description {
        font-size: 0.9rem;
    }
    
    .our-expertise-carousel .slick-dots li {
        margin: 0 3px;
    }
    
}