/* Upcoming Companies */
.featured-companys {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-companys h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

/* Companys Carousel */
.companys-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 10px 0;
    scroll-behavior: smooth;
    align-items: stretch; /* Align all cards properly */
    flex-wrap: nowrap; /* Ensure all cards are in one row */
    min-height: 200px;
}

.company-1card {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    text-align: center;
    padding: 10px;
}

.company-1card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.company-1image {
    width: 150px;
    height: 100px;
    object-fit: contain;
    border-radius: 10%;
    margin-bottom: 5px;
}

.company-1info {
    padding: 3px;
    text-align: center;
}

.company-1info h5 {
    font-size: 0.6rem;
    color: #555;
    margin-bottom: 5px;
    text-overflow: ellipsis;
    
    overflow: hidden;
}

.company-1info p {
    font-size: 0.6rem;
    color: #555;
    margin: 3px 0;
    text-overflow: ellipsis;
    
    overflow: hidden;
}

.company-1info strong {
    font-weight: bold;
    color: #333;
}

/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    .featured-companys h2 {
        font-size: 1.2rem;
    }

    .company-1card {
        width: 190px;
        height: 190px;
    }

    .company-1image {
        width: fit-content;
        height: 100%;
        object-fit: contain;
        border-radius: 10%;
        margin-bottom: 5px;
    }
}

/* Responsive Design for Smaller Screens */
@media (max-width: 767px) {
    .featured-companys h2 {
        font-size: 1.2rem;
    }

    .company-1card {
        width: 150px;
        height: 150px;
    }

    .company-1image {
        width: fit-content;
        height: 100%;
        object-fit: contain;
        border-radius: 10%;
        margin-bottom: 5px;
    }
}
