/* Trending Jobs */
.trending-jobs {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-jobs h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

/* jobs Carousel */
.jobs-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: 220px;
}

.job-1card {
    width: 200px;
    height: auto; /* Allow height to adjust dynamically */
    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;
    text-align: center;
    padding: 10px;
    justify-content: space-between; /* Ensures space between image & text */
}

.job-1card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.company-1image {
    width: 80px;
    height: 80px; /* Set a fixed height */
    object-fit: contain; /* Ensures full image visibility */
    border-radius: 10%;
    margin-bottom: 5px;
}

.company-1info {
    width: 100%;
    padding: 5px 0;
    text-align: center;
    align-items: center;
    flex-grow: 1; /* Ensure text remains inside the card */
}

.company-1info p {
    font-size: 0.8rem;
    color: #555;
    margin: 3px 0;
    text-overflow: ellipsis;
    text-align: center;
    overflow: hidden;
    white-space: nowrap; /* Prevents text from pushing layout */
}

.company-1info strong {
    font-weight: bold;
    color: #333;
}

/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    .trending-jobs h2 {
        font-size: 1.2rem;
    }

    .job-1card {
        width: 200px;
        height: 200px;
    }

    .company-1image {
        width: 80px;
        height: 80px;
    }
}

/* Responsive Design for Smaller Screens */
@media (max-width: 767px) {
    .trending-jobs h2 {
        font-size: 1.2rem;
    }

    .job-1card {
        width: 200px;
        height: 200px;
    }

    .company-1image {
        width: 80px;
        height: 80px;
    }
}
