/* =========================================================
        CLIENTS GRID CSS 
        Copy everything below this line into your separate .css file
        =========================================================
        */

        /* Scoped Container to prevent bleeding into your body styles */
        .cg-section {
            background-color: #5207b300;
            color: #ffffff;
            padding: 0px;
            direction: rtl;
            margin-top: 49px;
            margin-bottom: 45px;
        }

        .cg-container {
            max-width: 1413px;
            /*max-width: 1243px;*/
           /*max-width: 1385px;*/
            margin: 0 auto;
            width: 100%;
        }

        .cg-title {
            text-align: center;
            font-size: 25px;
            font-weight: bold;
            color: rgb(241, 236, 238);
            margin-top: 0px;
            margin-bottom: 0px;
            font-family: "Cairo", "sans-serif";
        }

        /* Carousel Wrapper */
        .cg-carousel-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
        }

        @media (min-width: 768px) {
            .cg-carousel-wrapper { gap: 1rem; }
        }

        /* Scroll Track */
        .cg-scroll-track {
            flex: 1;
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            padding: 1rem 0.5rem;
            max-width: 100%;
            /* Hide Scrollbar */
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        .cg-scroll-track::-webkit-scrollbar {
            display: none; /* Chrome, Safari and Opera */
        }

        @media (min-width: 768px) {
            .cg-scroll-track { gap: 1.5rem; }
        }

        /* Navigation Arrows */
        .cg-nav-btn {
            display: none;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background-color: rgba(103, 59, 183, 1);
            color: white;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
        }

        @media (min-width: 768px) {
            .cg-nav-btn { display: flex; }
        }

        .cg-nav-btn:hover:not(:disabled) {
            /*background-color: #404040;*/
            transform: scale(1.05);
        }

        .cg-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        /* Individual Client Card */
        .cg-card {
            flex-shrink: 0;
            scroll-snap-align: center;
            width: 140px;
            height: 140px;
            /*background-color: #202020;*/
            background-color: rgba(103, 59, 183, 0.15);
            border-radius: 16px;
            padding: 0.75rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
            cursor: pointer;
            text-decoration: none;
        }

        @media (min-width: 768px) {
            .cg-card {
                width: 180px;
                height: 180px;
                padding: 1.25rem;
            }
        }

        .cg-card:hover {
            background-color: rgba(103, 59, 183, 0.55);
        }

        /* Logo Image Container */
        .cg-logo-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            transition: transform 0.3s ease;
            position: relative;
        }

        .cg-card:hover .cg-logo-wrapper {
            transform: translateY(-4px);
        }

        /* Logo Image */
        .cg-logo {
            height: 115px;
            width: 115px;
            object-fit: contain;
            filter: drop-shadow(0 4px 3px rgba(0,0,0,0.07));
            /*filter: brightness(1) invert(1);*/
        }

        @media (min-width: 768px) {
            .cg-logo {
                height: 135px;
                width: 135px;
            }
        }

        /* Sub-label Name */
        .cg-name {
            color: #9CA3AF;
            font-size: 12px;
            margin-top: 0.5rem;
            margin-bottom: 0;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        @media (min-width: 768px) {
            .cg-name { font-size: 14px; }
        }

        .cg-card:hover .cg-name {
            color: #ffffff;
        }

        /* Fallback Initials (If image is missing) */
        .cg-fallback {
            width: 40px;
            height: 40px;
            background-color: #374151;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
            letter-spacing: 0.05em;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
        }

        @media (min-width: 768px) {
            .cg-fallback {
                width: 56px;
                height: 56px;
                font-size: 18px;
            }
        }

        /* Pagination Dots */
        .cg-dots-container {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 1.5rem;
            width: 100%;
        }

        .cg-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: rgba(103, 59, 183, 0.2);
            transition: background-color 0.3s ease, transform 0.3s ease;
        }

        .cg-dot.active {
            background-color: rgba(103, 59, 183, 1);
            transform: scale(1.3);
        }

        /* =========================================================
        END OF CSS TO COPY
        =========================================================
        */