/* For the brands container row that appears within the index page at the bottom of the intro video */
.companies {
    background-color: #f5f5f5;
    /* Light gray background */
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

.brands-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    /* space between logos */
}

.brands-container a {
    flex: 0 0 auto; /* prevent stretching */
}

.brands-container a img {
    width: 90%;
    height: auto;
    /* max-height: 60px;*/
    transition: transform 0.3s, opacity 0.3s;
}

/* Responsive for small screens */
@media (max-width: 600px) {
    .brands-container a {
        width: 45%; /* approx 2 per row with gap */
        display: flex;
        justify-content: center;
    }
}

/*  size of imgs 4 large devices*/
@media screen and (min-width: 992px) {
    .brands-container a img {
        width: 112px;
        max-height: 112px;
        object-fit: contain;
        /* to avoid deformation */
    }

    .brands-container {
        gap: 50px;
    }
}

.brands-container a img:hover {
    transform: scale(1.05);
}

/* Handle opacity */
.brands-container a {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.brands-container a:hover {
    opacity: 1;
}