/* Layout Overlap Fixes */
.job-card {
    min-height: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
    transform: translateY(-2px);
    background-color: #f8fafc;
}

/* Ensure sections have enough space */
.job-card > div:nth-child(2) {
    min-width: 200px;
}

/* Fix for salary and dates overlapping on medium screens */
@media (min-width: 1024px) {
    .job-card .salary-tag {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

@media (max-width: 1023px) {
    .job-card .hidden.lg\:flex {
        display: none !important;
    }
}

/* Clamp titles to prevent pushing other content */
.job-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure metalines don't wrap and cause height issues */
.job-meta-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific overlap fix from screenshot */
.job-card Section-2, .job-card [class*="Section-2"] {
    margin: 0 1.5rem;
    padding: 0 1.5rem;
}
