/* Custom Owl Carousel Styling for Blog, Testimonials, and Case Studies */

/* Carousel Navigation Buttons */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #e74c3c, #3498db) !important;
    color: #ffffff !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    z-index: 10;
}

.owl-carousel .owl-nav button.owl-prev {
    left: -25px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -25px;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: linear-gradient(135deg, #c0392b, #2980b9) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

/* Carousel Dots */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.owl-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-carousel .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(231, 76, 60, 0.3);
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active span {
    background: linear-gradient(135deg, #e74c3c, #3498db);
    width: 30px;
    border-radius: 10px;
}

.owl-carousel .owl-dot:hover span {
    background: rgba(231, 76, 60, 0.6);
}

/* Blog Carousel Specific */
.blog-carousel .owl-item {
    display: flex;
    align-items: stretch;
}

.blog-carousel .service-card {
    display: flex;
    flex-direction: column;
}

/* Testimonials Carousel Specific */
.testimonials-carousel .testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonials-carousel .testimonial-text {
    flex: 1;
}

/* Case Studies Carousel Specific */
.case-studies-carousel .case-study-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-studies-carousel .case-study-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .owl-carousel .owl-nav button.owl-prev {
        left: -15px;
    }
    
    .owl-carousel .owl-nav button.owl-next {
        right: -15px;
    }
    
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Smooth Transitions */
.owl-carousel .owl-item {
    transition: all 0.3s ease;
}

.owl-carousel .owl-stage-outer {
    overflow: visible;
}

/* Fix for carousel items */
.owl-carousel .item {
    display: flex;
    align-items: stretch;
}

.owl-carousel .item > div {
    width: 100%;
}
