/* ============================================
   TRAINING CATEGORIES CAROUSEL - MODERN DESIGN
   ============================================ */

.categories-container {
    width: 90%;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.carousel-column {
    width: 48.5%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.category-carousel {
    width: 100%;
}

.carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

/* FADE TRANSITION - No sliding animation */
.category-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out !important;
    transform: none !important;
}

.category-carousel.carousel-fade .carousel-item.active {
    opacity: 1;
}

.category-carousel.carousel-fade .carousel-item-next,
.category-carousel.carousel-fade .carousel-item-prev {
    opacity: 0;
    transform: none !important;
}

.category-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.category-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.category-carousel.carousel-fade .active.carousel-item-start,
.category-carousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-content {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

/* Remove text shadows from all carousel content */
.carousel-content * {
    text-shadow: none !important;
}

/* Image Container with Gradient Overlay */
.carousel-content img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
    transition: transform 0.5s ease;
}

/* Subtle gradient overlay on image */
.carousel-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
    border-radius: 0 0 16px 16px;
    z-index: 1;
}

/* Caption Styling - Clean Modern Look */
.carousel-caption {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    padding: 24px 28px;
    text-align: left;
    position: relative;
    bottom: 0;
    width: 100%;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

/* Decorative accent bar at top of caption */
.carousel-caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #667eea);
    border-radius: 2px;
}

/* Ensure all text in carousel captions has no shadow */
.carousel-caption * {
    text-shadow: none !important;
}

.carousel-caption h5 {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 10px;
    margin-top: 8px;
    line-height: 1.3;
    box-shadow: none !important;
    text-shadow: none !important;
}

.carousel-caption p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    color: #5a6a85;
    box-shadow: none;
    text-shadow: none !important;
}

/* Standard carousel-item transition */
.carousel-item {
    transition: opacity 0.8s ease-in-out !important;
    backface-visibility: hidden;
}

/* Hide indicators only */
.category-carousel .carousel-indicators {
    display: none;
}

/* Arrow Controls Styling */
.category-carousel .carousel-control-prev,
.category-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.category-carousel .carousel-control-prev {
    left: 12px;
}

.category-carousel .carousel-control-next {
    right: 12px;
}

.carousel-column:hover .carousel-control-prev,
.carousel-column:hover .carousel-control-next {
    opacity: 1;
}

.carousel-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #667eea);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.carousel-arrow-icon:hover {
    background: linear-gradient(135deg, #667eea, var(--primary));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: none;
    box-shadow: none;
}

/* Elegant Hover Effect */
.carousel-column:hover .carousel-content img {
    transform: scale(1.05);
}

.carousel-column:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-column {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive styles */
@media (max-width: 992px) {
    .categories-container {
        gap: 20px;
    }

    .carousel-content img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .categories-container {
        flex-direction: column;
        gap: 24px;
    }

    .carousel-column {
        width: 100%;
    }

    .carousel-content img {
        height: 200px;
    }

    .carousel-caption {
        padding: 20px 24px;
    }

    .carousel-caption::before {
        left: 24px;
        width: 50px;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .categories-container {
        width: 95%;
    }

    .carousel-content img {
        height: 180px;
    }

    .carousel-caption {
        padding: 16px 20px;
    }

    .carousel-caption h5 {
        font-size: 1.1rem;
    }
}