  /* Carousel container - always centered */
        .carousel-wrapper {
            max-width: 1200px;
            margin: 40px auto;
            padding: 10px;
            position: relative;
            overflow: hidden;
        }

        /* Main carousel container */
        .carousel-container {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            background: #fff;
        }

        /* Track that holds all slides */
        .carousel-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        /* Individual slide - responsive flex basis */
        .carousel-slide {
            flex: 0 0 calc(100% / 3);
            position: relative;
            padding: 0 10px;
        }

        /* Images */
        .carousel-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            object-position: center center;
            display: block;
            border-radius: 15px !important;
        }

        /* Image overlay for captions */
        .image-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 40px 30px 20px;
            border-radius: 0 0 15px 15px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .carousel-slide:hover .image-overlay {
            transform: translateY(0);
        }

        .image-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .image-description {
            font-size: 1rem;
            opacity: 0.9;
            line-height: 1.4;
        }

        /* Navigation buttons */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #333;
            transition: all 0.3s ease;
            z-index: 10;
            opacity: 0;
            visibility: hidden;
        }

        .carousel-wrapper:hover .carousel-nav {
            opacity: 1;
            visibility: visible;
        }

        .carousel-nav:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
        }

        .carousel-nav.prev {
            left: 20px;
        }

        .carousel-nav.next {
            right: 20px;
        }

        /* Navigation row with arrows and indicators */
        .carousel-navigation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 20px;
            position: relative;
        }

        /* Indicators */
        .carousel-indicators {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: nowrap;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(0, 61, 119, 0.4);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 0 0 12px;
            aspect-ratio: 1;
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        .indicator.active {
            background: #003d77;
            width: 16px;
            height: 16px;
        }

        .indicator:hover {
            background: rgba(0, 61, 119, 0.7);
        }

        /* Counter */
        .carousel-counter {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            z-index: 10;
        }

        /* Responsive design */
        @media (max-width: 1024px) {
            .carousel-slide {
                flex: 0 0 calc(100% / 2);
            }
        }

        @media (max-width: 768px) {
            .carousel-slide {
                flex: 0 0 100%;
                padding: 0;
            }

            .carousel-wrapper {
                margin: 20px auto;
                padding: 10px;
                max-width: 100vw;
                overflow: hidden;
            }

            .carousel-container {
                overflow: hidden;
                position: relative;
            }

            .carousel-image {
                height: 300px;
                object-fit: contain;
                object-position: center center;
            }

            .carousel-nav {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .image-overlay {
                padding: 30px 20px 15px;
            }

            .image-title {
                font-size: 1.3rem;
            }

            .image-description {
                font-size: 0.9rem;
            }

            .carousel-indicators {
                margin-top: 15px;
                gap: 12px;
            }

            .indicator {
                width: 14px;
                height: 14px;
                flex: 0 0 14px;
                aspect-ratio: 1;
            }

            .indicator.active {
                width: 18px;
                height: 18px;
            }
        }

        @media (max-width: 480px) {
            .carousel-wrapper {
                margin: 15px auto;
                padding: 10px;
            }

            .carousel-image {
                height: 280px;
                object-fit: contain;
                object-position: center center;
            }

            .carousel-nav {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }

            .image-title {
                font-size: 1.2rem;
            }

            .carousel-indicators {
                margin-top: 12px;
                gap: 10px;
            }

            .indicator {
                width: 12px;
                height: 12px;
                flex: 0 0 12px;
                aspect-ratio: 1;
            }

            .indicator.active {
                width: 16px;
                height: 16px;
            }
        }

        /* Mobile landscape specific fixes */
        @media screen and (max-height: 500px) and (orientation: landscape) {
            .carousel-wrapper {
                margin: 5px auto;
                padding: 10px;
                max-width: 100vw;
                overflow: hidden;
            }

            .carousel-container {
                overflow: hidden;
            }

            .carousel-image {
                height: 180px !important;
                object-fit: contain !important;
                object-position: center center;
            }

            .carousel-indicators {
                margin-top: 8px;
                gap: 8px;
            }

            .indicator {
                width: 10px;
                height: 10px;
                flex: 0 0 10px;
                aspect-ratio: 1;
            }

            .indicator.active {
                width: 14px;
                height: 14px;
            }

            .carousel-nav {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }
        }

        /* Mobile portrait specific fixes */
        @media screen and (max-width: 480px) and (orientation: portrait) {
            .carousel-image {
                height: 280px !important;
                object-fit: contain !important;
                object-position: center center;
            }

            .carousel-indicators {
                margin-top: 15px;
                padding: 0 20px;
                gap: 10px;
            }

            .indicator {
                width: 12px;
                height: 12px;
                flex: 0 0 12px;
                aspect-ratio: 1;
            }

            .indicator.active {
                width: 16px;
                height: 16px;
            }
        }

        /* Additional mobile fixes */
        @media screen and (max-width: 768px) {
            .indicator {
                aspect-ratio: 1;
            }

            .carousel-indicators {
                flex-wrap: nowrap;
                align-items: center;
            }
        }