/* Job Listing Frontend CSS */
.jl-container {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #304262;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.jl-container * {
    box-sizing: border-box;
}

/* Header */
.jl-header {
    font-size: 16px;
    color: #304262;
    margin-bottom: 16px;
}

/* Search Bar */
.jl-container .jl-search-bar input[type="text"] {
    width: 100%;
    padding: 16px 20px !important;
    font-size: 14px;
    color: #304262 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 24px;
    box-shadow: none !important;
    height: auto !important;
    line-height: normal !important;
}

.jl-search-bar input:focus {
    border-color: #0049AF;
}

/* Dropdowns */
.jl-dropdowns-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.jl-dropdown-wrap {
    flex: 1;
    position: relative;
}

.jl-dropdown-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 40px 16px 20px;
    font-size: 14px;
    color: #304262;
    cursor: pointer;
    outline: none;
}

.jl-dropdown-wrap .jl-dd-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #304262;
}

/* Active Filters */
.jl-active-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.jl-active-filters-row.has-filters {
    max-height: 100px;
    margin-bottom: 24px;
    opacity: 1;
}

.jl-active-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jl-badge {
    background: #ebf8ff;
    color: #0049AF;
    border: 1px solid #bee3f8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.jl-badge-close {
    font-weight: bold;
    font-size: 14px;
}

.jl-clear-filters,
.jl-clear-filters:hover,
.jl-clear-filters:focus,
.jl-clear-filters:active {
    background: transparent !important;
    border: none !important;
    color: #0049AF !important;
    font-size: 18px;
    cursor: pointer;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Job Cards */
.jl-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jl-job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
}

.jl-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.jl-job-card.jl-expanded {
    border-color: #b3cce8;
    box-shadow: 0 6px 24px rgba(0, 73, 175, 0.08);
    transform: none;
}

/* Main row: logo + details + action side by side */
.jl-job-card-main {
    display: flex;
    align-items: center;
    width: 100%;
}

.jl-job-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 32px;
}

.jl-job-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.jl-no-logo {
    font-size: 32px;
    font-weight: bold;
    color: #304262;
}

.jl-job-details {
    flex-grow: 1;
}

.jl-job-company {
    color: #0049AF;
    font-size: 13px;
    margin-bottom: 4px;
}

.jl-job-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.jl-job-title {
    color: #0049AF;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.jl-job-desc-btn,
.jl-job-desc-btn:hover,
.jl-job-desc-btn:focus,
.jl-job-desc-btn:active {
    background: transparent !important;
    border: none !important;
    color: #0049AF !important;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.jl-chevron {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Expand panel */
.jl-job-expand {
    display: none;
    width: 100%;
    overflow: hidden;
}

.jl-job-expand-inner {
    padding-top: 4px;
}

.jl-expand-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0 0;
}

/* Detail grid layout */
.jl-detail-grid {
    display: flex;
    flex-direction: column;
}

.jl-detail-full {
    padding: 20px 0 4px;
    border-bottom: 1px solid #e2e8f0;
}

.jl-detail-full:last-child {
    border-bottom: none;
}

.jl-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.jl-detail-row:last-child {
    border-bottom: none;
}

.jl-detail-section {
    padding: 20px 24px 20px 0;
}

.jl-detail-row .jl-detail-section:first-child {
    /* border-right: 1px solid #e2e8f0; */
    padding-right: 32px;
}

.jl-detail-row .jl-detail-section:last-child {
    padding-left: 32px;
    padding-right: 0;
}

.jl-detail-row .jl-detail-section:only-child {
    border-right: none;
    grid-column: 1 / -1;
}

.jl-detail-heading {
    font-size: 18px;
    font-weight: 500;
    color: #004AB0;
    margin: 0 0 12px;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.jl-detail-text {
    font-size: 14px;
    line-height: 1.65;
    color: #283957;
    margin: 0;
}

.jl-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jl-detail-list li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #304262;
    margin-bottom: 6px;
}

.jl-detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0049AF;
    font-size: 40px;
    line-height: 0.3;
}

.jl-detail-list a {
    color: #0049AF;
    text-decoration: none;
}

.jl-detail-list a:hover {
    text-decoration: underline;
}

.jl-contact-icons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jl-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #304262;
}

.jl-contact-item svg {
    color: #0049AF;
    flex-shrink: 0;
}

.jl-contact-item a {
    color: #0049AF;
    text-decoration: none;
}

.jl-contact-item a:hover {
    text-decoration: underline;
}

.jl-job-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: #304262;
}

.jl-meta-pill {
    background: #0049AF;
    /* Primary Blue from user */
    color: #fff;
    padding: 0px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.jl-meta-pill::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-right: 8px;
}

.jl-meta-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jl-meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
    vertical-align: middle;
}

.jl-job-action {
    margin-left: 24px;
}

.jl-container .jl-apply-btn {
    background: transparent !important;
    border: 2px solid #0049AF !important;
    color: #0049AF !important;
    padding: 12px 32px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
}

.jl-container .jl-apply-btn:hover,
.jl-container .jl-apply-btn:focus,
.jl-container .jl-apply-btn:active {
    background: #0049AF !important;
    border-color: #0049AF !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.jl-no-jobs {
    padding: 40px;
    text-align: center;
    color: #304262;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* Modals */
.jl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow: auto;
}

.jl-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.jl-modal-close {
    color: #304262;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.jl-modal-close:hover {
    color: #304262;
}

.jl-modal h2 {
    margin-top: 0;
    color: #0049AF;
    font-size: 24px;
    margin-bottom: 24px;
}

.jl-modal-content .jl-meta-pill {
    background: transparent !important;
    color: #304262 !important;
    padding: 0 !important;
    display: inline !important;
}

.jl-modal-content .jl-meta-pill::before {
    display: none !important;
}

.jl-modal-content .jl-job-meta-row span {
    position: relative;
}

.jl-modal-content .jl-job-meta-row span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -14px;
    /* Slightly more than half of the 24px gap */
    color: #a0aec0;
}


/* Form Styles */
.jl-form-group {
    margin-bottom: 16px;
}

.jl-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #304262;
    font-weight: 500;
}

.jl-form-group .required {
    color: #e53e3e;
}

.jl-form-group input[type="text"],
.jl-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.jl-form-group input[type="text"]:focus,
.jl-form-group textarea:focus {
    border-color: #0049AF;
}

.jl-modal-content .jl-submit-btn {
    background: #0049AF !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
}

.jl-modal-content .jl-submit-btn:hover,
.jl-modal-content .jl-submit-btn:focus,
.jl-modal-content .jl-submit-btn:active {
    background: #003682 !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.jl-form-message {
    margin-top: 16px;
    font-size: 14px;
    color: #38a169;
}

.jl-form-message.error {
    color: #e53e3e;
}

@media (max-width: 768px) {
    .jl-dropdowns-row {
        flex-direction: column;
    }

    .jl-job-card-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .jl-job-logo {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .jl-job-action {
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
    }

    .jl-apply-btn {
        width: 100%;
        text-align: center;
    }

    .jl-job-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .jl-job-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Detail grid → single column on mobile */
    .jl-detail-row {
        grid-template-columns: 1fr;
    }

    .jl-detail-row .jl-detail-section:first-child {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 16px;
    }

    .jl-detail-row .jl-detail-section:last-child {
        padding-left: 0;
        padding-top: 16px;
    }
}