.job-list {
    background-color: #f8fafc;
}

.job-list-inner {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem 3.5rem;
}

.job-list-title {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.job-list-search {
    margin-bottom: 2rem;
}

.job-list-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.job-list-search-icon {
    flex-shrink: 0;
    font-size: 1.125rem;
    color: #94a3b8;
}

.job-list-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.375rem 0;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
}

.job-list-search-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.job-list-search-btn:hover {
    opacity: 0.92;
}

.job-list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    padding: 1.25rem 1.5rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-list-item:hover {
    border-color: #dbe3ec;
    box-shadow: 0 8px 24px rgba(30, 104, 173, 0.08);
}

.job-list-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    padding: 0.75rem;
    border-radius: 10px;
}

.job-list-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.job-list-info {
    flex: 1;
    min-width: 0;
}

.job-list-name {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.job-list-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.job-list-badge {
    display: inline-block;
    padding: 0.125rem 0.4375rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: var(--primary-color);
    border-radius: 999px;
}

.job-list-salary {
    font-weight: 600;
    white-space: nowrap;
}

.job-list-salary-amount {
    color: var(--primary-color);
}

.job-list-location {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    line-height: 1.5;
    color: #64748b;
}

/**
 * Job detail
 */
.job-detail {
    background-color: #f8fafc;
    padding-top: 1.25rem;
}

.job-detail-inner {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem 3.5rem;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.job-detail-main {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.job-detail-main-body {
    padding: 2rem 2.5rem 2.5rem;
}

.job-detail-title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.job-detail-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecf0;
}

.job-detail-summary-highlights {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
}

.job-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
}

.job-detail-tag-education {
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
}

.job-detail-tag-salary {
    font-weight: 600;
    color: var(--primary-color);
    background: #eff6ff;
}

.job-detail-tag-internship {
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
}

.job-detail-summary-location {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
}

.job-detail-summary-location .bi {
    flex-shrink: 0;
    margin-top: 0.1875rem;
}

.job-detail-summary-location-text {
    min-width: 0;
    word-break: break-word;
}

.job-detail-sep {
    margin: 0 0.375rem;
    color: #cbd5e1;
}

.job-detail-section + .job-detail-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ecf0;
}

.job-detail-section-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.job-detail-text {
    margin: 0;
    line-height: 1.7;
    color: #475569;
    white-space: pre-wrap;
    word-break: break-word;
}

.job-detail-sidebar {
    min-width: 0;
}

.job-detail-sidebar-card {
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.job-detail-sidebar-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
}

.job-detail-sidebar-intro {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.job-detail-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.job-detail-sidebar-logo img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .job-list-inner {
        padding: 2rem 0.75rem 2.5rem;
    }

    .job-list-title {
        font-size: 1.375rem;
    }

    .job-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-list-logo {
        width: 80px;
        height: 80px;
    }

    .job-detail {
        padding-top: 1rem;
    }

    .job-detail-inner {
        padding: 0 0.75rem 2.5rem;
    }

    .job-detail-layout {
        grid-template-columns: 1fr;
    }

    .job-detail-main-body {
        padding: 1.25rem 1.125rem 1.5rem;
    }

    .job-detail-title {
        font-size: 1.375rem;
    }

    .job-detail-summary {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .job-detail-sidebar-card {
        position: static;
        padding: 1.25rem 1.125rem;
    }
}
