﻿.job-card {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #808080;
    align-items: flex-start;
}

.job-card-logo {
    flex-shrink: 0;
}

    .job-card-logo img {
        width: 110px;
        height: 80px;
        object-fit: cover;
    }

.job-card-content {
    flex: 1;
}

.job-card-dates {
    display: flex;
    align-items: center;
}

.job-card-date {
    display: flex;
    align-items: center;
}

/* Table styles for job details */
.job-card-table-wrapper {
    width: 100%;
    margin: 0.7rem 0 0.7rem 0;
    overflow-x: auto;
}

.job-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: #174c8f;
}

    .job-card-table td {
        padding: 0.2rem 1rem 0.2rem 0;
        vertical-align: middle;
        white-space: nowrap;
        border: none;
    }

        /* Make first column smaller and right-aligned if needed */
        .job-card-table td:first-child {
            width: 1%;
            white-space: nowrap;
            text-align: left;
            vertical-align: top;
            padding-right: 0.5rem;
        }

        /* Left-align second column and allow it to take remaining space */
        .job-card-table td.job-card-date-value {
            color: #222;
            font-weight: 500;
            margin-left: 0.3em;
            text-align: left;
            width: 99%;
            white-space: normal;
        }

.job-card-title-row {
    display: flex;
    align-items: center;
}

.job-card-title-link {
    /*text-decoration: none;*/
}

.job-card-location {
    /* You can add margin or font styles here if needed */
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .job-card-logo img {
        width: 100%;
        height: auto;
        max-width: 220px;
        margin-bottom: 0.5rem;
    }

    .job-card-table-wrapper {
        margin: 0.7rem 0 0.7rem 0;
    }

    .job-card-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
