/* The parent block that contains the carousel */
.clients-block {
    background-color: #222;
    border: 2px solid #444;
    max-width: 1400px;
    margin: 8px auto;
    width: 96%;
    border-radius: 18px;
    box-sizing: border-box;
    padding: 32px 0;
    overflow: hidden; /* Crucial for the animation viewport */
}

.clients-block-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

/* This is the container that will have the animation applied */
.clients-carousel {
    display: flex;
    overflow-x: auto; /* This is the key: enable horizontal scrolling */
    padding-bottom: 16px; /* Add some space for the scrollbar if it appears */
    /* Hide the scrollbar for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}

.clients-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Individual client tile styling */
.client-tile {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevent tiles from shrinking */
    width: 400px;
    margin-right: 20px;
    background-color: #1a1a1a; /* Slightly darker than the container */
    border: 1px solid #444444;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.client-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    flex-shrink: 0;
}

/* CRITICAL FIX: Ensure the image behaves as a block and fills the container */
.client-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #333; /* Fallback color if image is broken */
}


.client-name {
    font-weight: bold;
    font-size: var(--font-size-standard);
    margin-bottom: 18px;
    color: #ffffff;
    text-align: center;
}

.client-statement {
    font-size: var(--font-size-small);
    line-height: 1.5;
    color: #c4c4c4;
    /* This makes the statement expand to fill the available space, ensuring equal height */
    flex-grow: 1;
    text-align: center;
    margin-bottom: 18px;
}


@media (max-width: 992px) {


    .client-tile {
        display: flex;
        flex-direction: column;
        flex-shrink: 0; /* Prevent tiles from shrinking */
        width: 500px;
        margin-right: 20px;
        background-color: #1a1a1a; /* Slightly darker than the container */
        border: 1px solid #444444;
        border-radius: 10px;
        padding: 20px;
        text-align: left;
    }

    .client-image-wrapper {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        overflow: hidden;
        margin: 16px auto 32px;
        flex-shrink: 0;
    }

    /* CRITICAL FIX: Ensure the image behaves as a block and fills the container */
    .client-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background-color: #333; /* Fallback color if image is broken */
    }


    .client-name {
        font-weight: bold;
        font-size: var(--font-size-standard);
        margin-bottom: 18px;
        color: #ffffff;
        text-align: center;
    }

    .client-statement {
        font-size: var(--font-size-standard);
        line-height: 1.5;
        color: #c4c4c4;
        /* This makes the statement expand to fill the available space, ensuring equal height */
        flex-grow: 1;
        text-align: center;
        margin-bottom: 36px;
    }

}